Flow-control structures: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→{{header|ARM Assembly}}: forgot to close lang) |
Puppydrum64 (talk | contribs) |
||
Line 258: | Line 258: | ||
=={{header|ARM Assembly}}== |
=={{header|ARM Assembly}}== |
||
<lang ARM Assembly> |
<lang ARM Assembly>SWI n ;software system call |
||
SWI n ;software system call |
|||
B ;Branch. Just "B" is a branch always, but any condition code can be added for a conditional branch. |
B ;Branch. Just "B" is a branch always, but any condition code can be added for a conditional branch. |
||
;In fact, almost any instruction can be made conditional to avoid branching. |
;In fact, almost any instruction can be made conditional to avoid branching. |
||
Line 266: | Line 265: | ||
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.</lang> |
;BX LR is commonly used to return from a subroutine.</lang> |
||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |