# 8-bit arithmetic and logic operation

 ADD A,A 0 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 1 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn 2,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] 3 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] 4,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] 5,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] 6 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] 7 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE, 0,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE, 1,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE, 2 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE, 3 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ ADD [HL],A CE, 4 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE, 5,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE, 6 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE, 7 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

 ADC A,A 8 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 9 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn A,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] B ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] C,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] E ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] F ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE, 8,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE, 9,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE, A ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE, B ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ ADC [HL],A CE, C ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE, D,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE, E ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE, F ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

## SUB: Subtraction

 SUB A,A 10 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 11 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn 12,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] 13 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] 14,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] 15,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] 16 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] 17 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE,10,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE,11,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE,12 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE,13 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ SUB [HL],A CE,14 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE,15,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE,16 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE,17 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

## SBC: Subtraction with carry

 SBC A,A 18 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 19 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn 1A,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] 1B ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] 1C,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] 1D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] 1E ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] 1F ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE,18,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE,19,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE,1A ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE,1B ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ SBC [HL],A CE,1C ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE,1D,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE,1E ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE,1F ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

## AND: Logical product

 AND A,A 20 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,B 21 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,#nn 22,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ A,[HL] 23 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,[BR:ll] 24,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ A,[hhll] 25,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ A,[IX] 26 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,[IY] 27 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,[IX+dd] CE,20,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ A,[IY+dd] CE,21,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ A,[IX+L] CE,22 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ A,[IY+L] CE,23 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ AND B,#nn CE,B0,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND H,#nn CE,B2,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND [BR:ll],#nn D8,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND [HL],A CE,24 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ [HL],#nn CE,25,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ [HL],[IX] CE,26 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ [HL],[IY] CE,27 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ AND L,#nn CE,B1,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND SC,#nn 9C,nn ?PSEUDOCODE ?CYCLES 2 ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓

## OR: Logical sum

 OR A,A 28 ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,B 29 ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,#nn 2A,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ A,[HL] 2B ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,[BR:ll] 2C,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ A,[hhll] 2D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ A,[IX] 2E ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,[IY] 2F ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,[IX+dd] CE,28,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ A,[IY+dd] CE,29,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ A,[IX+L] CE,2A ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ A,[IY+L] CE,2B ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ OR B,#nn CE,B4,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR H,#nn CE,B6,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR [BR:ll],#nn D9,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR [HL],A CE,2C ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ [HL],#nn CE,2D,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ [HL],[IX] CE,2E ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ [HL],[IY] CE,2F ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ OR L,#nn CE,B5,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR SC,#nn 9D,nn ?PSEUDOCODE ?CYCLES 2 ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑

## XOR: Exclusive OR

 XOR A,A 38 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,B 39 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,#nn 3A,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ A,[HL] 3B ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,[BR:ll] 3C,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ A,[hhll] 3D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ A,[IX] 3E ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,[IY] 3F ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,[IX+dd] CE,38,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ A,[IY+dd] CE,39,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ A,[IX+L] CE,3A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ A,[IY+L] CE,3B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ XOR B,#nn CE,B8,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR H,#nn CE,BA,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR [BR:ll],#nn DA,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR [HL],A CE,3C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ [HL],#nn CE,3D,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ [HL],[IX] CE,3E ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ [HL],[IY] CE,3F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ XOR L,#nn CE,B9,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR SC,#nn 9E,nn ?PSEUDOCODE ?CYCLES 2 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕

## CP: Comparison

 CP A,A 30 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,B 31 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,#nn 32,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ A,[HL] 33 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,[BR:ll] 34,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ A,[hhll] 35,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ A,[IX] 36 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,[IY] 37 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,[IX+dd] CE,30,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ A,[IY+dd] CE,31,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ A,[IX+L] CE,32 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ A,[IY+L] CE,33 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP B,#nn CE,BC,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP H,#nn CE,BE,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP BR,#hh CE,BF,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP [BR:ll],#nn DB,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP [HL],A CE,34 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ [HL],#nn CE,35,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ [HL],[IX] CE,36 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ [HL],[IY] CE,37 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP L,#nn CE,BD,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕

## BIT: Bit test

 BIT A,B 94 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,#nn 96,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ BIT B,#nn 97,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ BIT [HL],#nn 95,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ BIT [BR:ll],#nn DC,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕

## INC: 1 increment

 INC A 80 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC B 81 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC H 83 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC [BR:ll] 85,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – ↕ INC [HL] 86 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC L 82 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC BR 84 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

## DEC: 1 decrement

 DEC A 88 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC B 89 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC H 8B ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC [BR:ll] 8D,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – ↕ DEC [HL] 8E ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC L 8A ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC BR 8C ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

## MLT: Multiplication

 MLT CE,D8 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 0 ↕

## DIV: Division

 DIV CE,D9 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ 0 ↕

## CPL: Complement of 1

 CPL A CE,A0 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ CPL B CE,A1 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ CPL [HL] CE,A3 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ CPL [BR:ll] CE,A2,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕

## NEG: Complement of 2

 NEG A CE,A4 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ NEG B CE,A5 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ NEG [HL] CE,A7 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ NEG [BR:ll] CE,A6,ll ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕

# 8-bit transfer

 LD IY,[hhll] BB,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,#mmnn C7,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[SP+dd] CE,73,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[HL] CE,C3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IX] CE,D3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IY] CE,DB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,BA CE,EC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,HL CE,ED ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IX CE,EE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IY CE,EF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,SP CE,FE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD SP,#mmnn CE,6E,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,[hhll] CE,78,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,BA CE,F0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,HL CE,F1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IX CE,F2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IY CE,F3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BA,[hhll] B8,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,#mmnn C4,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[SP+dd] CE,70,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[HL] CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IX] CE,D0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IY] CE,D8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,BA CE,E0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,HL CE,E1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IX CE,E2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IY CE,E3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,SP CE,F8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,PC CE,F9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BR,#hh B4,hh ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BR,A CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+L],A CE,46 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],B CE,4E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],L CE,56 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],H CE,5E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD HL,[hhll] B9,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,#mmnn C5,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[SP+dd] CE,71,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[HL] CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IX] CE,D1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IY] CE,D9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,BA CE,E4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,HL CE,E5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IX CE,E6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IY CE,E7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,SP CE,F4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,PC CE,F5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY+L],A CE,47 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],B CE,4F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],L CE,57 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],H CE,5F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD YP,#pp CE,C7,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – YP,A CE,CF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY],A 70 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],B 71 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],L 72 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],H 73 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[BR:ll] 74,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[HL] 75 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IX] 76 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IY] 77 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],#nn B7,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IX+dd] CE,78,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IY+dd] CE,79,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IX+L] CE,7A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IY+L] CE,7B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],BA CE,DC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],HL CE,DD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IX CE,DE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IY CE,DF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [BR:ll],A 78,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],B 79,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],L 7A,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],H 7B,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[HL] 7D,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IX] 7E,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IY] 7F,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],#nn DD,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [SP+dd],BA CE,74,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],HL CE,75,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IX CE,76,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IY CE,77,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [IY+dd],A CE,45,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],B CE,4D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],L CE,55,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],H CE,5D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD A,A 40 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,B 41 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,L 42 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,H 43 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[BR:ll] 44,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[HL] 45 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IX] 46 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IY] 47 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,#nn B0,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IX+dd] CE,40,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IY+dd] CE,41,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IX+L] CE,42 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IY+L] CE,43 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,BR CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,SC CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,NB CE,C8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,EP CE,C9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,XP CE,CA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,YP CE,CB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[hhll] CE,D0,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD IX,[hhll] BA,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,#mmnn C6,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[SP+dd] CE,72,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[HL] CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IX] CE,D2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IY] CE,DA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,BA CE,E8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,HL CE,E9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IX CE,EA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IY CE,EB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,SP CE,FA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD B,A 48 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,B 49 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,L 4A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,H 4B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[BR:ll] 4C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[HL] 4D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IX] 4E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IY] 4F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,#nn B1,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IX+dd] CE,48,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IY+dd] CE,49,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IX+L] CE,4A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IY+L] CE,4B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[hhll] CE,D1,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD H,A 58 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,B 59 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,L 5A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,H 5B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[BR:ll] 5C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[HL] 5D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IX] 5E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IY] 5F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,#nn B3,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IX+dd] CE,58,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IY+dd] CE,59,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IX+L] CE,5A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IY+L] CE,5B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[hhll] CE,D3,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [HL],A 68 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],B 69 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],L 6A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],H 6B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[BR:ll] 6C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[HL] 6D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IX] 6E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IY] 6F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],#nn B5,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IX+dd] CE,60,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IY+dd] CE,61,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IX+L] CE,62 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IY+L] CE,63 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],BA CE,C4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],HL CE,C5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IX CE,C6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IY CE,C7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD L,A 50 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,B 51 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,L 52 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,H 53 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[BR:ll] 54,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[HL] 55 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IX] 56 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IY] 57 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,#nn B2,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IX+dd] CE,50,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IY+dd] CE,51,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IX+L] CE,52 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IY+L] CE,53 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[hhll] CE,D2,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [hhll],BA BC,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],HL BD,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IX BE,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IY BF,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],A CE,D4,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],B CE,D5,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],L CE,D6,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],H CE,D7,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],SP CE,7C,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD XP,#pp CE,C6,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – XP,A CE,CE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD EP,#pp CE,C5,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – EP,A CE,CD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX],A 60 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],B 61 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],L 62 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],H 63 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[BR:ll] 64,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[HL] 65 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IX] 66 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IY] 67 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],#nn B6,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IX+dd] CE,68,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IY+dd] CE,69,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IX+L] CE,6A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IY+L] CE,6B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],BA CE,D4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],HL CE,D5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IX CE,D6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IY CE,D7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+dd],A CE,44,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],B CE,4C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],L CE,54,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],H CE,5C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD SC,#nn 9F,nn ?PSEUDOCODE ?CYCLES 2 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕ SC,A CE,C3 ?PSEUDOCODE ?CYCLES 2 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕ LD NB,#bb CE,C4,bb ?PSEUDOCODE ?CYCLES 3 – – – – – – – – NB,A CE,CC ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

## EX: Byte exchange

 EX A,B CC ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[HL] CD ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## SWAP: Nibble exchange

 SWAP A F6 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – SWAP [HL] F7 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

# Rotate/shift

## RL: Rotate to left

 RL A CE,90 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RL B CE,91 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RL [HL] CE,93 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RL [BR:ll] CE,92,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## RLC: Rotate to left with carry

 RLC A CE,94 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RLC B CE,95 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RLC [HL] CE,97 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RLC [BR:ll] CE,96,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## RR: Rotate to right

 RR A CE,98 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RR B CE,99 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RR [HL] CE,9B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RR [BR:ll] CE,9A,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## RRC: Rotate to right with carry

 RRC A CE,9C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RRC B CE,9D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RRC [HL] CE,9F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RRC [BR:ll] CE,9E,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## SLA: Arithmetic shift to left

 SLA A CE,80 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SLA B CE,81 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SLA [HL] CE,83 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SLA [BR:ll] CE,82,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕

## SLL: Logical shift to left

 SLL A CE,84 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ SLL B CE,85 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ SLL [HL] CE,87 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ SLL [BR:ll] CE,86,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## SRA: Arithmetic shift to right

 SRA A CE,88 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 ↕ ↕ SRA B CE,89 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 ↕ ↕ SRA [HL] CE,8B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 ↕ ↕ SRA [BR:ll] CE,8A,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ 0 ↕ ↕

## SRL: Logical shift to right

 SRL A CE,8C ?PSEUDOCODE ?CYCLES 2 – – – – 0 – ↕ ↕ SRL B CE,8D ?PSEUDOCODE ?CYCLES 2 – – – – 0 – ↕ ↕ SRL [HL] CE,8F ?PSEUDOCODE ?CYCLES 2 – – – – 0 – ↕ ↕ SRL [BR:ll] CE,8E,ll ?PSEUDOCODE ?CYCLES 3 – – – – 0 – ↕ ↕

# Auxiliary operation

## PACK: Pack

 PACK DE ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## UPCK: Unpack

 UPCK DF ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## SEP: Code extension

 SEP CE,A8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

# 16-bit arithmetic operation

 ADD IX,#mmnn C2,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IX,BA CE,40 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IX,HL CE,41 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ ADD BA,#mmnn C0,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ BA,BA CE, 0 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, 1 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, 2 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, 3 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ ADD SP,BA CE,44 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,HL CE,45 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,#mmnn CE,68,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ ADD IY,#mmnn C3,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IY,BA CE,42 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IY,HL CE,43 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ ADD HL,#mmnn C1,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ HL,BA CE,20 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,21 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,22 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,23 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕

 ADC BA,BA CE, 4 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, 5 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, 6 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, 7 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,#mmnn CE,60,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ ADC HL,BA CE,24 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,25 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,26 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,27 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,#mmnn CE,61,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕

## SUB: Subtraction

 SUB IX,#mmnn D2,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IX,BA CE,48 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IX,HL CE,49 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SUB BA,#mmnn D0,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ BA,BA CE, 8 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, 9 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SUB SP,BA CE,4C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,HL CE,4D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,#mmnn CE,6A,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ SUB IY,#mmnn D3,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IY,BA CE,4A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IY,HL CE,4B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SUB HL,#mmnn D1,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ HL,BA CE,28 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,29 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,2A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,2B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕

## SBC: Subtraction with carry

 SBC BA,BA CE, C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, E ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,#mmnn CE,62,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ SBC HL,BA CE,2C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,2D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,2E ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,2F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,#mmnn CE,63,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕

## CP: Comparison

 CP IX,#mmnn D6,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP BA,#mmnn D4,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ BA,BA CE,18 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE,19 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE,1A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE,1B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP IY,#mmnn D7,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP HL,#mmnn D5,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ HL,BA CE,38 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,39 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,3A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,3B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP SP,BA CE,5C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,HL CE,5D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,#mmnn CE,6C,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕

## INC: 1 increment

 INC IX 92 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC BA 90 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC HL 91 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC IY 93 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC SP 87 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

## DEC: 1 decrement

 DEC IX 9A ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC BA 98 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC HL 99 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC IY 9B ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC SP 8F ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

# 16-bit transfer

 LD IY,[hhll] BB,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,#mmnn C7,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[SP+dd] CE,73,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[HL] CE,C3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IX] CE,D3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IY] CE,DB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,BA CE,EC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,HL CE,ED ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IX CE,EE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IY CE,EF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,SP CE,FE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD SP,#mmnn CE,6E,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,[hhll] CE,78,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,BA CE,F0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,HL CE,F1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IX CE,F2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IY CE,F3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BA,[hhll] B8,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,#mmnn C4,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[SP+dd] CE,70,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[HL] CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IX] CE,D0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IY] CE,D8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,BA CE,E0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,HL CE,E1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IX CE,E2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IY CE,E3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,SP CE,F8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,PC CE,F9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BR,#hh B4,hh ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BR,A CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+L],A CE,46 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],B CE,4E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],L CE,56 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],H CE,5E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD HL,[hhll] B9,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,#mmnn C5,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[SP+dd] CE,71,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[HL] CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IX] CE,D1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IY] CE,D9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,BA CE,E4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,HL CE,E5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IX CE,E6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IY CE,E7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,SP CE,F4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,PC CE,F5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY+L],A CE,47 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],B CE,4F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],L CE,57 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],H CE,5F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD YP,#pp CE,C7,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – YP,A CE,CF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY],A 70 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],B 71 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],L 72 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],H 73 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[BR:ll] 74,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[HL] 75 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IX] 76 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IY] 77 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],#nn B7,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IX+dd] CE,78,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IY+dd] CE,79,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IX+L] CE,7A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IY+L] CE,7B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],BA CE,DC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],HL CE,DD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IX CE,DE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IY CE,DF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [BR:ll],A 78,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],B 79,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],L 7A,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],H 7B,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[HL] 7D,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IX] 7E,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IY] 7F,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],#nn DD,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [SP+dd],BA CE,74,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],HL CE,75,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IX CE,76,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IY CE,77,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [IY+dd],A CE,45,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],B CE,4D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],L CE,55,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],H CE,5D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD A,A 40 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,B 41 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,L 42 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,H 43 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[BR:ll] 44,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[HL] 45 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IX] 46 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IY] 47 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,#nn B0,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IX+dd] CE,40,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IY+dd] CE,41,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IX+L] CE,42 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IY+L] CE,43 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,BR CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,SC CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,NB CE,C8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,EP CE,C9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,XP CE,CA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,YP CE,CB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[hhll] CE,D0,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD IX,[hhll] BA,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,#mmnn C6,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[SP+dd] CE,72,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[HL] CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IX] CE,D2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IY] CE,DA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,BA CE,E8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,HL CE,E9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IX CE,EA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IY CE,EB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,SP CE,FA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD B,A 48 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,B 49 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,L 4A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,H 4B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[BR:ll] 4C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[HL] 4D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IX] 4E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IY] 4F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,#nn B1,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IX+dd] CE,48,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IY+dd] CE,49,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IX+L] CE,4A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IY+L] CE,4B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[hhll] CE,D1,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD H,A 58 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,B 59 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,L 5A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,H 5B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[BR:ll] 5C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[HL] 5D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IX] 5E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IY] 5F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,#nn B3,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IX+dd] CE,58,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IY+dd] CE,59,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IX+L] CE,5A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IY+L] CE,5B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[hhll] CE,D3,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [HL],A 68 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],B 69 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],L 6A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],H 6B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[BR:ll] 6C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[HL] 6D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IX] 6E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IY] 6F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],#nn B5,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IX+dd] CE,60,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IY+dd] CE,61,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IX+L] CE,62 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IY+L] CE,63 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],BA CE,C4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],HL CE,C5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IX CE,C6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IY CE,C7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD L,A 50 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,B 51 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,L 52 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,H 53 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[BR:ll] 54,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[HL] 55 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IX] 56 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IY] 57 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,#nn B2,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IX+dd] CE,50,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IY+dd] CE,51,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IX+L] CE,52 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IY+L] CE,53 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[hhll] CE,D2,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [hhll],BA BC,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],HL BD,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IX BE,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IY BF,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],A CE,D4,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],B CE,D5,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],L CE,D6,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],H CE,D7,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],SP CE,7C,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD XP,#pp CE,C6,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – XP,A CE,CE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD EP,#pp CE,C5,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – EP,A CE,CD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX],A 60 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],B 61 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],L 62 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],H 63 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[BR:ll] 64,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[HL] 65 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IX] 66 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IY] 67 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],#nn B6,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IX+dd] CE,68,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IY+dd] CE,69,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IX+L] CE,6A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IY+L] CE,6B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],BA CE,D4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],HL CE,D5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IX CE,D6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IY CE,D7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+dd],A CE,44,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],B CE,4C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],L CE,54,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],H CE,5C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD SC,#nn 9F,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SC,A CE,C3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD NB,#bb CE,C4,bb ?PSEUDOCODE ?CYCLES 3 – – – – – – – – NB,A CE,CC ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

## EX: Byte exchange

 EX BA,HL C8 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – BA,IX C9 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – BA,IY CA ?PSEUDOCODE ?CYCLES 1 – – – – – – – – BA,SP CB ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

# Stack Control

## PUSH: Push

 PUSH IY A3 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH IX A2 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH ALL CE,B8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH B CE,B1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH BA A0 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH IP A6 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH ALE CE,B9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH L CE,B2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH HL A1 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH A CE,B0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH BR A4 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH H CE,B3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH SC A7 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH EP A5 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## POP: Pop

 POP IY AB ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP IX AA ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP ALL CE,BC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP B CE,B5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP BA A8 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP IP AE ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP ALE CE,BD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP L CE,B6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP HL A9 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP A CE,B4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP BR AC ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP H CE,B7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP SC AF ?PSEUDOCODE ?CYCLES 1 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕ POP EP AD ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

# Branch

## JRS: Relative short jump

 JRS F0,rr CE,E8,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS F1,rr CE,E9,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS C,rr E4,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS LE,rr CE,E1,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS GE,rr CE,E3,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS rr F1,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS NC,rr E5,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS M,rr CE,E7,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS LT,rr CE,E0,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS F3,rr CE,EB,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS P,rr CE,E6,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NZ,rr E7,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS GT,rr CE,E2,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NF3,rr CE,EF,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NF2,rr CE,EE,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NF1,rr CE,ED,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS V,rr CE,E4,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS F2,rr CE,EA,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS Z,rr E6,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS NF0,rr CE,EC,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NV,rr CE,E5,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## JRL: Relative long jump

 JRL C,qqrr EC,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL NC,qqrr ED,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL Z,qqrr EE,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL NZ,qqrr EF,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL qqrr F3,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## JP: Indirect jump

 JP [kk] FD,kk ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JP HL F4 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## DJR: Loop

 DJR NZ,rr F5,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – ↕

## CARS: Relative short call

 CARS F0,rr CE,F8,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS F1,rr CE,F9,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS C,rr E0,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS LE,rr CE,F1,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS GE,rr CE,F3,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS rr F0,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS NC,rr E1,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS M,rr CE,F7,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS LT,rr CE,F0,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS F3,rr CE,FB,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS P,rr CE,F6,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NZ,rr E3,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS GT,rr CE,F2,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NF3,rr CE,FF,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NF2,rr CE,FE,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NF1,rr CE,FD,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS V,rr CE,F4,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS F2,rr CE,FA,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS Z,rr E2,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS NF0,rr CE,FC,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NV,rr CE,F5,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## CARL: Relative long call

 CARL C,qqrr E8,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL NC,qqrr E9,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL Z,qqrr EA,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL NZ,qqrr EB,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL qqrr F2,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## CALL: Indirect call

 CALL [hhll] FB,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## RET: Return

 RET F8 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## RETE: Exception processing return

 RETE F9 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## RETS: Return and skip

 RETS FA ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## INT: Software interrupt

 INT [kk] FC,kk ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

# System Control

## NOP: No operation

 NOP FF ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## HALT: Shifts to HALT status

 HALT CE,AE ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

## SLP: Shifts to SLEEP status

 SLP CE,AF ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

# Illegal Instructions

NOTE: This document is now out of date, as should be updated to the new mnemonic and register naming

The entire opcode table has been evaluated on Pokemon Mini units and new and exotic illegal opcodes have been found.

These opcodes are not officially supported (they are not used by commercial games and not even found in the Pokemon Channel emulator) and can produce random results or crashes in some cases. The illegal opcodes have been documented on this page's Discussion page. THIS PAGE IS IN PROCESS

# 8-bit arithmetic and logic operation

 ADD A,A 0 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 1 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn 2,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] 3 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] 4,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] 5,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] 6 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] 7 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE, 0,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE, 1,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE, 2 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE, 3 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ ADD [HL],A CE, 4 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE, 5,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE, 6 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE, 7 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

 ADC A,A 8 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 9 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn A,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] B ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] C,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] E ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] F ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE, 8,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE, 9,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE, A ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE, B ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ ADC [HL],A CE, C ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE, D,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE, E ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE, F ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

## SUB: Subtraction

 SUB A,A 10 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 11 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn 12,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] 13 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] 14,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] 15,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] 16 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] 17 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE,10,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE,11,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE,12 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE,13 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ SUB [HL],A CE,14 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE,15,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE,16 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE,17 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

## SBC: Subtraction with carry

 SBC A,A 18 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,B 19 ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,#nn 1A,nn ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[HL] 1B ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[BR:ll] 1C,ll ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[hhll] 1D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX] 1E ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY] 1F ?PSEUDOCODE ?CYCLES 1 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+dd] CE,18,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+dd] CE,19,dd ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ A,[IX+L] CE,1A ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ A,[IY+L] CE,1B ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ SBC [HL],A CE,1C ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],#nn CE,1D,nn ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IX] CE,1E ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ [HL],[IY] CE,1F ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕

## AND: Logical product

 AND A,A 20 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,B 21 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,#nn 22,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ A,[HL] 23 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,[BR:ll] 24,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ A,[hhll] 25,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ A,[IX] 26 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,[IY] 27 ?PSEUDOCODE ?CYCLES 1 – – – – ↓ – – ↓ A,[IX+dd] CE,20,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ A,[IY+dd] CE,21,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ A,[IX+L] CE,22 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ A,[IY+L] CE,23 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ AND B,#nn CE,B0,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND H,#nn CE,B2,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND [BR:ll],#nn D8,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND [HL],A CE,24 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ [HL],#nn CE,25,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ [HL],[IX] CE,26 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ [HL],[IY] CE,27 ?PSEUDOCODE ?CYCLES 2 – – – – ↓ – – ↓ AND L,#nn CE,B1,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↓ – – ↓ AND SC,#nn 9C,nn ?PSEUDOCODE ?CYCLES 2 ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓

## OR: Logical sum

 OR A,A 28 ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,B 29 ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,#nn 2A,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ A,[HL] 2B ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,[BR:ll] 2C,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ A,[hhll] 2D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ A,[IX] 2E ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,[IY] 2F ?PSEUDOCODE ?CYCLES 1 – – – – ↑ – – ↑ A,[IX+dd] CE,28,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ A,[IY+dd] CE,29,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ A,[IX+L] CE,2A ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ A,[IY+L] CE,2B ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ OR B,#nn CE,B4,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR H,#nn CE,B6,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR [BR:ll],#nn D9,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR [HL],A CE,2C ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ [HL],#nn CE,2D,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ [HL],[IX] CE,2E ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ [HL],[IY] CE,2F ?PSEUDOCODE ?CYCLES 2 – – – – ↑ – – ↑ OR L,#nn CE,B5,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↑ – – ↑ OR SC,#nn 9D,nn ?PSEUDOCODE ?CYCLES 2 ↑ ↑ ↑ ↑ ↑ ↑ ↑ ↑

## XOR: Exclusive OR

 XOR A,A 38 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,B 39 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,#nn 3A,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ A,[HL] 3B ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,[BR:ll] 3C,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ A,[hhll] 3D,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ A,[IX] 3E ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,[IY] 3F ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,[IX+dd] CE,38,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ A,[IY+dd] CE,39,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ A,[IX+L] CE,3A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ A,[IY+L] CE,3B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ XOR B,#nn CE,B8,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR H,#nn CE,BA,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR [BR:ll],#nn DA,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR [HL],A CE,3C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ [HL],#nn CE,3D,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ [HL],[IX] CE,3E ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ [HL],[IY] CE,3F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ XOR L,#nn CE,B9,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕ XOR SC,#nn 9E,nn ?PSEUDOCODE ?CYCLES 2 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕

## CP: Comparison

 CP A,A 30 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,B 31 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,#nn 32,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ A,[HL] 33 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,[BR:ll] 34,ll ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ A,[hhll] 35,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ A,[IX] 36 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,[IY] 37 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ ↕ ↕ ↕ A,[IX+dd] CE,30,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ A,[IY+dd] CE,31,dd ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ A,[IX+L] CE,32 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ A,[IY+L] CE,33 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP B,#nn CE,BC,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP H,#nn CE,BE,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP BR,#hh CE,BF,hh ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP [BR:ll],#nn DB,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP [HL],A CE,34 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ [HL],#nn CE,35,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ [HL],[IX] CE,36 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ [HL],[IY] CE,37 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP L,#nn CE,BD,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕

## BIT: Bit test

 BIT A,B 94 ?PSEUDOCODE ?CYCLES 1 – – – – ↕ – – ↕ A,#nn 96,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ BIT B,#nn 97,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ BIT [HL],#nn 95,nn ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ BIT [BR:ll],#nn DC,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕

## INC: 1 increment

 INC A 80 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC B 81 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC H 83 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC [BR:ll] 85,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – ↕ INC [HL] 86 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC L 82 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC BR 84 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

## DEC: 1 decrement

 DEC A 88 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC B 89 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC H 8B ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC [BR:ll] 8D,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – ↕ DEC [HL] 8E ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC L 8A ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC BR 8C ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

## MLT: Multiplication

 MLT CE,D8 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 0 ↕

## DIV: Division

 DIV CE,D9 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ 0 ↕

## CPL: Complement of 1

 CPL A CE,A0 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ CPL B CE,A1 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ CPL [HL] CE,A3 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – – ↕ CPL [BR:ll] CE,A2,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – – ↕

## NEG: Complement of 2

 NEG A CE,A4 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ NEG B CE,A5 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ NEG [HL] CE,A7 ?PSEUDOCODE ?CYCLES 2 – – ★ ★ ↕ ↕ ↕ ↕ NEG [BR:ll] CE,A6,ll ?PSEUDOCODE ?CYCLES 3 – – ★ ★ ↕ ↕ ↕ ↕

# 8-bit transfer

 LD IY,[hhll] BB,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,#mmnn C7,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[SP+dd] CE,73,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[HL] CE,C3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IX] CE,D3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IY] CE,DB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,BA CE,EC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,HL CE,ED ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IX CE,EE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IY CE,EF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,SP CE,FE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD SP,#mmnn CE,6E,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,[hhll] CE,78,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,BA CE,F0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,HL CE,F1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IX CE,F2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IY CE,F3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BA,[hhll] B8,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,#mmnn C4,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[SP+dd] CE,70,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[HL] CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IX] CE,D0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IY] CE,D8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,BA CE,E0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,HL CE,E1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IX CE,E2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IY CE,E3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,SP CE,F8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,PC CE,F9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BR,#hh B4,hh ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BR,A CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+L],A CE,46 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],B CE,4E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],L CE,56 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],H CE,5E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD HL,[hhll] B9,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,#mmnn C5,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[SP+dd] CE,71,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[HL] CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IX] CE,D1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IY] CE,D9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,BA CE,E4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,HL CE,E5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IX CE,E6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IY CE,E7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,SP CE,F4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,PC CE,F5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY+L],A CE,47 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],B CE,4F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],L CE,57 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],H CE,5F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD YP,#pp CE,C7,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – YP,A CE,CF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY],A 70 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],B 71 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],L 72 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],H 73 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[BR:ll] 74,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[HL] 75 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IX] 76 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IY] 77 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],#nn B7,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IX+dd] CE,78,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IY+dd] CE,79,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IX+L] CE,7A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IY+L] CE,7B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],BA CE,DC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],HL CE,DD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IX CE,DE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IY CE,DF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [BR:ll],A 78,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],B 79,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],L 7A,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],H 7B,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[HL] 7D,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IX] 7E,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IY] 7F,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],#nn DD,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [SP+dd],BA CE,74,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],HL CE,75,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IX CE,76,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IY CE,77,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [IY+dd],A CE,45,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],B CE,4D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],L CE,55,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],H CE,5D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD A,A 40 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,B 41 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,L 42 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,H 43 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[BR:ll] 44,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[HL] 45 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IX] 46 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IY] 47 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,#nn B0,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IX+dd] CE,40,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IY+dd] CE,41,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IX+L] CE,42 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IY+L] CE,43 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,BR CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,SC CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,NB CE,C8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,EP CE,C9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,XP CE,CA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,YP CE,CB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[hhll] CE,D0,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD IX,[hhll] BA,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,#mmnn C6,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[SP+dd] CE,72,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[HL] CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IX] CE,D2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IY] CE,DA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,BA CE,E8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,HL CE,E9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IX CE,EA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IY CE,EB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,SP CE,FA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD B,A 48 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,B 49 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,L 4A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,H 4B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[BR:ll] 4C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[HL] 4D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IX] 4E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IY] 4F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,#nn B1,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IX+dd] CE,48,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IY+dd] CE,49,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IX+L] CE,4A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IY+L] CE,4B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[hhll] CE,D1,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD H,A 58 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,B 59 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,L 5A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,H 5B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[BR:ll] 5C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[HL] 5D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IX] 5E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IY] 5F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,#nn B3,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IX+dd] CE,58,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IY+dd] CE,59,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IX+L] CE,5A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IY+L] CE,5B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[hhll] CE,D3,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [HL],A 68 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],B 69 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],L 6A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],H 6B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[BR:ll] 6C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[HL] 6D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IX] 6E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IY] 6F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],#nn B5,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IX+dd] CE,60,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IY+dd] CE,61,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IX+L] CE,62 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IY+L] CE,63 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],BA CE,C4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],HL CE,C5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IX CE,C6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IY CE,C7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD L,A 50 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,B 51 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,L 52 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,H 53 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[BR:ll] 54,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[HL] 55 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IX] 56 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IY] 57 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,#nn B2,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IX+dd] CE,50,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IY+dd] CE,51,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IX+L] CE,52 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IY+L] CE,53 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[hhll] CE,D2,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [hhll],BA BC,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],HL BD,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IX BE,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IY BF,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],A CE,D4,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],B CE,D5,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],L CE,D6,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],H CE,D7,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],SP CE,7C,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD XP,#pp CE,C6,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – XP,A CE,CE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD EP,#pp CE,C5,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – EP,A CE,CD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX],A 60 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],B 61 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],L 62 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],H 63 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[BR:ll] 64,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[HL] 65 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IX] 66 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IY] 67 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],#nn B6,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IX+dd] CE,68,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IY+dd] CE,69,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IX+L] CE,6A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IY+L] CE,6B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],BA CE,D4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],HL CE,D5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IX CE,D6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IY CE,D7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+dd],A CE,44,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],B CE,4C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],L CE,54,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],H CE,5C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD SC,#nn 9F,nn ?PSEUDOCODE ?CYCLES 2 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕ SC,A CE,C3 ?PSEUDOCODE ?CYCLES 2 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕ LD NB,#bb CE,C4,bb ?PSEUDOCODE ?CYCLES 3 – – – – – – – – NB,A CE,CC ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

## EX: Byte exchange

 EX A,B CC ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[HL] CD ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## SWAP: Nibble exchange

 SWAP A F6 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – SWAP [HL] F7 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

# Rotate/shift

## RL: Rotate to left

 RL A CE,90 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RL B CE,91 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RL [HL] CE,93 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RL [BR:ll] CE,92,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## RLC: Rotate to left with carry

 RLC A CE,94 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RLC B CE,95 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RLC [HL] CE,97 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RLC [BR:ll] CE,96,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## RR: Rotate to right

 RR A CE,98 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RR B CE,99 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RR [HL] CE,9B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RR [BR:ll] CE,9A,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## RRC: Rotate to right with carry

 RRC A CE,9C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RRC B CE,9D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RRC [HL] CE,9F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ RRC [BR:ll] CE,9E,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## SLA: Arithmetic shift to left

 SLA A CE,80 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SLA B CE,81 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SLA [HL] CE,83 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SLA [BR:ll] CE,82,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕

## SLL: Logical shift to left

 SLL A CE,84 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ SLL B CE,85 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ SLL [HL] CE,87 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ – ↕ ↕ SLL [BR:ll] CE,86,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ – ↕ ↕

## SRA: Arithmetic shift to right

 SRA A CE,88 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 ↕ ↕ SRA B CE,89 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 ↕ ↕ SRA [HL] CE,8B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ 0 ↕ ↕ SRA [BR:ll] CE,8A,ll ?PSEUDOCODE ?CYCLES 3 – – – – ↕ 0 ↕ ↕

## SRL: Logical shift to right

 SRL A CE,8C ?PSEUDOCODE ?CYCLES 2 – – – – 0 – ↕ ↕ SRL B CE,8D ?PSEUDOCODE ?CYCLES 2 – – – – 0 – ↕ ↕ SRL [HL] CE,8F ?PSEUDOCODE ?CYCLES 2 – – – – 0 – ↕ ↕ SRL [BR:ll] CE,8E,ll ?PSEUDOCODE ?CYCLES 3 – – – – 0 – ↕ ↕

# Auxiliary operation

## PACK: Pack

 PACK DE ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## UPCK: Unpack

 UPCK DF ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## SEP: Code extension

 SEP CE,A8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

# 16-bit arithmetic operation

 ADD IX,#mmnn C2,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IX,BA CE,40 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IX,HL CE,41 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ ADD BA,#mmnn C0,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ BA,BA CE, 0 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, 1 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, 2 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, 3 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ ADD SP,BA CE,44 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,HL CE,45 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,#mmnn CE,68,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ ADD IY,#mmnn C3,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IY,BA CE,42 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IY,HL CE,43 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ ADD HL,#mmnn C1,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ HL,BA CE,20 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,21 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,22 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,23 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕

 ADC BA,BA CE, 4 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, 5 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, 6 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, 7 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,#mmnn CE,60,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ ADC HL,BA CE,24 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,25 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,26 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,27 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,#mmnn CE,61,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕

## SUB: Subtraction

 SUB IX,#mmnn D2,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IX,BA CE,48 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IX,HL CE,49 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SUB BA,#mmnn D0,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ BA,BA CE, 8 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, 9 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SUB SP,BA CE,4C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,HL CE,4D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,#mmnn CE,6A,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ SUB IY,#mmnn D3,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ IY,BA CE,4A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ IY,HL CE,4B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SUB HL,#mmnn D1,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ HL,BA CE,28 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,29 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,2A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,2B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕

## SBC: Subtraction with carry

 SBC BA,BA CE, C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE, D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE, E ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE, F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,#mmnn CE,62,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕ SBC HL,BA CE,2C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,2D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,2E ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,2F ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,#mmnn CE,63,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕

## CP: Comparison

 CP IX,#mmnn D6,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP BA,#mmnn D4,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ BA,BA CE,18 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,HL CE,19 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IX CE,1A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ BA,IY CE,1B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP IY,#mmnn D7,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ CP HL,#mmnn D5,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – ↕ ↕ ↕ ↕ HL,BA CE,38 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,HL CE,39 ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IX CE,3A ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ HL,IY CE,3B ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ CP SP,BA CE,5C ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,HL CE,5D ?PSEUDOCODE ?CYCLES 2 – – – – ↕ ↕ ↕ ↕ SP,#mmnn CE,6C,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – ↕ ↕ ↕ ↕

## INC: 1 increment

 INC IX 92 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC BA 90 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC HL 91 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC IY 93 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ INC SP 87 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

## DEC: 1 decrement

 DEC IX 9A ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC BA 98 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC HL 99 ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC IY 9B ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕ DEC SP 8F ?PSEUDOCODE ?CYCLES 1 – – – – – – – ↕

# 16-bit transfer

 LD IY,[hhll] BB,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,#mmnn C7,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[SP+dd] CE,73,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IY,[HL] CE,C3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IX] CE,D3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,[IY] CE,DB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,BA CE,EC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,HL CE,ED ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IX CE,EE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,IY CE,EF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IY,SP CE,FE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD SP,#mmnn CE,6E,nn,mm ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,[hhll] CE,78,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – SP,BA CE,F0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,HL CE,F1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IX CE,F2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SP,IY CE,F3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BA,[hhll] B8,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,#mmnn C4,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[SP+dd] CE,70,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – BA,[HL] CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IX] CE,D0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,[IY] CE,D8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,BA CE,E0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,HL CE,E1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IX CE,E2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,IY CE,E3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,SP CE,F8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BA,PC CE,F9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD BR,#hh B4,hh ?PSEUDOCODE ?CYCLES 2 – – – – – – – – BR,A CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+L],A CE,46 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],B CE,4E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],L CE,56 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX+L],H CE,5E ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD HL,[hhll] B9,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,#mmnn C5,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[SP+dd] CE,71,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – HL,[HL] CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IX] CE,D1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,[IY] CE,D9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,BA CE,E4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,HL CE,E5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IX CE,E6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,IY CE,E7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,SP CE,F4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – HL,PC CE,F5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY+L],A CE,47 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],B CE,4F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],L CE,57 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY+L],H CE,5F ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD YP,#pp CE,C7,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – YP,A CE,CF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IY],A 70 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],B 71 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],L 72 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],H 73 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[BR:ll] 74,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[HL] 75 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IX] 76 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],[IY] 77 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IY],#nn B7,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IX+dd] CE,78,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IY+dd] CE,79,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY],[IX+L] CE,7A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],[IY+L] CE,7B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],BA CE,DC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],HL CE,DD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IX CE,DE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IY],IY CE,DF ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [BR:ll],A 78,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],B 79,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],L 7A,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],H 7B,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[HL] 7D,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IX] 7E,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],[IY] 7F,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [BR:ll],#nn DD,ll,nn ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [SP+dd],BA CE,74,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],HL CE,75,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IX CE,76,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [SP+dd],IY CE,77,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD [IY+dd],A CE,45,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],B CE,4D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],L CE,55,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IY+dd],H CE,5D,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD A,A 40 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,B 41 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,L 42 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,H 43 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[BR:ll] 44,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[HL] 45 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IX] 46 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,[IY] 47 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – A,#nn B0,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IX+dd] CE,40,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IY+dd] CE,41,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – A,[IX+L] CE,42 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[IY+L] CE,43 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,BR CE,C0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,SC CE,C1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,NB CE,C8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,EP CE,C9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,XP CE,CA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,YP CE,CB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – A,[hhll] CE,D0,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD IX,[hhll] BA,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,#mmnn C6,nn,mm ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[SP+dd] CE,72,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – IX,[HL] CE,C2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IX] CE,D2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,[IY] CE,DA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,BA CE,E8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,HL CE,E9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IX CE,EA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,IY CE,EB ?PSEUDOCODE ?CYCLES 2 – – – – – – – – IX,SP CE,FA ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD B,A 48 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,B 49 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,L 4A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,H 4B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[BR:ll] 4C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[HL] 4D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IX] 4E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,[IY] 4F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – B,#nn B1,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IX+dd] CE,48,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IY+dd] CE,49,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – B,[IX+L] CE,4A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[IY+L] CE,4B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – B,[hhll] CE,D1,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD H,A 58 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,B 59 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,L 5A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,H 5B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[BR:ll] 5C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[HL] 5D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IX] 5E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,[IY] 5F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – H,#nn B3,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IX+dd] CE,58,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IY+dd] CE,59,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – H,[IX+L] CE,5A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[IY+L] CE,5B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – H,[hhll] CE,D3,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [HL],A 68 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],B 69 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],L 6A ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],H 6B ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[BR:ll] 6C,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[HL] 6D ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IX] 6E ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],[IY] 6F ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [HL],#nn B5,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IX+dd] CE,60,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IY+dd] CE,61,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [HL],[IX+L] CE,62 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],[IY+L] CE,63 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],BA CE,C4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],HL CE,C5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IX CE,C6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [HL],IY CE,C7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD L,A 50 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,B 51 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,L 52 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,H 53 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[BR:ll] 54,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[HL] 55 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IX] 56 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,[IY] 57 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – L,#nn B2,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IX+dd] CE,50,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IY+dd] CE,51,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – L,[IX+L] CE,52 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[IY+L] CE,53 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – L,[hhll] CE,D2,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD [hhll],BA BC,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],HL BD,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IX BE,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],IY BF,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [hhll],A CE,D4,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],B CE,D5,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],L CE,D6,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],H CE,D7,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – [hhll],SP CE,7C,ll,hh ?PSEUDOCODE ?CYCLES 4 – – – – – – – – LD XP,#pp CE,C6,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – XP,A CE,CE ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD EP,#pp CE,C5,pp ?PSEUDOCODE ?CYCLES 3 – – – – – – – – EP,A CE,CD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX],A 60 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],B 61 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],L 62 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],H 63 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[BR:ll] 64,ll ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[HL] 65 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IX] 66 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],[IY] 67 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – [IX],#nn B6,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IX+dd] CE,68,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IY+dd] CE,69,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX],[IX+L] CE,6A ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],[IY+L] CE,6B ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],BA CE,D4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],HL CE,D5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IX CE,D6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – [IX],IY CE,D7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD [IX+dd],A CE,44,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],B CE,4C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],L CE,54,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – [IX+dd],H CE,5C,dd ?PSEUDOCODE ?CYCLES 3 – – – – – – – – LD SC,#nn 9F,nn ?PSEUDOCODE ?CYCLES 2 – – – – – – – – SC,A CE,C3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – LD NB,#bb CE,C4,bb ?PSEUDOCODE ?CYCLES 3 – – – – – – – – NB,A CE,CC ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

## EX: Byte exchange

 EX BA,HL C8 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – BA,IX C9 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – BA,IY CA ?PSEUDOCODE ?CYCLES 1 – – – – – – – – BA,SP CB ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

# Stack Control

## PUSH: Push

 PUSH IY A3 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH IX A2 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH ALL CE,B8 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH B CE,B1 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH BA A0 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH IP A6 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH ALE CE,B9 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH L CE,B2 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH HL A1 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH A CE,B0 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH BR A4 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH H CE,B3 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – PUSH SC A7 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – PUSH EP A5 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## POP: Pop

 POP IY AB ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP IX AA ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP ALL CE,BC ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP B CE,B5 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP BA A8 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP IP AE ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP ALE CE,BD ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP L CE,B6 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP HL A9 ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP A CE,B4 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP BR AC ?PSEUDOCODE ?CYCLES 1 – – – – – – – – POP H CE,B7 ?PSEUDOCODE ?CYCLES 2 – – – – – – – – POP SC AF ?PSEUDOCODE ?CYCLES 1 ↕ ↕ ↕ ↕ ↕ ↕ ↕ ↕ POP EP AD ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

# Branch

## JRS: Relative short jump

 JRS F0,rr CE,E8,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS F1,rr CE,E9,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS C,rr E4,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS LE,rr CE,E1,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS GE,rr CE,E3,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS rr F1,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS NC,rr E5,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS M,rr CE,E7,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS LT,rr CE,E0,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS F3,rr CE,EB,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS P,rr CE,E6,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NZ,rr E7,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS GT,rr CE,E2,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NF3,rr CE,EF,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NF2,rr CE,EE,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NF1,rr CE,ED,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS V,rr CE,E4,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS F2,rr CE,EA,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS Z,rr E6,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JRS NF0,rr CE,EC,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRS NV,rr CE,E5,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## JRL: Relative long jump

 JRL C,qqrr EC,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL NC,qqrr ED,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL Z,qqrr EE,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL NZ,qqrr EF,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – JRL qqrr F3,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## JP: Indirect jump

 JP [kk] FD,kk ?PSEUDOCODE ?CYCLES 2 – – – – – – – – JP HL F4 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## DJR: Loop

 DJR NZ,rr F5,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – ↕

## CARS: Relative short call

 CARS F0,rr CE,F8,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS F1,rr CE,F9,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS C,rr E0,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS LE,rr CE,F1,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS GE,rr CE,F3,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS rr F0,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS NC,rr E1,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS M,rr CE,F7,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS LT,rr CE,F0,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS F3,rr CE,FB,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS P,rr CE,F6,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NZ,rr E3,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS GT,rr CE,F2,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NF3,rr CE,FF,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NF2,rr CE,FE,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NF1,rr CE,FD,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS V,rr CE,F4,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS F2,rr CE,FA,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS Z,rr E2,rr ?PSEUDOCODE ?CYCLES 2 – – – – – – – – CARS NF0,rr CE,FC,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARS NV,rr CE,F5,rr ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## CARL: Relative long call

 CARL C,qqrr E8,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL NC,qqrr E9,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL Z,qqrr EA,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL NZ,qqrr EB,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – – CARL qqrr F2,rr,qq ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## CALL: Indirect call

 CALL [hhll] FB,ll,hh ?PSEUDOCODE ?CYCLES 3 – – – – – – – –

## RET: Return

 RET F8 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## RETE: Exception processing return

 RETE F9 ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## RETS: Return and skip

 RETS FA ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## INT: Software interrupt

 INT [kk] FC,kk ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

# System Control

## NOP: No operation

 NOP FF ?PSEUDOCODE ?CYCLES 1 – – – – – – – –

## HALT: Shifts to HALT status

 HALT CE,AE ?PSEUDOCODE ?CYCLES 2 – – – – – – – –

## SLP: Shifts to SLEEP status

 SLP CE,AF ?PSEUDOCODE ?CYCLES 2 – – – – – – – –