sh-dis/tests/braf.s

9 lines
313 B
ArmAsm

MOV.L #(TRGET-BSRF_PC),R0 ; Sets displacement
BRAF @R0 ; Branches to TRGET
ADD R0,R1 ; Executes ADD before branching
BRAF_PC: ; ← The PC location is used to calculate
; the branch destination address of
; the BRAF instruction
NOP
TRGET: ; ← Branch destination of the BRAF instruction