<< Previous | Next >>

> SUB HL,DE
> SUB HL,JK
> SUB JKHL,BCDE Subtract without Carry Rabbit 4000 Instruction

> Opcode | Instruction | Clocks | Operation
> 55 | SUB HL,DE | 2 | HL = HL - DE
> 45 | SUB HL,JK | 2 | HL = HL - JK
> ED D6 | SUB JKHL,BCDE | 4 (2,2) | JKHL = JKHL - BCDE

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

> #### Description

> - `SUB HL,DE`: Subtracts from the data in HL the data in DE. The result is stored in HL.

> - `SUB HL,JK`: Subtracts from the data in HL the data in JK. The result is stored in HL.

> - `SUB JKHL,BCDE`: Subtracts from the data in JKHL the data in BCDE. The result is stored in JKHL.

<< Previous | Next >>