Flow-control structures: Difference between revisions
m
→{{header|68000 Assembly}}: removed incorrect information
m (→goto: sp) |
Puppydrum64 (talk | contribs) m (→{{header|68000 Assembly}}: removed incorrect information) |
||
Line 124:
<code>JMP</code>,<code>JSR</code>,<code>RTS</code>, and branching work almost identical to [[6502 Assembly]]. There are a few exceptions:
* Compared to the 6502, <code>BCS</code> and <code>BCC</code> are the opposite for the purposes of unsigned comparisons. (The 6502 is actually the odd one out here - on most architectures "carry clear" represents greater than or equal, but 6502 is the opposite!)
* An additional <code>BSR</code> can be used for nearby subroutines. This
* <code>DBRA</code> is used for looping. A register operand is decremented with each loop. The loop terminates when the value in the register underflows from <tt>0</tt> to
* <code>TRAP #</code> is often
=={{header|Ada}}==
|