sh-dis/tests/bfs.s

9 lines
337 B
ArmAsm

CLRT ; T is always 0
BT/S TRGET_T ; Does not branch, because T = 0
NOP
BF/S TRGET_F ; Branches to TRGET, because T = 0
ADD R0,R1 ; Executed before branch
NOP ; ← The PC location is used to calculate the branch destination
; address of the BF/S instruction
TRGET_F: ; ← Branch destination of the BF/S instruction