| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Flags | Caption | ||||||||||||||||||||||||
2 | F | -*01? | Flag unaffected/affected/reset/set/unknown | b | One bit (0 to 7) | |||||||||||||||||||||
3 | S | S | Sign flag (Bit 7) | cc | Condition (C,M,NC,NZ,P,PE,PO,Z) | |||||||||||||||||||||
4 | Z | Z | Zero flag (Bit 6) | d | One-byte expression (-128 to +127) | |||||||||||||||||||||
5 | HC | H | Half Carry flag (Bit 4) | dst | Destination s, ss, (BC), (DE), (HL), (nn) | |||||||||||||||||||||
6 | P/V | P | Parity/Overflow flag (Bit 2, V=overflow) | e | One-byte expression (-126 to +129) | |||||||||||||||||||||
7 | N | N | Add/Subtract flag (Bit 1) | m | Any register r, (HL) or (xx+d) | |||||||||||||||||||||
8 | CY | C | Carry flag (Bit 0) | n | One-byte expression (0 to 255) | |||||||||||||||||||||
9 | nn | Two-byte expression (0 to 65535) | ||||||||||||||||||||||||
10 | Addressing | pp | Register pair BC, DE, IX or SP | |||||||||||||||||||||||
11 | n | Immediate addressing | Register pair AF, BC, DE or HL | |||||||||||||||||||||||
12 | nn | Immediate extended addressing | qq' | Alternative register pair AF, BC, DE or HL | ||||||||||||||||||||||
13 | e | Relative addressing (PC=PC+2+offset) | r | Register A, B, C, D, E, H or L | ||||||||||||||||||||||
14 | (nn) | Extended addressing | rr | Register pair BC, DE, IY or SP | ||||||||||||||||||||||
15 | (xx+d) | Indexed addressing | s | Any register r, value n, (HL) or (xx+d) | ||||||||||||||||||||||
16 | r | Register addressing | src | Source s, ss, (BC), (DE), (HL), nn, (nn) | ||||||||||||||||||||||
17 | (rr) | Register indirect addressing | ss | Register pair BC, DE, HL or SP | ||||||||||||||||||||||
18 | Implied addressing | xx | Index register IX or IY | |||||||||||||||||||||||
19 | b | Bit addressing | + - * / ^ | Add/subtract/multiply/divide/exponent | ||||||||||||||||||||||
20 | p | Modified page zero addressing (see RST) | & ~ v x | Logical AND/NOT/inclusive OR/exclusive OR | ||||||||||||||||||||||
21 | <- -> | Rotate left/right | ||||||||||||||||||||||||
22 | Registers | ( ) | Indirect addressing | |||||||||||||||||||||||
23 | A B C D E H L | Registers (8-bit) | ( )+ -( ) | Indirect addressing auto-increment/decrement | ||||||||||||||||||||||
24 | AF BC DE HL | Register pairs (16-bit) | { } | Combination of operands | ||||||||||||||||||||||
25 | F | Flag register (8-bit) | # | Also BC=BC-1,DE=DE-1 | ||||||||||||||||||||||
26 | I | Interrupt page address register (8-bit) | ## | Only lower 4 bits of accumulator A used | ||||||||||||||||||||||
27 | IX IY | Index registers (16-bit) | ||||||||||||||||||||||||
28 | PC | Program Counter register (16-bit) | ||||||||||||||||||||||||
29 | R | Memory Refresh register | ||||||||||||||||||||||||
30 | SP | Stack Pointer register (16-bit) | ||||||||||||||||||||||||
31 | ||||||||||||||||||||||||||
32 | ||||||||||||||||||||||||||
33 | ||||||||||||||||||||||||||
34 | ||||||||||||||||||||||||||
35 | ||||||||||||||||||||||||||
36 | ||||||||||||||||||||||||||
37 | ||||||||||||||||||||||||||
38 | ||||||||||||||||||||||||||
39 | ||||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 | ||||||||||||||||||||||||||