13 lines
399 B
ArmAsm
13 lines
399 B
ArmAsm
MOV.L #(TRGET-BSRF_PC),R0 ; Sets displacement
|
|
BRSF @R0 ; Branches to TRGET
|
|
MOV R3,R4 ; Executes the MOV instruction before
|
|
; branching
|
|
BSRF_PC: ; ← The PC location is used to
|
|
; calculate the branch destination
|
|
; with BSRF
|
|
ADD R0,R1
|
|
TRGET: ; ← Procedure entrance
|
|
MOV R2,R3
|
|
RTS ; Returns to the above ADD instruction
|
|
MOV #1,R0 ; Executes MOV before branching
|