Jump to content

Flow-control structures: Difference between revisions

m
Line 123:
=={{header|68000 Assembly}}==
<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.
* An additional <code>BSR</code> can be used for nearby subroutines. This is "cheaper" than a <code>JSR</code>.
* <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 0 to FFFF.
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.