2. UNPREFIXED OPCODES FOR x=0 z=0 y=0 NOP y=2 DJNZ d y=1 EX AF, AF' y=3 JR d y=4 JR cc[y-4], d y=5 JR cc[y-4], d y=6 JR cc[y-4], d y=7 JR cc[y-4], d Relative jumps and assorted ops z=1 q=0 LD rp[p], nn q=1 ADD HL, rp[p] 16-bit load immediate/add z=2 q=0 p=0 LD (BC), A q=0 p=2 LD (nn), HL q=0 p=1 LD (DE), A q=0 p=3 LD (nn), A q=1 p=0 LD A, (BC) q=1 p=2 LD HL, (nn) q=1 p=1 LD A, (DE) q=1 p=3 LD A, (nn) Indirect loading z=3 q=0 INC rp[p] q=1 DEC rp[p] 16-bit INC/DEC z=4 INC r[y] 8-bit INC z=5 DEC r[y] 8-bit DEC z=6 LD r[y], n 8-bit load immediate z=7 y=0 RLCA y=4 DAA y=1 RRCA y=5 CPL y=2 RLA y=6 SCF y=3 RRA y=7 CCF Assorted operations on accumulator/flags FOR x=1 z=6 y=6 HALT z=-1 LD r[y], r[z] Exception (replaces LD (HL), (HL)) FOR x=2 alu[y] r[z] Operate on accumulator and register/memory location FOR x=3 z=0 RET cc[y] Conditional return z=1 q=0 POP rp2[p] q=1 p=0 RET q=1 p=2 JP HL q=1 p=1 EXX q=1 p=3 LD SP, HL POP & various ops z=2 JP cc[y], nn Conditional jump z=3 y=0 JP nn y=4 EX (SP), HL y=1 (CB prefix) y=5 EX DE, HL y=2 OUT (n), A y=6 DI y=3 IN A, (n) y=7 EI Assorted operations z=4 CALL cc[y], nn Conditional call z=5 q=0 PUSH rp2[p] q=1 p=0 CALL nn p=2 (ED prefix) q=1 p=1 (DD prefix) q=1 p=3 (FD prefix) PUSH & various ops z=6 alu[y] n Operate on accumulator and immediate operand z=7 RST y*8 Restart