spl
Sizes
byte
Affected Flags
X
N
Z
V
C
-
-
-
-
-
Operands
Op 1
Dn/(An)/d(An)/Ea/<label>/d(An,Xn)
Sets the first byte of the destination operand to $FF (-1) if flags "Plus" is true, otherwise it sets it to 0
Sets the first byte of the destination operand to $FF (-1) if flags "Plus" is true, otherwise it sets it to 0
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)