10 lines
424 B
ArmAsm
10 lines
424 B
ArmAsm
BSR TRGET ; Branches to TRGET
|
|
MOV R3,R4 ; Executes the MOV instruction before branching
|
|
ADD R0,R1 ; ← The PC location is used to calculate the branch destination
|
|
; address of the BSR instruction (return address for when the
|
|
; subroutine procedure is completed (PR data))
|
|
TRGET: ; ← Procedure entrance
|
|
MOV R2,R3
|
|
RTS ; Returns to the above ADD instruction
|
|
MOV #1,R0 ; Executes MOV before branching
|