spl
Set if plus
Sets the destination byte to $FF (-1) if plus, otherwise to 0.
Size .b
XNZVC –––––
- Changes no flag
- Reads N
Forms
Operands
<ea>- An operand using one of the addressing modes listed for this form. The list determines whether it can be a register, memory or an immediate value. With
opt p=68020, an allowedd(An,Xn)ord(PC,Xn)mode also permits the corresponding 68020 indexed and memory indirect forms. See 68020 addressing. More
The suffix selects the condition. See condition codes.
move.l #5, d0
tst d0
spl d1 ; d1 = $FF (positive)
seq d2 ; d2 = $00 (not zero)
move.l #0, d3
tst d3
seq d4 ; d4 = $FF (zero)
sne d5 ; d5 = $00 (is zero)
move.l #-1, d6
tst d6
smi d7 ; d7 = $FF (negative)