144 Rabbit 2000/3000 Microprocessor
Description
Subtracts from the data in A the data whose address is
• the data in HL, or
• the sum of the data in IX and a displacement d,or
• the sum of the data in IY and a displacement d.
TheresultisstoredinA.
SUB (HL)
SUB (IX+d)
SUB (IY+d)
Opcode Instruction Clocks Operation
96 SUB (HL) 5 (2,1,2) A = A - (HL)
DD 96 d SUB (IX+d) 9 (2,2,2,1,2) A=A-(IX+d)
FD 96 d SUB (IY+d) 9 (2,2,2,1,2) A=A-(IY+d)
Flags ALTD I/O
S Z L/V C F R SP S D
• • V • • • •