]>
Commit | Line | Data |
---|---|---|
1 | YET UNIMPLEMENTED: | |
2 | ||
3 | imm3 = 3-bit immediate value in 8 bits | |
4 | imm8 = 8-bit immediate value | |
5 | imm16 = 16-bit immediate value | |
6 | 16m8 = 8-bit value at the 16-bit address | |
7 | 8m8 = 8-bit value at the 8-bit address (the 16-bit equivalent is 0xFF00 + addr) | |
8 | ||
9 | bits insn notes | |
10 | 0000 1000 LD 16m16,SP loads SP | |
11 | 0001 0000 STOP | |
12 | 0111 0110 HALT Danger! Helvetica! | |
13 | 1100 1011 - - - see two-byte opcodes below | |
14 | ||
15 | ***************************** | |
16 | ||
17 | fucking two-byte opcodes | |
18 | ||
19 | bits insn notes | |
20 | 1100 1011 0000 0000 RLC B | |
21 | 1100 1011 0000 0001 RLC C | |
22 | 1100 1011 0000 0010 RLC D | |
23 | 1100 1011 0000 0011 RLC E | |
24 | 1100 1011 0000 0100 RLC H | |
25 | 1100 1011 0000 0101 RLC L | |
26 | 1100 1011 0000 0110 RLC (HL) | |
27 | 1100 1011 0000 0111 RLC A | |
28 | ||
29 | 1100 1011 0000 1000 RRC B | |
30 | 1100 1011 0000 1001 RRC C | |
31 | 1100 1011 0000 1010 RRC D | |
32 | 1100 1011 0000 1011 RRC E | |
33 | 1100 1011 0000 1100 RRC H | |
34 | 1100 1011 0000 1101 RRC L | |
35 | 1100 1011 0000 1110 RRC (HL) | |
36 | 1100 1011 0000 1111 RRC A | |
37 | ||
38 | 1100 1011 0001 0000 RL B | |
39 | 1100 1011 0001 0001 RL C | |
40 | 1100 1011 0001 0010 RL D | |
41 | 1100 1011 0001 0011 RL E | |
42 | 1100 1011 0001 0100 RL H | |
43 | 1100 1011 0001 0101 RL L | |
44 | 1100 1011 0001 0110 RL (HL) | |
45 | 1100 1011 0001 0111 RL A | |
46 | ||
47 | 1100 1011 0001 1000 RR B | |
48 | 1100 1011 0001 1001 RR C | |
49 | 1100 1011 0001 1010 RR D | |
50 | 1100 1011 0001 1011 RR E | |
51 | 1100 1011 0001 1100 RR H | |
52 | 1100 1011 0001 1101 RR L | |
53 | 1100 1011 0001 1110 RR (HL) | |
54 | 1100 1011 0001 1111 RR A | |
55 | ||
56 | 1100 1011 0010 0000 SLA B | |
57 | 1100 1011 0010 0001 SLA C | |
58 | 1100 1011 0010 0010 SLA D | |
59 | 1100 1011 0010 0011 SLA E | |
60 | 1100 1011 0010 0100 SLA H | |
61 | 1100 1011 0010 0101 SLA L | |
62 | 1100 1011 0010 0110 SLA (HL) | |
63 | 1100 1011 0010 0111 SLA A | |
64 | ||
65 | 1100 1011 0010 1000 SRA B | |
66 | 1100 1011 0010 1001 SRA C | |
67 | 1100 1011 0010 1010 SRA D | |
68 | 1100 1011 0010 1011 SRA E | |
69 | 1100 1011 0010 1100 SRA H | |
70 | 1100 1011 0010 1101 SRA L | |
71 | 1100 1011 0010 1110 SRA (HL) | |
72 | 1100 1011 0010 1111 SRA A | |
73 | ||
74 | 1100 1011 0011 1000 SRL B | |
75 | 1100 1011 0011 1001 SRL C | |
76 | 1100 1011 0011 1010 SRL D | |
77 | 1100 1011 0011 1011 SRL E | |
78 | 1100 1011 0011 1100 SRL H | |
79 | 1100 1011 0011 1101 SRL L | |
80 | 1100 1011 0011 1110 SRL (HL) | |
81 | 1100 1011 0011 1111 SRL A | |
82 | ||
83 | 1100 1011 0011 0000 SWAP B swaps upper and lower nibbles of a byte | |
84 | 1100 1011 0011 0001 SWAP C | |
85 | 1100 1011 0011 0010 SWAP D | |
86 | 1100 1011 0011 0011 SWAP E | |
87 | 1100 1011 0011 0100 SWAP H | |
88 | 1100 1011 0011 0101 SWAP L | |
89 | 1100 1011 0011 0110 SWAP (HL) | |
90 | 1100 1011 0011 0111 SWAP A | |
91 | ||
92 | 1100 1011 1000 0000 RES imm3, B reset bit specified by imm3 | |
93 | 1100 1011 1000 0001 RES imm3, C | |
94 | 1100 1011 1000 0010 RES imm3, D | |
95 | 1100 1011 1000 0011 RES imm3, E | |
96 | 1100 1011 1000 0100 RES imm3, H | |
97 | 1100 1011 1000 0101 RES imm3, L | |
98 | 1100 1011 1000 0110 RES imm3, (HL) | |
99 | 1100 1011 1000 0111 RES imm3, A | |
100 | ||
101 | 1100 1011 1100 0000 SET imm3, B set bit specified by imm3 | |
102 | 1100 1011 1100 0001 SET imm3, C | |
103 | 1100 1011 1100 0010 SET imm3, D | |
104 | 1100 1011 1100 0011 SET imm3, E | |
105 | 1100 1011 1100 0100 SET imm3, H | |
106 | 1100 1011 1100 0101 SET imm3, L | |
107 | 1100 1011 1100 0110 SET imm3, (HL) | |
108 | 1100 1011 1100 0111 SET imm3, A |