Mnemonic |
Symbolic Operation |
Flags | OP-Code | No. of Bytes |
No. of M Cycles |
No. of T Cycles |
Comments | |||||
C | Z | P/V | S | N | H | 76 543 210 | ||||||
LD r,r ' | r ← r ' | • | • | • | • | • | • | 01 r r ' | 1 | 1 | 4 | r, r ' Reg 000 B 001 C 010 D 011 E 100 H 101 L 111 A |
LD r,n | r ← n | • | • | • | • | • | • | 00 r 110 ← n → |
2 | 2 | 7 | |
LD r,(HL) | r ← (HL) | • | • | • | • | • | • | 01 r 110 | 1 | 2 | 7 | |
LD r,(IX+d) | r ← (IX+d) | • | • | • | • | • | • |
11 011 101 01 r 110 ← d → |
3 | 5 | 19 | |
LD r,(IY+d) | r ← (IY+d) | • | • | • | • | • | • |
11 111 101 01 r 110 ← d → |
3 | 5 | 19 | |
LD (HL),r | (HL) ← r | • | • | • | • | • | • | 01 110 r | 1 | 2 | 7 | |
LD (IX+d),r | (IX+d) ← r | • | • | • | • | • | • |
11 011 101 01 110 r ← d → |
3 | 5 | 19 | |
LD (IY+d),r | (IY+d) ← r | • | • | • | • | • | • |
11 111 101 01 110 r ← d → |
3 | 5 | 19 | |
LD (HL),n | (HL) ← n | • | • | • | • | • | • | 01 110 110 ← d → |
2 | 3 | 10 | |
LD (IX+d),n | (IX+d) ← n | • | • | • | • | • | • |
11 011 101 01 110 110 ← d → ← n → |
4 | 5 | 19 | |
LD (IY+d),n | (IY+d) ← n | • | • | • | • | • | • |
11 111 101 01 110 110 ← d → ← n → |
4 | 5 | 19 | |
LD A,(BC) | A ← (BC) | • | • | • | • | • | • | 00 001 010 | 1 | 2 | 7 | |
LD A,(DE) | A ← (DE) | • | • | • | • | • | • | 00 011 010 | 1 | 2 | 7 | |
LD A,(nn) | A ← (nn) | • | • | • | • | • | • | 00 111 010 ← n → ← n → |
3 | 4 | 13 | |
LD (BC),A | (BC) ← A | • | • | • | • | • | • | 00 000 010 | 1 | 2 | 7 | |
LD (DE),A | (DE) ← A | • | • | • | • | • | • | 00 010 010 | 1 | 2 | 7 | |
LD (nn),A | (nn) ← A | • | • | • | • | • | • | 00 110 010 ← n → ← n → |
3 | 4 | 13 | |
LD A,I | A ← I | • | ↕ | IFF | ↕ | 0 | 0 | 11 101 101 01 010 111 |
2 | 2 | 9 | |
LD A,R | A ← R | • | ↕ | IFF | ↕ | 0 | 0 | 11 101 101 01 011 111 |
2 | 2 | 9 | |
LD I,A | I ← A | • | • | • | • | • | • | 11 101 101 01 000 111 |
2 | 2 | 9 | |
LD R,A | R ← A | • | • | • | • | • | • | 11 101 101 01 001 111 |
2 | 2 | 9 |
Notes: | r, r ' means any of the registers A, B, C, D, E, H, L | |
IFF the content of the interrupt enable flip-flop (IFF) is copied into the P/V flag (0 = interrupts disabled, 1 = interrupts enabled) | ||
Flag Notation: | • = flag not affected, 0 = flag reset, 1 = flag set, X = flag is unknown, | |
↕ = flag is affected according to the result of the operation. | ||
16-byte values: | Where a 16-bit 'nn' value or address is specified: | |
|
||
the first byte of the pair is the least significant byte. |