z80 opcode table <html> versionHOME

This file is the html version of z80machinecode.asc

01234567
00nopld BC,wld[BC],Ainc BCinc Bdec Bld B,brcla
01ex AF,AF'add HL,BCld A,[BC]dec BCinc Cdec Cld C,brrca
02djnz bld DE,wld[DE],Ainc DEinc Ddec Dld D,brla
03jr badd HL,DEld A,[DE]dec DEinc Edec Eld E,brra
04jr nz,bld HL,wld[w],HLinc HLinc Hdec Hld H,bdaa
05jr z,badd HL,HLld HL,[w]dec HLinc Ldec Lld L,bcpl
06jr nc,bld SP,wld [w],Ainc SPinc[HL]dec[HL]ld[HL],bscf
07jr c,badd HL,SPld A,[w]dec SPinc Adec Ald A,bccf
01234567
10ld B,Bld B,Cld B,Dld B,Eld B,Hld B,Lld B,(HL)ld B,A
11ld C,Bld C,Cld C,Dld C,Eld C,Hld C,Lld C,(HL)ld C,A
12ld D,Bld D,Cld D,Dld D,Eld D,Hld D,Lld D,(HL)ld D,A
13ld E,Bld E,Cld E,Dld E,Eld E,Hld E,Lld E,(HL)ld E,A
14ld H,Bld H,Cld H,Dld H,Eld H,Hld H,Lld H,(HL)ld H,A
15ld L,Bld L,Cld L,Dld L,Eld L,Hld L,Lld L,(HL)ld L,A
16ld[HL],Bld[HL],Cld[HL],Dld[HL],Eld[HL],Hld[HL],Lhaltld[HL],A
17ld A,Bld A,Cld A,Dld L,Eld A,Hld A,Lld A,(HL)ld A,A
01234567
20add A,Badd A,Cadd A,Dadd A,Eadd A,Hadd A,Ladd A,[HL]add A,A
21adc A,Badc A,Cadc A,Dadc A,Eadc A,Hadc A,Ladc A,[HL]adc A,A
22sub A,Bsub A,Csub A,Dsub A,Esub A,Hsub A,Lsub A,[HL]sub A,A
23sbc A,Bsbc A,Csbc A,Dsbc A,Esbc A,Hsbc A,Lsbc A,[HL]sbc A,A
24and A,Band A,Cand A,Dand A,Eand A,Hand A,Land A,[HL]and A,A
25xor A,Bxor A,Cxor A,Dxor A,Exor A,Hxor A,Lxor A,[HL]xor A,A
26or A,Bor A,Cor A,Dor A,Eor A,Hor A,Lor A,[HL]or A,A
27cp A,Bcp A,Ccp A,Dcp A,Ecp A,Hcp A,Lcp A,[HL]cp A,A
01234567
30ret nzpop BCjp nz,wjp wcall nz,wpush BCadd A,brst OOh
31ret zretjp z,wBITScall z,wcall wadc A,brst O8h
32ret ncpop DEjp nc,wout b,Acall nc,wpush DEsub A,brst 1Oh
33ret cexxjp c,win A,bcall c,wIXMODsbc A,brst 18h
34ret popop HLjp po,wex[SP],HLcall po,wpush HLand A,brst 2Oh
35ret pejp HLjp pe,wex DE,HLcall pe,wEXTDxor A,brst 28h
36ret ppop AFjp p,wdicall p,wpush AFor A,brst 3Oh
37ret mld SP,HLjp m,weicall m,wIYMODcp A,brst 38h
01234567