Opcode Matrix

Instructions shown in an Opcode Matrix
0123456789ABCDEF
0
NOP 0014
LD BC, nn 01nnnn310
LD (BC), A 0217
INC BC 0316
INC B 0414
DEC B 0514
LD B, n 06nn27
RLCA 0714
EX AF, AF' 0814
ADD HL,BC 09111
LD A, (BC) 0A17
DEC BC 0B16
INC C 0C14
DEC C 0D14
LD C, n 0Enn27
RRCA 0F14
1
DJNZ e 10nn213
LD DE, nn 11nnnn310
LD (DE), A 1217
INC DE 1316
INC D 1414
DEC D 1514
LD D, n 16nn27
RLA 1714
JR e 18nn212
ADD HL,DE 19111
LD A, (DE) 1A17
DEC DE 1B16
INC E 1C14
DEC E 1D14
LD E, n 1Enn27
RRA 1F14
2
JR NZ,e 20nn212
LD HL, nn 21nnnn310
LD (nn), HL 22nnnn316
INC HL 2316
INC H 2414
DEC H 2514
LD H, n 26nn27
DAA 2714
JR Z,e 28nn212
ADD HL,HL 29111
LD HL, (nn) 2Annnn316
DEC HL 2B16
INC L 2C14
DEC L 2D14
LD L, n 2Enn27
CPL 2F14
3
JR NC,e 30nn212
LD SP, nn 31nnnn310
LD (nn), A 32nnnn313
INC SP 3316
INC (HL) 34111
DEC (HL) 35111
LD (HL), n 36nn210
SCF 3714
JR C,e 38nn212
ADD HL,SP 39111
LD A, (nn) 3Annnn313
DEC SP 3B16
INC A 3C14
DEC A 3D14
LD A, n 3Enn27
CCF 3F14
4
LD B, B 4014
LD B, C 4114
LD B, D 4214
LD B, E 4314
LD B, H 4414
LD B, L 4514
LD B, (HL) 4617
LD B, A 4714
LD C, B 4814
LD C, C 4914
LD C, D 4A14
LD C, E 4B14
LD C, H 4C14
LD C, L 4D14
LD C, (HL) 4E17
LD C, A 4F14
5
LD D, B 5014
LD D, C 5114
LD D, D 5214
LD D, E 5314
LD D, H 5414
LD D, L 5514
LD D, (HL) 5617
LD D, A 5714
LD E, B 5814
LD E, C 5914
LD E, D 5A14
LD E, E 5B14
LD E, H 5C14
LD E, L 5D14
LD E, (HL) 5E17
LD E, A 5F14
6
LD H, B 6014
LD H, C 6114
LD H, D 6214
LD H, E 6314
LD H, H 6414
LD H, L 6514
LD H, (HL) 6617
LD H, A 6714
LD L, B 6814
LD L, C 6914
LD L, D 6A14
LD L, E 6B14
LD L, H 6C14
LD L, L 6D14
LD L, (HL) 6E17
LD L, A 6F14
7
LD (HL), B 7017
LD (HL), C 7117
LD (HL), D 7217
LD (HL), E 7317
LD (HL), H 7417
LD (HL), L 7517
HALT 7614
LD (HL), A 7717
LD A, B 7814
LD A, C 7914
LD A, D 7A14
LD A, E 7B14
LD A, H 7C14
LD A, L 7D14
LD A, (HL) 7E17
LD A, A 7F14
8
ADD A,B 8014
ADD A,C 8114
ADD A,D 8214
ADD A,E 8314
ADD A,H 8414
ADD A,L 8514
ADD A,(HL) 8617
ADD A,A 8714
ADC A,B 8814
ADC A,C 8914
ADC A,D 8A14
ADC A,E 8B14
ADC A,H 8C14
ADC A,L 8D14
ADC A,(HL) 8E17
ADC A,A 8F14
9
SUB A,B 9014
SUB A,C 9114
SUB A,D 9214
SUB A,E 9314
SUB A,H 9414
SUB A,L 9514
SUB A,(HL) 9617
SUB A,A 9714
SBC A,B 9814
SBC A,C 9914
SBC A,D 9A14
SBC A,E 9B14
SBC A,H 9C14
SBC A,L 9D14
SBC A,(HL) 9E17
SBC A,A 9F14
A
AND A,B A014
AND A,C A114
AND A,D A214
AND A,E A314
AND A,H A414
AND A,L A514
AND A,(HL) A617
AND A,A A714
XOR A,B A814
XOR A,C A914
XOR A,D AA14
XOR A,E AB14
XOR A,H AC14
XOR A,L AD14
XOR A,(HL) AE17
XOR A,A AF14
B
OR A,B B014
OR A,C B114
OR A,D B214
OR A,E B314
OR A,H B414
OR A,L B514
OR A,(HL) B617
OR A,A B714
CP B B814
CP C B914
CP D BA14
CP E BB14
CP H BC14
CP L BD14
CP (HL) BE17
CP A BF14
C
RET NZ C0111
POP BC C1110
JP NZ,nn C2nnnn310
JP nn C3nnnn310
CALL NZ,nn C4nnnn317
PUSH BC C5111
ADD A,n C6nn27
RST 0 C7111
RET Z C8111
RET C9110
JP Z,nn CAnnnn310
Instruction Prefix CB
CALL Z,nn CCnnnn317
CALL nn CDnnnn317
ADC A,n CEnn27
RST 1 CF111
D
RET NC D0111
POP DE D1110
JP NC,nn D2nnnn310
OUT (n),A D3nn211
CALL NC,nn D4nnnn317
PUSH DE D5111
SUB A,n D6nn27
RST 2 D7111
RET C D8111
EXX D914
JP C,nn DAnnnn310
IN A,(n) DBnn211
CALL C,nn DCnnnn317
Instruction Prefix DD
SBC A,n DEnn27
RST 3 DF111
E
RET PO E0111
POP HL E1110
JP PO,nn E2nnnn310
EX (SP), HL E3119
CALL PO,nn E4nnnn317
PUSH HL E5111
AND A,n E6nn27
RST 4 E7111
RET PE E8111
JP (HL) E914
JP PE,nn EAnnnn310
EX DE, HL EB14
CALL PE,nn ECnnnn317
Instruction Prefix ED
XOR A,n EEnn27
RST 5 EF111
F
RET P F0111
POP AF F1110
JP P,nn F2nnnn310
DI F314
CALL P,nn F4nnnn317
PUSH AF F5111
OR A,n F6nn27
RST 6 F7111
RET N F8111
LD SP, HL F916
JP N,nn FAnnnn310
EI FB14
CALL N,nn FCnnnn317
Instruction Prefix FD
CP n FEnn27
RST 7 FF111
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory Implicit Flow Interrupt Special Extension Undefined Undocumented
Opcodes with prefix 0xCB
0123456789ABCDEF
0
RLC B CB00nn28
RLC C CB01nn28
RLC D CB02nn28
RLC E CB03nn28
RLC H CB04nn28
RLC L CB05nn28
RLC (HL) CB06nn28
RLC A CB07nn28
RRC B CB08nn28
RRC C CB09nn28
RRC D CB0Ann28
RRC E CB0Bnn28
RRC H CB0Cnn28
RRC L CB0Dnn28
RRC (HL) CB0Enn215
RRC A CB0Fnn28
1
RL B CB10nn28
RL C CB11nn28
RL D CB12nn28
RL E CB13nn28
RL H CB14nn28
RL L CB15nn28
RL (HL) CB16nn215
RL A CB17nn28
RR B CB18nn28
RR C CB19nn28
RR D CB1Ann28
RR E CB1Bnn28
RR H CB1Cnn28
RR L CB1Dnn28
RR (HL) CB1Enn215
RR A CB1Fnn28
2
SLA B CB20nn28
SLA C CB21nn28
SLA D CB22nn28
SLA E CB23nn28
SLA H CB24nn28
SLA L CB25nn28
SLA (HL) CB26nn215
SLA A CB27nn28
SRA B CB28nn28
SRA C CB29nn28
SRA D CB2Ann28
SRA E CB2Bnn28
SRA H CB2Cnn28
SRA L CB2Dnn28
SRA (HL) CB2Enn215
SRA A CB2Fnn28
3
SLL B CB30
SLL C CB31
SLL D CB32
SLL E CB33
SLL H CB34
SLL L CB35
SLL (HL) CB36
SLL A CB37
SRL B CB38nn28
SRL C CB39nn28
SRL D CB3Ann28
SRL E CB3Bnn28
SRL H CB3Cnn28
SRL L CB3Dnn28
SRL (HL) CB3Enn215
SRL A CB3Fnn28
4
BIT 0,B CB40nn28
BIT 0,C CB41nn28
BIT 0,D CB42nn28
BIT 0,E CB43nn28
BIT 0,H CB44nn28
BIT 0,L CB45nn28
BIT 0,(HL) CB46nn212
BIT 0,A CB47nn28
BIT 1,B CB48nn28
BIT 1,C CB49nn28
BIT 1,D CB4Ann28
BIT 1,E CB4Bnn28
BIT 1,H CB4Cnn28
BIT 1,L CB4Dnn28
BIT 1,(HL) CB4Enn212
BIT 1,A CB4Fnn28
5
BIT 2,B CB50nn28
BIT 2,C CB51nn28
BIT 2,D CB52nn28
BIT 2,E CB53nn28
BIT 2,H CB54nn28
BIT 2,L CB55nn28
BIT 2,(HL) CB56nn212
BIT 2,A CB57nn28
BIT 3,B CB58nn28
BIT 3,C CB59nn28
BIT 3,D CB5Ann28
BIT 3,E CB5Bnn28
BIT 3,H CB5Cnn28
BIT 3,L CB5Dnn28
BIT 3,(HL) CB5Enn212
BIT 3,A CB5Fnn28
6
BIT 4,B CB60nn28
BIT 4,C CB61nn28
BIT 4,D CB62nn28
BIT 4,E CB63nn28
BIT 4,H CB64nn28
BIT 4,L CB65nn28
BIT 4,(HL) CB66nn212
BIT 4,A CB67nn28
BIT 5,B CB68nn28
BIT 5,C CB69nn28
BIT 5,D CB6Ann28
BIT 5,E CB6Bnn28
BIT 5,H CB6Cnn28
BIT 5,L CB6Dnn28
BIT 5,(HL) CB6Enn212
BIT 5,A CB6Fnn28
7
BIT 6,B CB70nn28
BIT 6,C CB71nn28
BIT 6,D CB72nn28
BIT 6,E CB73nn28
BIT 6,H CB74nn28
BIT 6,L CB75nn28
BIT 6,(HL) CB76nn212
BIT 6,A CB77nn28
BIT 7,B CB78nn28
BIT 7,C CB79nn28
BIT 7,D CB7Ann28
BIT 7,E CB7Bnn28
BIT 7,H CB7Cnn28
BIT 7,L CB7Dnn28
BIT 7,(HL) CB7Enn212
BIT 7,A CB7Fnn28
8
RES 0,B CB80nn28
RES 0,C CB81nn28
RES 0,D CB82nn28
RES 0,E CB83nn28
RES 0,H CB84nn28
RES 0,L CB85nn28
RES 0,(HL) CB86nn215
RES 0,A CB87nn28
RES 1,B CB88nn28
RES 1,C CB89nn28
RES 1,D CB8Ann28
RES 1,E CB8Bnn28
RES 1,H CB8Cnn28
RES 1,L CB8Dnn28
RES 1,(HL) CB8Enn215
RES 1,A CB8Fnn28
9
RES 2,B CB90nn28
RES 2,C CB91nn28
RES 2,D CB92nn28
RES 2,E CB93nn28
RES 2,H CB94nn28
RES 2,L CB95nn28
RES 2,(HL) CB96nn215
RES 2,A CB97nn28
RES 3,B CB98nn28
RES 3,C CB99nn28
RES 3,D CB9Ann28
RES 3,E CB9Bnn28
RES 3,H CB9Cnn28
RES 3,L CB9Dnn28
RES 3,(HL) CB9Enn215
RES 3,A CB9Fnn28
A
RES 4,B CBA0nn28
RES 4,C CBA1nn28
RES 4,D CBA2nn28
RES 4,E CBA3nn28
RES 4,H CBA4nn28
RES 4,L CBA5nn28
RES 4,(HL) CBA6nn215
RES 4,A CBA7nn28
RES 5,B CBA8nn28
RES 5,C CBA9nn28
RES 5,D CBAAnn28
RES 5,E CBABnn28
RES 5,H CBACnn28
RES 5,L CBADnn28
RES 5,(HL) CBAEnn215
RES 5,A CBAFnn28
B
RES 6,B CBB0nn28
RES 6,C CBB1nn28
RES 6,D CBB2nn28
RES 6,E CBB3nn28
RES 6,H CBB4nn28
RES 6,L CBB5nn28
RES 6,(HL) CBB6nn215
RES 6,A CBB7nn28
RES 7,B CBB8nn28
RES 7,C CBB9nn28
RES 7,D CBBAnn28
RES 7,E CBBBnn28
RES 7,H CBBCnn28
RES 7,L CBBDnn28
RES 7,(HL) CBBEnn215
RES 7,A CBBFnn28
C
SET 0,B CBC0nn28
SET 0,C CBC1nn28
SET 0,D CBC2nn28
SET 0,E CBC3nn28
SET 0,H CBC4nn28
SET 0,L CBC5nn28
SET 0,(HL) CBC6nn215
SET 0,A CBC7nn28
SET 1,B CBC8nn28
SET 1,C CBC9nn28
SET 1,D CBCAnn28
SET 1,E CBCBnn28
SET 1,H CBCCnn28
SET 1,L CBCDnn28
SET 1,(HL) CBCEnn215
SET 1,A CBCFnn28
D
SET 2,B CBD0nn28
SET 2,C CBD1nn28
SET 2,D CBD2nn28
SET 2,E CBD3nn28
SET 2,H CBD4nn28
SET 2,L CBD5nn28
SET 2,(HL) CBD6nn215
SET 2,A CBD7nn28
SET 3,B CBD8nn28
SET 3,C CBD9nn28
SET 3,D CBDAnn28
SET 3,E CBDBnn28
SET 3,H CBDCnn28
SET 3,L CBDDnn28
SET 3,(HL) CBDEnn215
SET 3,A CBDFnn28
E
SET 4,B CBE0nn28
SET 4,C CBE1nn28
SET 4,D CBE2nn28
SET 4,E CBE3nn28
SET 4,H CBE4nn28
SET 4,L CBE5nn28
SET 4,(HL) CBE6nn215
SET 4,A CBE7nn28
SET 5,B CBE8nn28
SET 5,C CBE9nn28
SET 5,D CBEAnn28
SET 5,E CBEBnn28
SET 5,H CBECnn28
SET 5,L CBEDnn28
SET 5,(HL) CBEEnn215
SET 5,A CBEFnn28
F
SET 6,B CBF0nn28
SET 6,C CBF1nn28
SET 6,D CBF2nn28
SET 6,E CBF3nn28
SET 6,H CBF4nn28
SET 6,L CBF5nn28
SET 6,(HL) CBF6nn215
SET 6,A CBF7nn28
SET 7,B CBF8nn28
SET 7,C CBF9nn28
SET 7,D CBFAnn28
SET 7,E CBFBnn28
SET 7,H CBFCnn28
SET 7,L CBFDnn28
SET 7,(HL) CBFEnn215
SET 7,A CBFFnn28
Opcodes with prefix 0xDD
0123456789ABCDEF
0
ADD IX,BC DD09nn215
1
ADD IX,DE DD19nn215
2
LD IX, nn DD21nnnn414
LD (nn), IX DD22nnnn420
INC IX DD23nn210
INC IXh DD24
DEC IXh DD25
LD IXh,n DD26nn
ADD IX,IX DD29nn215
LD IX, (nn) DD2Annnn420
DEC IX DD2Bnn210
INC IXl DD2C
DEC IXl DD2D
LD IXl,n DD2Enn
3
INC (IX+d) DD34nn323
DEC (IX+d) DD35nn323
LD (IX+d), n DD36nnnn419
ADD IX,SP DD39nn215
4
LD B,IXh DD44
LD B,IXl DD45
LD B, (IX+d) DD46nn319
LD C,IXh DD4C
LD C,IXl DD4D
LD C, (IX+d) DD4Enn319
5
LD D,IXh DD54
LD D,IXl DD55
LD D, (IX+d) DD56nn319
LD E,IXh DD5C
LD E,IXl DD5D
LD E, (IX+d) DD5Enn319
6
LD IXh,B DD60
LD IXh,C DD61
LD IXh,D DD62
LD IXh,E DD63
LD IXh,IHh DD64
LD IXh,IHl DD65
LD H, (IX+d) DD66nn319
LD IXh,A DD67
LD IXl,B DD68
LD IXl,C DD69
LD IXl,D DD6A
LD IXl,E DD6B
LD IXl,IHh DD6C
LD IXl,IHl DD6D
LD L, (IX+d) DD6Enn319
LD IXl,A DD6F
7
LD (IX+d), B DD70nn319
LD (IX+d), C DD71nn319
LD (IX+d), D DD72nn319
LD (IX+d), E DD73nn319
LD (IX+d), H DD74nn319
LD (IX+d), L DD75nn319
LD (IX+d), A DD77nn319
LD A,IXh DD7C
LD A,IXl DD7D
LD A, (IX+d) DD7Enn319
8
ADD A,IXh DD84
ADD A,IXl DD85
ADD A,(IX+d) DD86nn319
ADC A,IXh DD8C
ADC A,IXl DD8D
ADC A,(IX+d) DD8Enn319
9
SUB IXh DD94
SUB IXl DD95
SUB A,(IX+d) DD96nn319
SBC A,IXh DD9C
SBC A,IXl DD9D
SBC A,(IX+d) DD9Enn119
A
AND IXh DDA4
AND IXl DDA5
AND A,(IX+d) DDA6nn319
XOR IXh DDAC
XOR IXl DDAD
XOR A,(IX+d) DDAEnn319
B
OR IXh DDB4
OR IXl DDB5
OR A,(IX+d) DDB6nn319
CP IXh DDBC
CP IXl DDBD
CP (IX+d) DDBEnn319
C
Instruction Prefix DDCB
D
E
POP IX DDE1nn214
EX (SP), IX DDE3nn223
PUSH IX DDE5nn215
JP (IX) DDE9nn28
F
LD SP, IX DDF9nn26
Opcodes with prefix 0xDDCB
0123456789ABCDEF
0
RLC B,(IX+d) DDCBnn00
RLC C,(IX+d) DDCBnn01
RLC D,(IX+d) DDCBnn02
RLC E,(IX+d) DDCBnn03
RLC H,(IX+d) DDCBnn04
RLC L,(IX+d) DDCBnn05
RLC (IX+d) DDCBnn06423
RLC A,(IX+d) DDCBnn07
RRC B,(IX+d) DDCBnn08
RRC C,(IX+d) DDCBnn09
RRC D,(IX+d) DDCBnn0A
RRC E,(IX+d) DDCBnn0B
RRC H,(IX+d) DDCBnn0C
RRC L,(IX+d) DDCBnn0D
RRC (IX+d) DDCBnn0E423
RRC A,(IX+d) DDCBnn0F
1
RL B,(IX+d) DDCBnn10
RL C,(IX+d) DDCBnn11
RL D,(IX+d) DDCBnn12
RL E,(IX+d) DDCBnn13
RL H,(IX+d) DDCBnn14
RL L,(IX+d) DDCBnn15
RL (IX+d) DDCBnn16423
RL A,(IX+d) DDCBnn17
RR B,(IX+d) DDCBnn18
RR C,(IX+d) DDCBnn19
RR D,(IX+d) DDCBnn1A
RR E,(IX+d) DDCBnn1B
RR H,(IX+d) DDCBnn1C
RR L,(IX+d) DDCBnn1D
RR (IX+d) DDCBnn1E423
RR A,(IX+d) DDCBnn1F
2
SLA B,(IX+d) DDCBnn20
SLA C,(IX+d) DDCBnn21
SLA D,(IX+d) DDCBnn22
SLA E,(IX+d) DDCBnn23
SLA H,(IX+d) DDCBnn24
SLA L,(IX+d) DDCBnn25
SLA (IX+d) DDCBnn26423
SLA A,(IX+d) DDCBnn27
SRA B,(IX+d) DDCBnn28
SRA C,(IX+d) DDCBnn29
SRA D,(IX+d) DDCBnn2A
SRA E,(IX+d) DDCBnn2B
SRA H,(IX+d) DDCBnn2C
SRA L,(IX+d) DDCBnn2D
SRA (IX+d) DDCBnn2E423
SRA A,(IX+d) DDCBnn2F
3
SLL B,(IX+d) DDCBnn30
SLL C,(IX+d) DDCBnn31
SLL D,(IX+d) DDCBnn32
SLL E,(IX+d) DDCBnn33
SLL H,(IX+d) DDCBnn34
SLL L,(IX+d) DDCBnn35
SLL (IX+dd) DDCBnn36
SLL A,(IX+d) DDCBnn37
SRL B,(IX+d) DDCBnn38
SRL C,(IX+d) DDCBnn39
SRL D,(IX+d) DDCBnn3A
SRL E,(IX+d) DDCBnn3B
SRL H,(IX+d) DDCBnn3C
SRL L,(IX+d) DDCBnn3D
SRL (IX+d) DDCBnn3E423
SRL A,(IX+d) DDCBnn3F
4
BIT 0,(IX+d) DDCBnn40
BIT 0,(IX+d) DDCBnn41
BIT 0,(IX+d) DDCBnn42
BIT 0,(IX+d) DDCBnn43
BIT 0,(IX+d) DDCBnn44
BIT 0,(IX+d) DDCBnn45
BIT 0,(IX+d) DDCBnn46420
BIT 0,(IX+d) DDCBnn47
BIT 1,(IX+d) DDCBnn48
BIT 1,(IX+d) DDCBnn49
BIT 1,(IX+d) DDCBnn4A
BIT 1,(IX+d) DDCBnn4B
BIT 1,(IX+d) DDCBnn4C
BIT 1,(IX+d) DDCBnn4D
BIT 1,(IX+d) DDCBnn4E420
BIT 1,(IX+d) DDCBnn4F
5
BIT 2,(IX+d) DDCBnn50
BIT 2,(IX+d) DDCBnn51
BIT 2,(IX+d) DDCBnn52
BIT 2,(IX+d) DDCBnn53
BIT 2,(IX+d) DDCBnn54
BIT 2,(IX+d) DDCBnn55
BIT 2,(IX+d) DDCBnn56420
BIT 2,(IX+d) DDCBnn57
BIT 3,(IX+d) DDCBnn58
BIT 3,(IX+d) DDCBnn59
BIT 3,(IX+d) DDCBnn5A
BIT 3,(IX+d) DDCBnn5B
BIT 3,(IX+d) DDCBnn5C
BIT 3,(IX+d) DDCBnn5D
BIT 3,(IX+d) DDCBnn5E420
BIT 3,(IX+d) DDCBnn5F
6
BIT 4,(IX+d) DDCBnn60
BIT 4,(IX+d) DDCBnn61
BIT 4,(IX+d) DDCBnn62
BIT 4,(IX+d) DDCBnn63
BIT 4,(IX+d) DDCBnn64
BIT 4,(IX+d) DDCBnn65
BIT 4,(IX+d) DDCBnn66420
BIT 4,(IX+d) DDCBnn67
BIT 5,(IX+d) DDCBnn68
BIT 5,(IX+d) DDCBnn69
BIT 5,(IX+d) DDCBnn6A
BIT 5,(IX+d) DDCBnn6B
BIT 5,(IX+d) DDCBnn6C
BIT 5,(IX+d) DDCBnn6D
BIT 5,(IX+d) DDCBnn6E420
BIT 5,(IX+d) DDCBnn6F
7
BIT 6,(IX+d) DDCBnn70
BIT 6,(IX+d) DDCBnn71
BIT 6,(IX+d) DDCBnn72
BIT 6,(IX+d) DDCBnn73
BIT 6,(IX+d) DDCBnn74
BIT 6,(IX+d) DDCBnn75
BIT 6,(IX+d) DDCBnn76420
BIT 6,(IX+d) DDCBnn77
BIT 7,(IX+d) DDCBnn78
BIT 7,(IX+d) DDCBnn79
BIT 7,(IX+d) DDCBnn7A
BIT 7,(IX+d) DDCBnn7B
BIT 7,(IX+d) DDCBnn7C
BIT 7,(IX+d) DDCBnn7D
BIT 7,(IX+d) DDCBnn7E420
BIT 7,(IX+d) DDCBnn7F
8
RES B,0,(IX+nn) DDCBnn80
RES C,0,(IX+nn) DDCBnn81
RES D,0,(IX+nn) DDCBnn82
RES E,0,(IX+nn) DDCBnn83
RES H,0,(IX+nn) DDCBnn84
RES L,0,(IX+nn) DDCBnn85
RES 0,(IX+d) DDCBnn86423
RES A,0,(IX+nn) DDCBnn87
RES B,1,(IX+nn) DDCBnn88
RES C,1,(IX+nn) DDCBnn89
RES D,1,(IX+nn) DDCBnn8A
RES E,1,(IX+nn) DDCBnn8B
RES H,1,(IX+nn) DDCBnn8C
RES L,1,(IX+nn) DDCBnn8D
RES 1,(IX+d) DDCBnn8E423
RES A,1,(IX+nn) DDCBnn8F
9
RES B,2,(IX+nn) DDCBnn90
RES C,2,(IX+nn) DDCBnn91
RES D,2,(IX+nn) DDCBnn92
RES E,2,(IX+nn) DDCBnn93
RES H,2,(IX+nn) DDCBnn94
RES L,2,(IX+nn) DDCBnn95
RES 2,(IX+d) DDCBnn96423
RES A,2,(IX+nn) DDCBnn97
RES B,3,(IX+nn) DDCBnn98
RES C,3,(IX+nn) DDCBnn99
RES D,3,(IX+nn) DDCBnn9A
RES E,3,(IX+nn) DDCBnn9B
RES H,3,(IX+nn) DDCBnn9C
RES L,3,(IX+nn) DDCBnn9D
RES 3,(IX+d) DDCBnn9E423
RES A,3,(IX+nn) DDCBnn9F
A
RES B,4,(IX+nn) DDCBnnA0
RES C,4,(IX+nn) DDCBnnA1
RES D,4,(IX+nn) DDCBnnA2
RES E,4,(IX+nn) DDCBnnA3
RES H,4,(IX+nn) DDCBnnA4
RES L,4,(IX+nn) DDCBnnA5
RES 4,(IX+d) DDCBnnA6423
RES A,4,(IX+nn) DDCBnnA7
RES B,5,(IX+nn) DDCBnnA8
RES C,5,(IX+nn) DDCBnnA9
RES D,5,(IX+nn) DDCBnnAA
RES E,5,(IX+nn) DDCBnnAB
RES H,5,(IX+nn) DDCBnnAC
RES L,5,(IX+nn) DDCBnnAD
RES 5,(IX+d) DDCBnnAE423
RES A,5,(IX+nn) DDCBnnAF
B
RES B,6,(IX+nn) DDCBnnB0
RES C,6,(IX+nn) DDCBnnB1
RES D,6,(IX+nn) DDCBnnB2
RES E,6,(IX+nn) DDCBnnB3
RES H,6,(IX+nn) DDCBnnB4
RES L,6,(IX+nn) DDCBnnB5
RES 6,(IX+d) DDCBnnB6423
RES A,6,(IX+nn) DDCBnnB7
RES B,7,(IX+nn) DDCBnnB8
RES C,7,(IX+nn) DDCBnnB9
RES D,7,(IX+nn) DDCBnnBA
RES E,7,(IX+nn) DDCBnnBB
RES H,7,(IX+nn) DDCBnnBC
RES L,7,(IX+nn) DDCBnnBD
RES 7,(IX+d) DDCBnnBE423
RES A,7,(IX+nn) DDCBnnBF
C
SET B,0,(IX+nn) DDCBnnC0
SET C,0,(IX+nn) DDCBnnC1
SET D,0,(IX+nn) DDCBnnC2
SET E,0,(IX+nn) DDCBnnC3
SET H,0,(IX+nn) DDCBnnC4
SET L,0,(IX+nn) DDCBnnC5
SET 0,(IX+d) DDCBnnC6423
SET A,0,(IX+nn) DDCBnnC7
SET B,1,(IX+nn) DDCBnnC8
SET C,1,(IX+nn) DDCBnnC9
SET D,1,(IX+nn) DDCBnnCA
SET E,1,(IX+nn) DDCBnnCB
SET H,1,(IX+nn) DDCBnnCC
SET L,1,(IX+nn) DDCBnnCD
SET 1,(IX+d) DDCBnnCE423
SET A,1,(IX+nn) DDCBnnCF
D
SET B,2,(IX+nn) DDCBnnD0
SET C,2,(IX+nn) DDCBnnD1
SET D,2,(IX+nn) DDCBnnD2
SET E,2,(IX+nn) DDCBnnD3
SET H,2,(IX+nn) DDCBnnD4
SET L,2,(IX+nn) DDCBnnD5
SET 2,(IX+d) DDCBnnD6423
SET A,2,(IX+nn) DDCBnnD7
SET B,3,(IX+nn) DDCBnnD8
SET C,3,(IX+nn) DDCBnnD9
SET D,3,(IX+nn) DDCBnnDA
SET E,3,(IX+nn) DDCBnnDB
SET H,3,(IX+nn) DDCBnnDC
SET L,3,(IX+nn) DDCBnnDD
SET 3,(IX+d) DDCBnnDE423
SET A,3,(IX+nn) DDCBnnDF
E
SET B,4,(IX+nn) DDCBnnE0
SET C,4,(IX+nn) DDCBnnE1
SET D,4,(IX+nn) DDCBnnE2
SET E,4,(IX+nn) DDCBnnE3
SET H,4,(IX+nn) DDCBnnE4
SET L,4,(IX+nn) DDCBnnE5
SET 4,(IX+d) DDCBnnE6423
SET A,4,(IX+nn) DDCBnnE7
SET B,5,(IX+nn) DDCBnnE8
SET C,5,(IX+nn) DDCBnnE9
SET D,5,(IX+nn) DDCBnnEA
SET E,5,(IX+nn) DDCBnnEB
SET H,5,(IX+nn) DDCBnnEC
SET L,5,(IX+nn) DDCBnnED
SET 5,(IX+d) DDCBnnEE423
SET A,5,(IX+nn) DDCBnnEF
F
SET B,6,(IX+nn) DDCBnnF0
SET C,6,(IX+nn) DDCBnnF1
SET D,6,(IX+nn) DDCBnnF2
SET E,6,(IX+nn) DDCBnnF3
SET H,6,(IX+nn) DDCBnnF4
SET L,6,(IX+nn) DDCBnnF5
SET 6,(IX+d) DDCBnnF6423
SET A,6,(IX+nn) DDCBnnF7
SET B,7,(IX+nn) DDCBnnF8
SET C,7,(IX+nn) DDCBnnF9
SET D,7,(IX+nn) DDCBnnFA
SET E,7,(IX+nn) DDCBnnFB
SET H,7,(IX+nn) DDCBnnFC
SET L,7,(IX+nn) DDCBnnFD
SET 7,(IX+d) DDCBnnFE423
SET A,7,(IX+nn) DDCBnnFF
Opcodes with prefix 0xED
0123456789ABCDEF
0
1
2
3
4
IN B,(C) ED40nn212
OUT (C),B ED41nn212
SBC HL,BC ED42nn215
LD (nn), BC ED43nnnn420
NEG ED44nn24
RETN ED45nn214
IM0 ED46nn28
LD I, A ED47nn24
IN C,(C) ED48nn212
OUT (C),C ED49nn212
ADC HL,BC ED4Ann215
LD BC, (nn) ED4Bnnnn420
RETI ED4Dnn214
LD R, A ED4Fnn24
5
IN D,(C) ED50nn212
OUT (C),D ED51nn212
SBC HL,DE ED52nn215
LD (nn), DE ED53nnnn420
IM1 ED56nn28
LD A, I ED57nn29
IN E,(C) ED58nn212
OUT (C),E ED59nn212
ADC HL,DE ED5Ann215
LD DE, (nn) ED5Bnnnn420
IM2 ED5Enn28
LD A, R ED5Fnn29
6
IN H,(C) ED60nn212
OUT (C),H ED61nn212
SBC HL,HL ED62nn215
LD (nn), HL ED63nnnn420
RRD (HL) ED67nn218
IN L,(C) ED68nn212
OUT (C),L ED69nn212
ADC HL,HL ED6Ann215
LD HL, (nn) ED6Bnnnn420
RLD (HL) ED6Fnn218
7
IN F,(C) ED70nn212
OUT (C),F ED71nn212
SBC HL,SP ED72nn215
LD (nn), SP ED73nnnn420
OUT (C),A ED79nn212
ADC HL,SP ED7Ann215
LD SP, (nn) ED7Bnnnn420
8
9
A
LDI EDA0nn216
CPI EDA1nn216
INI EDA2nn216
OUTI EDA3nn216
LDD EDA8nn216
CPD EDA9nn216
IND EDAAnn216
OUTD EDABnn216
B
LDIR EDB0nn221
CPIR EDB1nn221
INIR EDB2nn221
OUTIR EDB3nn221
LDDR EDB8nn221
CPDR EDB9nn221
INDR EDBAnn221
OUTDR EDBBnn221
C
D
E
F
Opcodes with prefix 0xFD
0123456789ABCDEF
0
ADD IY,BC FD09nn215
1
ADD IY,DE FD19nn215
2
LD IY, nn FD21nnnn414
LD (nn), IY FD22nnnn420
INC IY FD23nn210
INC IYh FD24
DEC IYh FD25
LD IYh,n FD26nn
ADD IY,IY FD29nn215
LD IY, (nn) FD2Annnn420
DEC IY FD2Bnn210
INC IYl FD2C
DEC IYl FD2D
LD IYl,n FD2Enn
3
INC (IY+d) FD34nn323
DEC (IY+d) FD35nn323
LD (IY+d), n FD36nnnn419
ADD IY,SP FD39nn215
4
LD B,IYh FD44
LD B,IYl FD45
LD B, (IY+d) FD46nn319
LD C,IYh FD4C
LD C,IYl FD4D
LD C, (IY+d) FD4Enn319
5
LD D,IYh FD54
LD D,IYl FD55
LD D, (IY+d) FD56nn319
LD E,IYh FD5C
LD E,IYl FD5D
LD E, (IY+d) FD5Enn319
6
LD IYh,B FD60
LD IYh,C FD61
LD IYh,D FD62
LD IYh,E FD63
LD IYh,IHh FD64
LD IYh,IHl FD65
LD H, (IY+d) FD66nn319
LD IYh,A FD67
LD IYl,B FD68
LD IYl,C FD69
LD IYl,D FD6A
LD IYl,E FD6B
LD IYl,IHh FD6C
LD IYl,IHl FD6D
LD L, (IY+d) FD6Enn319
LD IYl,A FD6F
7
LD (IY+d), B FD70nn319
LD (IY+d), C FD71nn319
LD (IY+d), D FD72nn319
LD (IY+d), E FD73nn319
LD (IY+d), H FD74nn319
LD (IY+d), L FD75nn319
LD (IY+d), A FD77nn319
LD A,IYh FD7C
LD A,IYl FD7D
LD A, (IY+d) FD7Enn319
8
ADD A,IYh FD84
ADD A,IYl FD85
ADD A,(IY+d) FD86nn319
ADC A,IYh FD8C
ADC A,IYl FD8D
ADC A,(IY+d) FD8Enn319
9
SUB IYh FD94
SUB IYl FD95
SUB A,(IY+d) FD96nn319
SBC A,IYh FD9C
SBC A,IYl FD9D
SBC A,(IY+d) FD9Enn119
A
AND IYh FDA4
AND IYl FDA5
AND A,(IY+d) FDA6nn319
XOR IYh FDAC
XOR IYl FDAD
XOR A,(IY+d) FDAEnn319
B
OR IYh FDB4
OR IYl FDB5
OR A,(IY+d) FDB6nn319
CP IYh FDBC
CP IYl FDBD
CP (IY+d) FDBEnn319
C
Instruction Prefix FDCB
D
E
POP IY FDE1nn214
EX (SP), IY FDE3nn223
PUSH IY FDE5nn215
JP (IY) FDE9nn28
F
LD SP, IY FDF9nn26
Opcodes with prefix 0xFDCB
0123456789ABCDEF
0
RLC B,(IY+d) FDCBnn00
RLC C,(IY+d) FDCBnn01
RLC D,(IY+d) FDCBnn02
RLC E,(IY+d) FDCBnn03
RLC H,(IY+d) FDCBnn04
RLC L,(IY+d) FDCBnn05
RLC (IY+d) FDCBnn06423
RLC A,(IY+d) FDCBnn07
RRC B,(IY+d) FDCBnn08
RRC C,(IY+d) FDCBnn09
RRC D,(IY+d) FDCBnn0A
RRC E,(IY+d) FDCBnn0B
RRC H,(IY+d) FDCBnn0C
RRC L,(IY+d) FDCBnn0D
RRC (IY+d) FDCBnn0E423
RRC A,(IY+d) FDCBnn0F
1
RL B,(IY+d) FDCBnn10
RL C,(IY+d) FDCBnn11
RL D,(IY+d) FDCBnn12
RL E,(IY+d) FDCBnn13
RL H,(IY+d) FDCBnn14
RL L,(IY+d) FDCBnn15
RL (IY+d) FDCBnn16423
RL A,(IY+d) FDCBnn17
RR B,(IY+d) FDCBnn18
RR C,(IY+d) FDCBnn19
RR D,(IY+d) FDCBnn1A
RR E,(IY+d) FDCBnn1B
RR H,(IY+d) FDCBnn1C
RR L,(IY+d) FDCBnn1D
RR (IY+d) FDCBnn1E423
RR A,(IY+d) FDCBnn1F
2
SLA B,(IY+d) FDCBnn20
SLA C,(IY+d) FDCBnn21
SLA D,(IY+d) FDCBnn22
SLA E,(IY+d) FDCBnn23
SLA H,(IY+d) FDCBnn24
SLA L,(IY+d) FDCBnn25
SLA (IY+d) FDCBnn26423
SLA A,(IY+d) FDCBnn27
SRA B,(IY+d) FDCBnn28
SRA C,(IY+d) FDCBnn29
SRA D,(IY+d) FDCBnn2A
SRA E,(IY+d) FDCBnn2B
SRA H,(IY+d) FDCBnn2C
SRA L,(IY+d) FDCBnn2D
SRA (IY+d) FDCBnn2E423
SRA A,(IY+d) FDCBnn2F
3
SLL B,(IY+d) FDCBnn30
SLL C,(IY+d) FDCBnn31
SLL D,(IY+d) FDCBnn32
SLL E,(IY+d) FDCBnn33
SLL H,(IY+d) FDCBnn34
SLL L,(IY+d) FDCBnn35
SLL (IY+dd) FDCBnn36
SLL A,(IY+d) FDCBnn37
SRL B,(IY+d) FDCBnn38
SRL C,(IY+d) FDCBnn39
SRL D,(IY+d) FDCBnn3A
SRL E,(IY+d) FDCBnn3B
SRL H,(IY+d) FDCBnn3C
SRL L,(IY+d) FDCBnn3D
SRL (IY+d) FDCBnn3E423
SRL A,(IY+d) FDCBnn3F
4
BIT 0,(IY+d) FDCBnn40
BIT 0,(IY+d) FDCBnn41
BIT 0,(IY+d) FDCBnn42
BIT 0,(IY+d) FDCBnn43
BIT 0,(IY+d) FDCBnn44
BIT 0,(IY+d) FDCBnn45
BIT 0,(IY+d) FDCBnn46420
BIT 0,(IY+d) FDCBnn47
BIT 1,(IY+d) FDCBnn48
BIT 1,(IY+d) FDCBnn49
BIT 1,(IY+d) FDCBnn4A
BIT 1,(IY+d) FDCBnn4B
BIT 1,(IY+d) FDCBnn4C
BIT 1,(IY+d) FDCBnn4D
BIT 1,(IY+d) FDCBnn4E420
BIT 1,(IY+d) FDCBnn4F
5
BIT 2,(IY+d) FDCBnn50
BIT 2,(IY+d) FDCBnn51
BIT 2,(IY+d) FDCBnn52
BIT 2,(IY+d) FDCBnn53
BIT 2,(IY+d) FDCBnn54
BIT 2,(IY+d) FDCBnn55
BIT 2,(IY+d) FDCBnn56420
BIT 2,(IY+d) FDCBnn57
BIT 3,(IY+d) FDCBnn58
BIT 3,(IY+d) FDCBnn59
BIT 3,(IY+d) FDCBnn5A
BIT 3,(IY+d) FDCBnn5B
BIT 3,(IY+d) FDCBnn5C
BIT 3,(IY+d) FDCBnn5D
BIT 3,(IY+d) FDCBnn5E420
BIT 3,(IY+d) FDCBnn5F
6
BIT 4,(IY+d) FDCBnn60
BIT 4,(IY+d) FDCBnn61
BIT 4,(IY+d) FDCBnn62
BIT 4,(IY+d) FDCBnn63
BIT 4,(IY+d) FDCBnn64
BIT 4,(IY+d) FDCBnn65
BIT 4,(IY+d) FDCBnn66420
BIT 4,(IY+d) FDCBnn67
BIT 5,(IY+d) FDCBnn68
BIT 5,(IY+d) FDCBnn69
BIT 5,(IY+d) FDCBnn6A
BIT 5,(IY+d) FDCBnn6B
BIT 5,(IY+d) FDCBnn6C
BIT 5,(IY+d) FDCBnn6D
BIT 5,(IY+d) FDCBnn6E420
BIT 5,(IY+d) FDCBnn6F
7
BIT 6,(IY+d) FDCBnn70
BIT 6,(IY+d) FDCBnn71
BIT 6,(IY+d) FDCBnn72
BIT 6,(IY+d) FDCBnn73
BIT 6,(IY+d) FDCBnn74
BIT 6,(IY+d) FDCBnn75
BIT 6,(IY+d) FDCBnn76420
BIT 6,(IY+d) FDCBnn77
BIT 7,(IY+d) FDCBnn78
BIT 7,(IY+d) FDCBnn79
BIT 7,(IY+d) FDCBnn7A
BIT 7,(IY+d) FDCBnn7B
BIT 7,(IY+d) FDCBnn7C
BIT 7,(IY+d) FDCBnn7D
BIT 7,(IY+d) FDCBnn7E420
BIT 7,(IY+d) FDCBnn7F
8
RES B,0,(IY+nn) FDCBnn80
RES C,0,(IY+nn) FDCBnn81
RES D,0,(IY+nn) FDCBnn82
RES E,0,(IY+nn) FDCBnn83
RES H,0,(IY+nn) FDCBnn84
RES L,0,(IY+nn) FDCBnn85
RES 0,(IY+d) FDCBnn86423
RES A,0,(IY+nn) FDCBnn87
RES B,1,(IY+nn) FDCBnn88
RES C,1,(IY+nn) FDCBnn89
RES D,1,(IY+nn) FDCBnn8A
RES E,1,(IY+nn) FDCBnn8B
RES H,1,(IY+nn) FDCBnn8C
RES L,1,(IY+nn) FDCBnn8D
RES 1,(IY+d) FDCBnn8E423
RES A,1,(IY+nn) FDCBnn8F
9
RES B,2,(IY+nn) FDCBnn90
RES C,2,(IY+nn) FDCBnn91
RES D,2,(IY+nn) FDCBnn92
RES E,2,(IY+nn) FDCBnn93
RES H,2,(IY+nn) FDCBnn94
RES L,2,(IY+nn) FDCBnn95
RES 2,(IY+d) FDCBnn96423
RES A,2,(IY+nn) FDCBnn97
RES B,3,(IY+nn) FDCBnn98
RES C,3,(IY+nn) FDCBnn99
RES D,3,(IY+nn) FDCBnn9A
RES E,3,(IY+nn) FDCBnn9B
RES H,3,(IY+nn) FDCBnn9C
RES L,3,(IY+nn) FDCBnn9D
RES 3,(IY+d) FDCBnn9E423
RES A,3,(IY+nn) FDCBnn9F
A
RES B,4,(IY+nn) FDCBnnA0
RES C,4,(IY+nn) FDCBnnA1
RES D,4,(IY+nn) FDCBnnA2
RES E,4,(IY+nn) FDCBnnA3
RES H,4,(IY+nn) FDCBnnA4
RES L,4,(IY+nn) FDCBnnA5
RES 4,(IY+d) FDCBnnA6423
RES A,4,(IY+nn) FDCBnnA7
RES B,5,(IY+nn) FDCBnnA8
RES C,5,(IY+nn) FDCBnnA9
RES D,5,(IY+nn) FDCBnnAA
RES E,5,(IY+nn) FDCBnnAB
RES H,5,(IY+nn) FDCBnnAC
RES L,5,(IY+nn) FDCBnnAD
RES 5,(IY+d) FDCBnnAE423
RES A,5,(IY+nn) FDCBnnAF
B
RES B,6,(IY+nn) FDCBnnB0
RES C,6,(IY+nn) FDCBnnB1
RES D,6,(IY+nn) FDCBnnB2
RES E,6,(IY+nn) FDCBnnB3
RES H,6,(IY+nn) FDCBnnB4
RES L,6,(IY+nn) FDCBnnB5
RES 6,(IY+d) FDCBnnB6423
RES A,6,(IY+nn) FDCBnnB7
RES B,7,(IY+nn) FDCBnnB8
RES C,7,(IY+nn) FDCBnnB9
RES D,7,(IY+nn) FDCBnnBA
RES E,7,(IY+nn) FDCBnnBB
RES H,7,(IY+nn) FDCBnnBC
RES L,7,(IY+nn) FDCBnnBD
RES 7,(IY+d) FDCBnnBE423
RES A,7,(IY+nn) FDCBnnBF
C
SET B,0,(IY+nn) FDCBnnC0
SET C,0,(IY+nn) FDCBnnC1
SET D,0,(IY+nn) FDCBnnC2
SET E,0,(IY+nn) FDCBnnC3
SET H,0,(IY+nn) FDCBnnC4
SET L,0,(IY+nn) FDCBnnC5
SET 0,(IY+d) FDCBnnC6423
SET A,0,(IY+nn) FDCBnnC7
SET B,1,(IY+nn) FDCBnnC8
SET C,1,(IY+nn) FDCBnnC9
SET D,1,(IY+nn) FDCBnnCA
SET E,1,(IY+nn) FDCBnnCB
SET H,1,(IY+nn) FDCBnnCC
SET L,1,(IY+nn) FDCBnnCD
SET 1,(IY+d) FDCBnnCE423
SET A,1,(IY+nn) FDCBnnCF
D
SET B,2,(IY+nn) FDCBnnD0
SET C,2,(IY+nn) FDCBnnD1
SET D,2,(IY+nn) FDCBnnD2
SET E,2,(IY+nn) FDCBnnD3
SET H,2,(IY+nn) FDCBnnD4
SET L,2,(IY+nn) FDCBnnD5
SET 2,(IY+d) FDCBnnD6423
SET A,2,(IY+nn) FDCBnnD7
SET B,3,(IY+nn) FDCBnnD8
SET C,3,(IY+nn) FDCBnnD9
SET D,3,(IY+nn) FDCBnnDA
SET E,3,(IY+nn) FDCBnnDB
SET H,3,(IY+nn) FDCBnnDC
SET L,3,(IY+nn) FDCBnnDD
SET 3,(IY+d) FDCBnnDE423
SET A,3,(IY+nn) FDCBnnDF
E
SET B,4,(IY+nn) FDCBnnE0
SET C,4,(IY+nn) FDCBnnE1
SET D,4,(IY+nn) FDCBnnE2
SET E,4,(IY+nn) FDCBnnE3
SET H,4,(IY+nn) FDCBnnE4
SET L,4,(IY+nn) FDCBnnE5
SET 4,(IY+d) FDCBnnE6423
SET A,4,(IY+nn) FDCBnnE7
SET B,5,(IY+nn) FDCBnnE8
SET C,5,(IY+nn) FDCBnnE9
SET D,5,(IY+nn) FDCBnnEA
SET E,5,(IY+nn) FDCBnnEB
SET H,5,(IY+nn) FDCBnnEC
SET L,5,(IY+nn) FDCBnnED
SET 5,(IY+d) FDCBnnEE423
SET A,5,(IY+nn) FDCBnnEF
F
SET B,6,(IY+nn) FDCBnnF0
SET C,6,(IY+nn) FDCBnnF1
SET D,6,(IY+nn) FDCBnnF2
SET E,6,(IY+nn) FDCBnnF3
SET H,6,(IY+nn) FDCBnnF4
SET L,6,(IY+nn) FDCBnnF5
SET 6,(IY+d) FDCBnnF6423
SET A,6,(IY+nn) FDCBnnF7
SET B,7,(IY+nn) FDCBnnF8
SET C,7,(IY+nn) FDCBnnF9
SET D,7,(IY+nn) FDCBnnFA
SET E,7,(IY+nn) FDCBnnFB
SET H,7,(IY+nn) FDCBnnFC
SET L,7,(IY+nn) FDCBnnFD
SET 7,(IY+d) FDCBnnFE423
SET A,7,(IY+nn) FDCBnnFF

Last modified January 23, 2022