sh-dis/tests/bts.s

9 lines
339 B
ArmAsm

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