<< Previous | Next >>

SUB n     Subtract without Carry     Rabbit 2000/3000/4000/5000 Instruction

Opcode
Instruction
Operation
D6 n SUB n A = A - n

8-Bit Access
16-Bit Unaligned
16-Bit Aligned
Rabbit 2000/3000/4000
4
n/a
n/a
Rabbit 5000
4
4
2

Flags ALTD IOI/IOE
S
Z
L/V
C
F
R
SP
S
D
·
·
V
·
·
·

Description

Subtracts the 8-bit constant n from A. The result is stored in A.

The Rabbit 4000/5000 assemblers view "SUB A,n" and "SUB n" as equivalent instructions.


Rabbit Instructions << Previous | Next >> rabbit.com