Z80 and R800 Assembly/Machine Language Op-code Tables



Notes:

Z80/R800 Instruction Table:

Fast Reference (sorted by Z80 mnemonics)
Z80 Assembly Mnemonics R800 Assembly Mnemonics Op-codes (Hexadecimal)
adc a,(hl)addc .a,[.hl]8E
adc a,(ix+d)addc .a,[.ix+d]DD 8E d
adc a,(iy+d)addc .a,[.iy+d]FD 8E d
adc a,naddc .a,nCE n
adc a,aaddc .a,.a8F
adc a,baddc .a,.b88
adc a,caddc .a,.c89
adc a,daddc .a,.d8A
adc a,eaddc .a,.e8B
adc a,haddc .a,.h8C
addc .a,.ixhDD 8C
addc .a,.ixlDD 8D
addc .a,.iyhFD 8C
addc .a,.iylFD 8D
adc a,laddc .a,.l8D
adc hl,bcaddc .hl,.bcED 4A
adc hl,deaddc .hl,.deED 5A
adc hl,hladdc .hl,.hlED 6A
adc hl,spaddc .hl,.spED 7A
add a,(hl)add .a,[.hl]86
add a,(ix+d)add .a,[.ix+d]DD 86 d
add a,(iy+d)add .a,[.iy+d]FD 86 d
add a,nadd .a,nC6 n
add a,aadd .a,.a87
add a,badd .a,.b80
add a,cadd .a,.c81
add a,dadd .a,.d82
add a,eadd .a,.e83
add a,hadd .a,.h84
add .a,.ixhDD 84
add .a,.ixlDD 85
add .a,.iyhFD 84
add .a,.iylFD 85
add a,ladd .a,.l85
add hl,bcadd .hl,.bc09
add hl,deadd .hl,.de19
add hl,hladd .hl,.hl29
add hl,spadd .hl,.sp39
add ix,bcadd .ix,.bcDD 09
add ix,deadd .ix,.deDD 19
add ix,ixadd .ix,.ixDD 29
add ix,spadd .ix,.spDD 39
add iy,bcadd .iy,.bcFD 09
add iy,deadd .iy,.deFD 19
add iy,iyadd .iy,.iyFD 29
add iy,spadd .iy,.spFD 39
and (hl)and .a,[.hl]A6
and (ix+d)and .a,[.ix+d]DD A6 d
and (iy+d)and .a,[.iy+d]FD A6 d
and nand .a,nE6 n
and aand .a,.aA7
and band .a,.bA0
and cand .a,.cA1
and dand .a,.dA2
and eand .a,.eA3
and hand .a,.hA4
and .a,.ixhDD A4
and .a,.ixlDD A5
and .a,.iyhFD A4
and .a,.iylFD A5
and land .a,.lA5
bit 0,(hl)bit 0,[.hl]CB 46
bit 0,(ix+d)bit 0,[.ix+d]DD CB d 46
bit 0,(iy+d)bit 0,[.iy+d]FD CB d 46
bit 0,abit 0,.aCB 47
bit 0,bbit 0,.bCB 40
bit 0,cbit 0,.cCB 41
bit 0,dbit 0,.dCB 42
bit 0,ebit 0,.eCB 43
bit 0,hbit 0,.hCB 44
bit 0,lbit 0,.lCB 45
bit 1,(hl)bit 1,[.hl]CB 4E
bit 1,(ix+d)bit 1,[.ix+d]DD CB d 4E
bit 1,(iy+d)bit 1,[.iy+d]FD CB d 4E
bit 1,abit 1,.aCB 4F
bit 1,bbit 1,.bCB 48
bit 1,cbit 1,.cCB 49
bit 1,dbit 1,.dCB 4A
bit 1,ebit 1,.eCB 4B
bit 1,hbit 1,.hCB 4C
bit 1,lbit 1,.lCB 4D
bit 2,(hl)bit 2,[.hl]CB 56
bit 2,(ix+d)bit 2,[.ix+d]DD CB d 56
bit 2,(iy+d)bit 2,[.iy+d]FD CB d 56
bit 2,abit 2,.aCB 57
bit 2,bbit 2,.bCB 50
bit 2,cbit 2,.cCB 51
bit 2,dbit 2,.dCB 52
bit 2,ebit 2,.eCB 53
bit 2,hbit 2,.hCB 54
bit 2,lbit 2,.lCB 55
bit 3,(hl)bit 3,[.hl]CB 5E
bit 3,(ix+d)bit 3,[.ix+d]DD CB d 5E
bit 3,(iy+d)bit 3,[.iy+d]FD CB d 5E
bit 3,abit 3,.aCB 5F
bit 3,bbit 3,.bCB 58
bit 3,cbit 3,.cCB 59
bit 3,dbit 3,.dCB 5A
bit 3,ebit 3,.eCB 5B
bit 3,hbit 3,.hCB 5C
bit 3,lbit 3,.lCB 5D
bit 4,(hl)bit 4,[.hl]CB 66
bit 4,(ix+d)bit 4,[.ix+d]DD CB d 66
bit 4,(iy+d)bit 4,[.iy+d]FD CB d 66
bit 4,abit 4,.aCB 67
bit 4,bbit 4,.bCB 60
bit 4,cbit 4,.cCB 61
bit 4,dbit 4,.dCB 62
bit 4,ebit 4,.eCB 63
bit 4,hbit 4,.hCB 64
bit 4,lbit 4,.lCB 65
bit 5,(hl)bit 5,[.hl]CB 6E
bit 5,(ix+d)bit 5,[.ix+d]DD CB d 6E
bit 5,(iy+d)bit 5,[.iy+d]FD CB d 6E
bit 5,abit 5,.aCB 6F
bit 5,bbit 5,.bCB 68
bit 5,cbit 5,.cCB 69
bit 5,dbit 5,.dCB 6A
bit 5,ebit 5,.eCB 6B
bit 5,hbit 5,.hCB 6C
bit 5,lbit 5,.lCB 6D
bit 6,(hl)bit 6,[.hl]CB 76
bit 6,(ix+d)bit 6,[.ix+d]DD CB d 76
bit 6,(iy+d)bit 6,[.iy+d]FD CB d 76
bit 6,abit 6,.aCB 77
bit 6,bbit 6,.bCB 70
bit 6,cbit 6,.cCB 71
bit 6,dbit 6,.dCB 72
bit 6,ebit 6,.eCB 73
bit 6,hbit 6,.hCB 74
bit 6,lbit 6,.lCB 75
bit 7,(hl)bit 7,[.hl]CB 7E
bit 7,(ix+d)bit 7,[.ix+d]DD CB d 7E
bit 7,(iy+d)bit 7,[.iy+d]FD CB d 7E
bit 7,abit 7,.aCB 7F
bit 7,bbit 7,.bCB 78
bit 7,cbit 7,.cCB 79
bit 7,dbit 7,.dCB 7A
bit 7,ebit 7,.eCB 7B
bit 7,hbit 7,.hCB 7C
bit 7,lbit 7,.lCB 7D
call nncall nnCD nnl nnh
call c,nncall c,nnDC nnl nnh
call m,nncall m,nnFC nnl nnh
call nc,nncall nc,nnD4 nnl nnh
call nz,nncall nz,nnC4 nnl nnh
call p,nncall p,nnF4 nnl nnh
call pe,nncall pe,nnEC nnl nnh
call po,nncall po,nnE4 nnl nnh
call z,nncall z,nnCC nnl nnh
ccfnotc3F
cp (hl)cmp .a,[.hl]BE
cp (ix+d)cmp .a,[.ix+d]DD BE d
cp (iy+d)cmp .a,[.iy+d]FD BE d
cp ncmp .a,nFE n
cp acmp .a,.aBF
cp bcmp .a,.bB8
cp ccmp .a,.cB9
cp dcmp .a,.dBA
cp ecmp .a,.eBB
cp hcmp .a,.hBC
cmp .a,.ixhDD BC
cmp .a,.ixlDD BD
cmp .a,.iyhFD BC
cmp .a,.iylFD BD
cp lcmp .a,.lBD
cpdcmp .a,[.hl--]ED A9
cpdrcmpm .a,[.hl--]ED B9
cpicmp .a,[.hl++]ED A1
cpircmpm .a,[.hl++]ED B1
cplnot .a2F
daaadj .a27
dec (hl)dec [.hl]35
dec (ix+d)dec [.ix+d]DD 35 d
dec (iy+d)dec [.iy+d]FD 35 d
dec adec .a3D
dec bdec .b05
dec bcdec .bc0B
dec cdec .c0D
dec ddec .d15
dec dedec .de1B
dec edec .e1D
dec hdec .h25
dec hldec .hl2B
dec ixdec .ixDD 2B
dec .ixhDD 25
dec .ixlDD 2D
dec iydec .iyFD 2B
dec .iyhFD 25
dec .iylFD 2D
dec ldec .l2D
dec spdec .sp3B
didiF3
djnz ddbnz d10 d
eieiFB
ex (sp),hlxch [.sp],.hlE3
ex (sp),ixxch [.sp],.ixDD E3
ex (sp),iyxch [.sp],.iyFD E3
ex af,af'xch .af,.af'08
ex de,hlxch .de,.hlEB
exxxchxD9
halthalt76
im 0im 0ED 46
im 1im 1ED 56
im 2im 2ED 5E
in a,(n)in .a,[n]DB n
in a,(c)in .a,[.c]ED 78
in b,(c)in .b,[.c]ED 40
in c,(c)in .c,[.c]ED 48
in d,(c)in .d,[.c]ED 50
in e,(c)in .e,[.c]ED 58
in h,(c)in .h,[.c]ED 60
in l,(c)in .l,[.c]ED 68
*1in .f,[.c]ED 70
indin [.hl--],[.c]ED AA
indrinm [.hl--],[.c]ED BA
iniin [.hl++],[.c]ED A2
inirinm [.hl++],[.c]ED B2
inc (hl)inc [.hl]34
inc (ix+d)inc [.ix+d]DD 34 d
inc (iy+d)inc [.iy+d]FD 34 d
inc ainc .a3C
inc binc .b04
inc bcinc .bc03
inc cinc .c0C
inc dinc .d14
inc deinc .de13
inc einc .e1C
inc hinc .h24
inc hlinc .hl23
inc ixinc .ixDD 23
inc .ixhDD 24
inc .ixlDD 2C
inc iyinc .iyFD 23
inc .iyhFD 24
inc .iylFD 2C
inc linc .l2C
inc spinc .sp33
jp (hl)br [.hl]E9
jp (ix)br [.ix]DD E9
jp (iy)br [.iy]FD E9
jp nnbr nnC3 nnl nnh
jp c,nnbc nnDA nnl nnh
jp m,nnbm nnFA nnl nnh
jp nc,nnbnc nnD2 nnl nnh
jp nz,nnbnz nnC2 nnl nnh
jp p,nnbp nnF2 nnl nnh
jp pe,nnbpe nnEA nnl nnh
jp po,nnbpo nnE2 nnl nnh
jp z,nnbz nnCA nnl nnh
jr dshort br d18 d
jr nz,dshort bnz d20 d
jr z,dshort bz d28 d
jr nc,dshort bnc d30 d
jr c,dshort bc d38 d
ld (nn),ald [nn],.a32 nnl nnh
ld (nn),bcld [nn],.bcED 43 nnl nnh
ld (nn),deld [nn],.deED 53 nnl nnh
ld (nn),hlld [nn],.hl22 nnl nnh
ld (nn),hlld [nn],.hlED 63 nnl nnh
ld (nn),ixld [nn],.ixDD 22 nnl nnh
ld (nn),iyld [nn],.iyFD 22 nnl nnh
ld (nn),spld [nn],.spED 73 nnl nnh
ld (bc),ald [.bc],.a02
ld (de),ald [.de],.a12
ld (hl),nld [.hl],n36 n
ld (hl),ald [.hl],.a77
ld (hl),bld [.hl],.b70
ld (hl),cld [.hl],.c71
ld (hl),dld [.hl],.d72
ld (hl),eld [.hl],.e73
ld (hl),hld [.hl],.h74
ld (hl),lld [.hl],.l75
ld (ix+d),nld [.ix+d],nDD 36 d n
ld (ix+d),ald [.ix+d],.aDD 77 d
ld (ix+d),bld [.ix+d],.bDD 70 d
ld (ix+d),cld [.ix+d],.cDD 71 d
ld (ix+d),dld [.ix+d],.dDD 72 d
ld (ix+d),eld [.ix+d],.eDD 73 d
ld (ix+d),hld [.ix+d],.hDD 74 d
ld (ix+d),lld [.ix+d],.lDD 75 d
ld (iy+d),nld [.iy+d],nFD 36 d n
ld (iy+d),ald [.iy+d],.aFD 77 d
ld (iy+d),bld [.iy+d],.bFD 70 d
ld (iy+d),cld [.iy+d],.cFD 71 d
ld (iy+d),dld [.iy+d],.dFD 72 d
ld (iy+d),eld [.iy+d],.eFD 73 d
ld (iy+d),hld [.iy+d],.hFD 74 d
ld (iy+d),lld [.iy+d],.lFD 75 d
ld a,(nn)ld .a,[nn]3A nnl nnh
ld a,(bc)ld .a,[.bc]0A
ld a,(de)ld .a,[.de]1A
ld a,(hl)ld .a,[.hl]7E
ld a,(ix+d)ld .a,[.ix+d]DD 7E d
ld a,(iy+d)ld .a,[.iy+d]FD 7E d
ld a,nld .a,n3E n
ld .a,nDD 3E n
ld .a,nFD 3E n
ld a,ald .a,.a7F
ld .a,.aDD 7F
ld .a,.aFD 7F
ld a,bld .a,.b78
ld .a,.bDD 78
ld .a,.bFD 78
ld a,cld .a,.c79
ld .a,.cDD 79
ld .a,.cFD 79
ld a,dld .a,.d7A
ld .a,.dDD 7A
ld .a,.dFD 7A
ld a,eld .a,.e7B
ld .a,.eDD 7B
ld .a,.eFD 7B
ld a,hld .a,.h7C
ld a,ild .a,.iED 57
ld .a,.ixhDD 7C
ld .a,.ixlDD 7D
ld .a,.iyhFD 7C
ld .a,.iylFD 7D
ld a,lld .a,.l7D
ld a,rld .a,.rED 5F
ld b,(hl)ld .b,[.hl]46
ld b,(ix+d)ld .b,[.ix+d]DD 46 d
ld b,(iy+d)ld .b,[.iy+d]FD 46 d
ld b,nld .b,n06 n
ld b,ald .b,.a47
ld .b,.aDD 47
ld .b,.aFD 47
ld b,bld .b,.b40
ld .b,.bDD 40
ld .b,.bFD 40
ld b,cld .b,.c41
ld .b,.cDD 41
ld .b,.cFD 41
ld b,dld .b,.d42
ld .b,.dDD 42
ld .b,.dFD 42
ld b,eld .b,.e43
ld .b,.eDD 43
ld .b,.eFD 43
ld b,hld .b,.h44
ld .b,.ixhDD 44
ld .b,.ixlDD 45
ld .b,.iyhFD 44
ld .b,.iylFD 45
ld b,lld .b,.l45
ld bc,(nn)ld .bc,[nn]ED 4B nnl nnh
ld bc,nnld .bc,nn01 nnl nnh
ld c,(hl)ld .c,[.hl]4E
ld c,(ix+d)ld .c,[.ix+d]DD 4E d
ld c,(iy+d)ld .c,[.iy+d]FD 4E d
ld c,nld .c,n0E n
ld c,ald .c,.a4F
ld .c,.aDD 4F
ld .c,.aFD 4F
ld c,bld .c,.b48
ld .c,.bDD 48
ld .c,.bFD 48
ld c,cld .c,.c49
ld .c,.cDD 49
ld .c,.cFD 49
ld c,dld .c,.d4A
ld .c,.dDD 4A
ld .c,.dFD 4A
ld c,eld .c,.e4B
ld .c,.eDD 4B
ld .c,.eFD 4B
ld c,hld .c,.h4C
ld .c,.ixhDD 4C
ld .c,.ixlDD 4D
ld .c,.iyhFD 4C
ld .c,.iylFD 4D
ld c,lld .c,.l4D
ld d,(hl)ld .d,[.hl]56
ld d,(ix+d)ld .d,[.ix+d]DD 56 d
ld d,(iy+d)ld .d,[.iy+d]FD 56 d
ld d,nld .d,n16 n
ld d,ald .d,.a57
ld .d,.aDD 57
ld .d,.aFD 57
ld d,bld .d,.b50
ld .d,.bDD 50
ld .d,.bFD 50
ld d,cld .d,.c51
ld .d,.cDD 51
ld .d,.cFD 51
ld d,dld .d,.d52
ld .d,.dDD 52
ld .d,.dFD 52
ld d,eld .d,.e53
ld .d,.eDD 53
ld .d,.eFD 53
ld d,hld .d,.h54
ld .d,.ixhDD 54
ld .d,.ixlDD 55
ld .d,.iyhFD 54
ld .d,.iylFD 55
ld d,lld .d,.l55
ld de,(nn)ld .de,[nn]ED 5B nnl nnh
ld de,nnld .de,nn11 nnl nnh
ld e,(hl)ld .e,[.hl]5E
ld e,(ix+d)ld .e,[.ix+d]DD 5E d
ld e,(iy+d)ld .e,[.iy+d]FD 5E d
ld e,nld .e,n1E n
ld e,ald .e,.a5F
ld .e,.aDD 5F
ld .e,.aFD 5F
ld e,bld .e,.b58
ld .e,.bDD 58
ld .e,.bFD 58
ld e,cld .e,.c59
ld .e,.cDD 59
ld .e,.cFD 59
ld e,dld .e,.d5A
ld .e,.dDD 5A
ld .e,.dFD 5A
ld e,eld .e,.e5B
ld .e,.eDD 5B
ld .e,.eFD 5B
ld e,hld .e,.h5C
ld .e,.ixhDD 5C
ld .e,.ixlDD 5D
ld .e,.iyhFD 5C
ld .e,.iylFD 5D
ld e,lld .e,.l5D
ld h,(hl)ld .h,[.hl]66
ld h,(ix+d)ld .h,[.ix+d]DD 66 d
ld h,(iy+d)ld .h,[.iy+d]FD 66 d
ld h,nld .h,n26 n
ld h,ald .h,.a67
ld h,bld .h,.b60
ld h,cld .h,.c61
ld h,dld .h,.d62
ld h,eld .h,.e63
ld h,hld .h,.h64
ld h,lld .h,.l65
ld hl,(nn)ld .hl,[nn]2A nnl nnh
ld hl,(nn)ld .hl,[nn]ED 6B nnl nnh
ld hl,nnld .hl,nn21 nnl nnh
ld i,ald .i,.aED 47
ld ix,(nn)ld .ix,[nn]DD 2A nnl nnh
ld ix,nnld .ix,nnDD 21 nnl nnh
ld .ixh,nDD 26 n
ld .ixh,.aDD 67
ld .ixh,.bDD 60
ld .ixh,.cDD 61
ld .ixh,.dDD 62
ld .ixh,.eDD 63
ld .ixh,.ixhDD 64
ld .ixh,.ixlDD 65
ld .ixl,nDD 2E n
ld .ixl,.aDD 6F
ld .ixl,.bDD 68
ld .ixl,.cDD 69
ld .ixl,.dDD 6A
ld .ixl,.eDD 6B
ld .ixl,.ixhDD 6C
ld .ixl,.ixlDD 6D
ld iy,(nn)ld .iy,[nn]FD 2A nnl nnh
ld iy,nnld .iy,nnFD 21 nnl nnh
ld .iyh,nFD 26 n
ld .iyh,.aFD 67
ld .iyh,.bFD 60
ld .iyh,.cFD 61
ld .iyh,.dFD 62
ld .iyh,.eFD 63
ld .iyh,.iyhFD 64
ld .iyh,.iylFD 65
ld .iyl,nFD 2E n
ld .iyl,.aFD 6F
ld .iyl,.bFD 68
ld .iyl,.cFD 69
ld .iyl,.dFD 6A
ld .iyl,.eFD 6B
ld .iyl,.iyhFD 6C
ld .iyl,.iylFD 6D
ld l,(hl)ld .l,[.hl]6E
ld l,(ix+d)ld .l,[.ix+d]DD 6E d
ld l,(iy+d)ld .l,[.iy+d]FD 6E d
ld l,nld .l,n2E n
ld l,ald .l,.a6F
ld l,bld .l,.b68
ld l,cld .l,.c69
ld l,dld .l,.d6A
ld l,eld .l,.e6B
ld l,hld .l,.h6C
ld l,lld .l,.l6D
ld r,ald .r,.aED 4F
ld sp,(nn)ld .sp,[nn]ED 7B nnl nnh
ld sp,nnld .sp,nn31 nnl nnh
ld sp,hlld .sp,.hlF9
ld sp,ixld .sp,.ixDD F9
ld sp,iyld .sp,.iyFD F9
lddmove [.hl--],[.de--]ED A8
lddrmovem [.hl--],[.de--]ED B8
ldimove [.hl++],[.de++]ED A0
ldirmovem [.hl++],[.de++]ED B0
mulub .a,.aED F9
mulub .a,.bED C1
mulub .a,.cED C9
mulub .a,.dED D1
mulub .a,.eED D9
mulub .a,.hED E1
mulub .a,.lED E9
muluw .hl,.bcED C3
muluw .hl,.deED D3
muluw .hl,.hlED E3
muluw .hl,.spED F3
negneg .aED 44
nopnop00
or (hl)or .a,[.hl]B6
or (ix+d)or .a,[.ix+d]DD B6 d
or (iy+d)or .a,[.iy+d]FD B6 d
or nor .a,nF6 n
or aor .a,.aB7
or bor .a,.bB0
or cor .a,.cB1
or dor .a,.dB2
or eor .a,.eB3
or hor .a,.hB4
or .a,.ixhDD B4
or .a,.ixlDD B5
or .a,.iyhFD B4
or .a,.iylFD B5
or lor .a,.lB5
otdroutm [.c],[.hl--]ED BB
otiroutm [.c],[.hl++]ED B3
out (n),aout [n],.aD3 n
out (c),aout [.c],.aED 79
out (c),bout [.c],.bED 41
out (c),cout [.c],.cED 49
out (c),dout [.c],.dED 51
out (c),eout [.c],.eED 59
out (c),hout [.c],.hED 61
out (c),lout [.c],.lED 69
outdout [.c],[.hl--]ED AB
outiout [.c],[.hl++]ED A3
pop afpop .afF1
pop bcpop .bcC1
pop depop .deD1
pop hlpop .hlE1
pop ixpop .ixDD E1
pop iypop .iyFD E1
push afpush .afF5
push bcpush .bcC5
push depush .deD5
push hlpush .hlE5
push ixpush .ixDD E5
push iypush .iyFD E5
res 0,(hl)clr 0,[.hl]CB 86
res 0,(ix+d)clr 0,[.ix+d]DD CB d 86
res 0,(iy+d)clr 0,[.iy+d]FD CB d 86
res 0,aclr 0,.aCB 87
res 0,bclr 0,.bCB 80
res 0,cclr 0,.cCB 81
res 0,dclr 0,.dCB 82
res 0,eclr 0,.eCB 83
res 0,hclr 0,.hCB 84
res 0,lclr 0,.lCB 85
res 1,(hl)clr 1,[.hl]CB 8E
res 1,(ix+d)clr 1,[.ix+d]DD CB d 8E
res 1,(iy+d)clr 1,[.iy+d]FD CB d 8E
res 1,aclr 1,.aCB 8F
res 1,bclr 1,.bCB 88
res 1,cclr 1,.cCB 89
res 1,dclr 1,.dCB 8A
res 1,eclr 1,.eCB 8B
res 1,hclr 1,.hCB 8C
res 1,lclr 1,.lCB 8D
res 2,(hl)clr 2,[.hl]CB 96
res 2,(ix+d)clr 2,[.ix+d]DD CB d 96
res 2,(iy+d)clr 2,[.iy+d]FD CB d 96
res 2,aclr 2,.aCB 97
res 2,bclr 2,.bCB 90
res 2,cclr 2,.cCB 91
res 2,dclr 2,.dCB 92
res 2,eclr 2,.eCB 93
res 2,hclr 2,.hCB 94
res 2,lclr 2,.lCB 95
res 3,(hl)clr 3,[.hl]CB 9E
res 3,(ix+d)clr 3,[.ix+d]DD CB d 9E
res 3,(iy+d)clr 3,[.iy+d]FD CB d 9E
res 3,aclr 3,.aCB 9F
res 3,bclr 3,.bCB 98
res 3,cclr 3,.cCB 99
res 3,dclr 3,.dCB 9A
res 3,eclr 3,.eCB 9B
res 3,hclr 3,.hCB 9C
res 3,lclr 3,.lCB 9D
res 4,(hl)clr 4,[.hl]CB A6
res 4,(ix+d)clr 4,[.ix+d]DD CB d A6
res 4,(iy+d)clr 4,[.iy+d]FD CB d A6
res 4,aclr 4,.aCB A7
res 4,bclr 4,.bCB A0
res 4,cclr 4,.cCB A1
res 4,dclr 4,.dCB A2
res 4,eclr 4,.eCB A3
res 4,hclr 4,.hCB A4
res 4,lclr 4,.lCB A5
res 5,(hl)clr 5,[.hl]CB AE
res 5,(ix+d)clr 5,[.ix+d]DD CB d AE
res 5,(iy+d)clr 5,[.iy+d]FD CB d AE
res 5,aclr 5,.aCB AF
res 5,bclr 5,.bCB A8
res 5,cclr 5,.cCB A9
res 5,dclr 5,.dCB AA
res 5,eclr 5,.eCB AB
res 5,hclr 5,.hCB AC
res 5,lclr 5,.lCB AD
res 6,(hl)clr 6,[.hl]CB B6
res 6,(ix+d)clr 6,[.ix+d]DD CB d B6
res 6,(iy+d)clr 6,[.iy+d]FD CB d B6
res 6,aclr 6,.aCB B7
res 6,bclr 6,.bCB B0
res 6,cclr 6,.cCB B1
res 6,dclr 6,.dCB B2
res 6,eclr 6,.eCB B3
res 6,hclr 6,.hCB B4
res 6,lclr 6,.lCB B5
res 7,(hl)clr 7,[.hl]CB BE
res 7,(ix+d)clr 7,[.ix+d]DD CB d BE
res 7,(iy+d)clr 7,[.iy+d]FD CB d BE
res 7,aclr 7,.aCB BF
res 7,bclr 7,.bCB B8
res 7,cclr 7,.cCB B9
res 7,dclr 7,.dCB BA
res 7,eclr 7,.eCB BB
res 7,hclr 7,.hCB BC
res 7,lclr 7,.lCB BD
retretC9
ret cret cD8
ret mret mF8
ret ncret ncD0
ret nzret nzC0
ret pret pF0
ret peret peE8
ret poret poE0
ret zret zC8
retiretiED 4D
retnretnED 45
rl (hl)rolc [.hl]CB 16
rl (ix+d)rolc [.ix+d]DD CB d 16
rl (iy+d)rolc [.iy+d]FD CB d 16
rl arolc .aCB 17
rl brolc .bCB 10
rl crolc .cCB 11
rl drolc .dCB 12
rl erolc .eCB 13
rl hrolc .hCB 14
rl lrolc .lCB 15
rlarolca17
rlc (hl)rol [.hl]CB 06
rlc (ix+d)rol [.ix+d]DD CB d 06
rlc (iy+d)rol [.iy+d]FD CB d 06
rlc arol .aCB 07
rlc brol .bCB 00
rlc crol .cCB 01
rlc drol .dCB 02
rlc erol .eCB 03
rlc hrol .hCB 04
rlc lrol .lCB 05
rlcarola07
rldrol4 [.hl]ED 6F
rr (hl)rorc [.hl]CB 1E
rr (ix+d)rorc [.ix+d]DD CB d 1E
rr (iy+d)rorc [.iy+d]FD CB d 1E
rr arorc .aCB 1F
rr brorc .bCB 18
rr crorc .cCB 19
rr drorc .dCB 1A
rr erorc .eCB 1B
rr hrorc .hCB 1C
rr lrorc .lCB 1D
rrarorca1F
rrc (hl)ror [.hl]CB 0E
rrc (ix+d)ror [.ix+d]DD CB d 0E
rrc (iy+d)ror [.iy+d]FD CB d 0E
rrc aror .aCB 0F
rrc bror .bCB 08
rrc cror .cCB 09
rrc dror .dCB 0A
rrc eror .eCB 0B
rrc hror .hCB 0C
rrc lror .lCB 0D
rrcarora0F
rrdrol4 [.hl]ED 67
rst 00Hbrk 00HC7
rst 08Hbrk 08HCF
rst 10Hbrk 10HD7
rst 18Hbrk 18HDF
rst 20Hbrk 20HE7
rst 28Hbrk 28HEF
rst 30Hbrk 30HF7
rst 38Hbrk 38HFF
sbc a,(hl)subc .a,[.hl]9E
sbc a,(ix+d)subc .a,[.ix+d]DD 9E d
sbc a,(iy+d)subc .a,[.iy+d]FD 9E d
sbc a,nsubc .a,nDE n
sbc a,asubc .a,.a9F
sbc a,bsubc .a,.b98
sbc a,csubc .a,.c99
sbc a,dsubc .a,.d9A
sbc a,esubc .a,.e9B
sbc a,hsubc .a,.h9C
subc .a,.ixhDD 9C
subc .a,.ixlDD 9D
subc .a,.iyhFD 9C
subc .a,.iylFD 9D
sbc a,lsubc .a,.l9D
sbc hl,bcsubc .hl,.bcED 42
sbc hl,desubc .hl,.deED 52
sbc hl,hlsubc .hl,.hlED 62
sbc hl,spsubc .hl,.spED 72
scfsetc37
set 0,(hl)set 0,[.hl]CB C6
set 0,(ix+d)set 0,[.ix+d]DD CB d C6
set 0,(iy+d)set 0,[.iy+d]FD CB d C6
set 0,aset 0,.aCB C7
set 0,bset 0,.bCB C0
set 0,cset 0,.cCB C1
set 0,dset 0,.dCB C2
set 0,eset 0,.eCB C3
set 0,hset 0,.hCB C4
set 0,lset 0,.lCB C5
set 1,(hl)set 1,[.hl]CB CE
set 1,(ix+d)set 1,[.ix+d]DD CB d CE
set 1,(iy+d)set 1,[.iy+d]FD CB d CE
set 1,aset 1,.aCB CF
set 1,bset 1,.bCB C8
set 1,cset 1,.cCB C9
set 1,dset 1,.dCB CA
set 1,eset 1,.eCB CB
set 1,hset 1,.hCB CC
set 1,lset 1,.lCB CD
set 2,(hl)set 2,[.hl]CB D6
set 2,(ix+d)set 2,[.ix+d]DD CB d D6
set 2,(iy+d)set 2,[.iy+d]FD CB d D6
set 2,aset 2,.aCB D7
set 2,bset 2,.bCB D0
set 2,cset 2,.cCB D1
set 2,dset 2,.dCB D2
set 2,eset 2,.eCB D3
set 2,hset 2,.hCB D4
set 2,lset 2,.lCB D5
set 3,(hl)set 3,[.hl]CB DE
set 3,(ix+d)set 3,[.ix+d]DD CB d DE
set 3,(iy+d)set 3,[.iy+d]FD CB d DE
set 3,aset 3,.aCB DF
set 3,bset 3,.bCB D8
set 3,cset 3,.cCB D9
set 3,dset 3,.dCB DA
set 3,eset 3,.eCB DB
set 3,hset 3,.hCB DC
set 3,lset 3,.lCB DD
set 4,(hl)set 4,[.hl]CB E6
set 4,(ix+d)set 4,[.ix+d]DD CB d E6
set 4,(iy+d)set 4,[.iy+d]FD CB d E6
set 4,aset 4,.aCB E7
set 4,bset 4,.bCB E0
set 4,cset 4,.cCB E1
set 4,dset 4,.dCB E2
set 4,eset 4,.eCB E3
set 4,hset 4,.hCB E4
set 4,lset 4,.lCB E5
set 5,(hl)set 5,[.hl]CB EE
set 5,(ix+d)set 5,[.ix+d]DD CB d EE
set 5,(iy+d)set 5,[.iy+d]FD CB d EE
set 5,aset 5,.aCB EF
set 5,bset 5,.bCB E8
set 5,cset 5,.cCB E9
set 5,dset 5,.dCB EA
set 5,eset 5,.eCB EB
set 5,hset 5,.hCB EC
set 5,lset 5,.lCB ED
set 6,(hl)set 6,[.hl]CB F6
set 6,(ix+d)set 6,[.ix+d]DD CB d F6
set 6,(iy+d)set 6,[.iy+d]FD CB d F6
set 6,aset 6,.aCB F7
set 6,bset 6,.bCB F0
set 6,cset 6,.cCB F1
set 6,dset 6,.dCB F2
set 6,eset 6,.eCB F3
set 6,hset 6,.hCB F4
set 6,lset 6,.lCB F5
set 7,(hl)set 7,[.hl]CB FE
set 7,(ix+d)set 7,[.ix+d]DD CB d FE
set 7,(iy+d)set 7,[.iy+d]FD CB d FE
set 7,aset 7,.aCB FF
set 7,bset 7,.bCB F8
set 7,cset 7,.cCB F9
set 7,dset 7,.dCB FA
set 7,eset 7,.eCB FB
set 7,hset 7,.hCB FC
set 7,lset 7,.lCB FD
sla (hl)shl [.hl]
shla [.hl]
CB 26
sla (ix+d)shl [.ix+d]
shla [.ix+d]
DD CB d 26
sla (iy+d)shl [.iy+d]
shla [.iy+d]
FD CB d 26
sla bshl .b
shla .b
CB 20
sla cshl .c
shla .c
CB 21
sla dshl .d
shla .d
CB 22
sla eshl .e
shla .e
CB 23
sla hshl .h
shla .h
CB 24
sla lshl .l
shla .l
CB 25
sra (hl)shra [.hl]CB 2E
sra (ix+d)shra [.ix+d]DD CB d 2E
sra (iy+d)shra [.iy+d]FD CB d 2E
sra ashra .aCB 2F
sra bshra .bCB 28
sra cshra .cCB 29
sra dshra .dCB 2A
sra eshra .eCB 2B
sra hshra .hCB 2C
sra lshra .lCB 2D
srl (hl)shr [.hl]CB 3E
srl (ix+d)shr [.ix+d]DD CB d 3E
srl (iy+d)shr [.iy+d]FD CB d 3E
srl ashr .aCB 3F
srl bshr .bCB 38
srl cshr .cCB 39
srl dshr .dCB 3A
srl eshr .eCB 3B
srl hshr .hCB 3C
srl lshr .lCB 3D
sub (hl)sub .a,[.hl]96
sub (ix+d)sub .a,[.ix+d]DD 96 d
sub (iy+d)sub .a,[.iy+d]FD 96 d
sub nsub .a,nD6 n
sub asub .a,.a97
sub bsub .a,.b90
sub csub .a,.c91
sub dsub .a,.d92
sub esub .a,.e93
sub hsub .a,.h94
sub .a,.ixhDD 94
sub .a,.ixlDD 95
sub .a,.iyhFD 94
sub .a,.iylFD 95
sub lsub .a,.l95
xor (hl)xor .a,[.hl]AE
xor (ix+d)xor .a,[.ix+d]DD AE d
xor (iy+d)xor .a,[.iy+d]FD AE d
xor nxor .a,nEE n
xor axor .a,.aAF
xor bxor .a,.bA8
xor cxor .a,.cA9
xor dxor .a,.dAA
xor exor .a,.eAB
xor hxor .a,.hAC
xor .a,.ixhDD AC
xor .a,.ixlDD AD
xor .a,.iyhFD AC
xor .a,.iylFD AD
xor lxor .a,.lAD