<< Previous | Next >>

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

> Opcode | Instruction | Clocks | Operation
> D6 n | SUB n | 4 (2,2) | A = A - n

> 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 assembler views "SUB A,n" and "SUB n" as equivalent instructions.

<< Previous | Next >>