Flow-control structures: Difference between revisions

Content added Content deleted
m (→‎{{header|ARM Assembly}}: forgot to close lang)
Line 265: Line 265:
;The program counter is copied to the link register, then the operand of this command becomes the new program counter.
;The program counter is copied to the link register, then the operand of this command becomes the new program counter.
BX ;Branch and Exchange. The operand is a register. The program counter is swapped with the register specified.
BX ;Branch and Exchange. The operand is a register. The program counter is swapped with the register specified.
;BX LR is commonly used to return from a subroutine.
;BX LR is commonly used to return from a subroutine.</lang>