Opcodes Sorted By Value

z80 » Opcodes

nn means 2 bytes stored most significant byte first. n means 1 byte.

$0 - $0f
$10 - $1f
$20 - $2f
$30 - $3f
$40 - $4f
$50 - $5f
$60 - $6f
$70 - $7f
$80 - $8f
$90 - $9f
$a0 - $af
$b0 - $bf
$c0 - $cf
$d0 - $df
$e0 - $ef
$f0 - $ff

        nop               00
        ld bc,nn          01 n  n
        ld (bc),a         02
        inc bc            03
        inc b             04
        dec b             05
        ld b,n            06 n
        rlca              07
        ex af,af'         08
        add hl,bc         09
        ld a,(bc)         0a
        dec bc            0b
        inc c             0c
        dec c             0d
        ld c,n            0e n
        rrca              0f
        djnz $+2          10
        ld de,nn          11 n  n
        ld (de),a         12
        inc de            13
        inc d             14
        dec d             15
        ld d,n            16 n
        rla               17
        jr $+2            18
        add hl,de         19
        ld a,(de)         1a
        dec de            1b
        inc e             1c
        dec e             1d
        ld e,n            1e n
        rra               1f
        jr nz,$+2         20
        ld hl,nn          21 n  n
        ld (nn),hl        22 n  n
        inc hl            23
        inc h             24
        dec h             25
        ld h,n            26 n
        daa               27
        jr z,$+2          28
        add hl,hl         29
        ld hl,(nn)        2a n  n
        dec hl            2b
        inc l             2c
        dec l             2d
        ld l,n            2e n
        cpl               2f
        jr nc,$+2         30
        ld sp,nn          31 n  n
        ld (nn),a         32 n  n
        inc sp            33
        inc (hl)          34
        dec (hl)          35
        ld (hl),n         36 n
        scf               37
        jr c,$+2          38
        add hl,sp         39
        ld a,(nn)         3a n  n
        dec sp            3b
        inc a             3c
        dec a             3d
        ld a,n            3e n
        ccf               3f
        ld b,b            40
        ld b,c            41
        ld b,d            42
        ld b,e            43
        ld b,h            44
        ld b,l            45
        ld b,(hl)         46
        ld b,a            47
        ld c,b            48
        ld c,c            49
        ld c,d            4a
        ld c,e            4b
        ld c,h            4c
        ld c,l            4d
        ld c,(hl)         4e
        ld c,a            4f
        ld d,b            50
        ld d,c            51
        ld d,d            52
        ld d,e            53
        ld d,h            54
        ld d,l            55
        ld d,(hl)         56
        ld d,a            57
        ld e,b            58
        ld e,c            59
        ld e,d            5a
        ld e,e            5b
        ld e,h            5c
        ld e,l            5d
        ld e,(hl)         5e
        ld e,a            5f
        ld h,b            60
        ld h,c            61
        ld h,d            62
        ld h,e            63
        ld h,h            64
        ld h,l            65
        ld h,(hl)         66
        ld h,a            67
        ld l,b            68
        ld l,c            69
        ld l,d            6a
        ld l,e            6b
        ld l,h            6c
        ld l,l            6d
        ld l,(hl)         6e
        ld l,a            6f
        ld (hl),b         70
        ld (hl),c         71
        ld (hl),d         72
        ld (hl),e         73
        ld (hl),h         74
        ld (hl),l         75
        halt              76
        ld (hl),a         77
        ld a,b            78
        ld a,c            79
        ld a,d            7a
        ld a,e            7b
        ld a,h            7c
        ld a,l            7d
        ld a,(hl)         7e
        ld a,a            7f
        add a,b           80
        add a,c           81
        add a,d           82
        add a,e           83
        add a,h           84
        add a,l           85
        add a,(hl)        86
        add a,a           87
        adc a,b           88
        adc a,c           89
        adc a,d           8a
        adc a,e           8b
        adc a,h           8c
        adc a,l           8d
        adc a,(hl)        8e
        adc a,a           8f
        sub b             90
        sub c             91
        sub d             92
        sub e             93
        sub h             94
        sub l             95
        sub (hl)          96
        sub a             97
        sbc b             98
        sbc c             99
        sbc d             9a
        sbc e             9b
        sbc h             9c
        sbc l             9d
        sbc (hl)          9e
        sbc a             9f
        and b             a0
        and c             a1
        and d             a2
        and e             a3
        and h             a4
        and l             a5
        and (hl)          a6
        and a             a7
        xor b             a8
        xor c             a9
        xor d             aa
        xor e             ab
        xor h             ac
        xor l             ad
        xor (hl)          ae
        xor a             af
        or b              b0
        or c              b1
        or d              b2
        or e              b3
        or h              b4
        or l              b5
        or (hl)           b6
        or a              b7
        cp b              b8
        cp c              b9
        cp d              ba
        cp e              bb
        cp h              bc
        cp l              bd
        cp (hl)           be
        cp a              bf
        ret nz            c0
        pop bc            c1
        jp nz,$+3         c2
        jp $+3            c3
        call nz,nn        c4 n  n
        push bc           c5
        add a,n           c6 n
        rst 0             c7
        ret z             c8
        ret               c9
        jp z,$+3          ca
        rlc b             cb 00
        rlc c             cb 01
        rlc d             cb 02
        rlc e             cb 03
        rlc h             cb 04
        rlc l             cb 05
        rlc (hl)          cb 06
        rlc a             cb 07
        rrc b             cb 08
        rrc c             cb 09
        rrc d             cb 0a
        rrc e             cb 0b
        rrc h             cb 0c
        rrc l             cb 0d
        rrc (hl)          cb 0e
        rrc a             cb 0f
        rl  b             cb 10
        rl  c             cb 11
        rl  d             cb 12
        rl  e             cb 13
        rl  h             cb 14
        rl  l             cb 15
        rl  (hl)          cb 16
        rl  a             cb 17
        rr  b             cb 18
        rr  c             cb 19
        rr  d             cb 1a
        rr  e             cb 1b
        rr  h             cb 1c
        rr  l             cb 1d
        rr  (hl)          cb 1e
        rr  a             cb 1f
        sla b             cb 20
        sla c             cb 21
        sla d             cb 22
        sla e             cb 23
        sla h             cb 24
        sla l             cb 25
        sla (hl)          cb 26
        sla a             cb 27
        sra b             cb 28
        sra c             cb 29
        sra d             cb 2a
        sra e             cb 2b
        sra h             cb 2c
        sra l             cb 2d
        sra (hl)          cb 2e
        sra a             cb 2f
        srl b             cb 38
        srl c             cb 39
        srl d             cb 3a
        srl e             cb 3b
        srl h             cb 3c
        srl l             cb 3d
        srl (hl)          cb 3e
        srl a             cb 3f
        bit 0,b           cb 40
        bit 0,c           cb 41
        bit 0,d           cb 42
        bit 0,e           cb 43
        bit 0,h           cb 44
        bit 0,l           cb 45
        bit 0,(hl)        cb 46
        bit 0,a           cb 47
        bit 1,b           cb 48
        bit 1,c           cb 49
        bit 1,d           cb 4a
        bit 1,e           cb 4b
        bit 1,h           cb 4c
        bit 1,l           cb 4d
        bit 1,(hl)        cb 4e
        bit 1,a           cb 4f
        bit 2,b           cb 50
        bit 2,c           cb 51
        bit 2,d           cb 52
        bit 2,e           cb 53
        bit 2,h           cb 54
        bit 2,l           cb 55
        bit 2,(hl)        cb 56
        bit 2,a           cb 57
        bit 3,b           cb 58
        bit 3,c           cb 59
        bit 3,d           cb 5a
        bit 3,e           cb 5b
        bit 3,h           cb 5c
        bit 3,l           cb 5d
        bit 3,(hl)        cb 5e
        bit 3,a           cb 5f
        bit 4,b           cb 60
        bit 4,c           cb 61
        bit 4,d           cb 62
        bit 4,e           cb 63
        bit 4,h           cb 64
        bit 4,l           cb 65
        bit 4,(hl)        cb 66
        bit 4,a           cb 67
        bit 5,b           cb 68
        bit 5,c           cb 69
        bit 5,d           cb 6a
        bit 5,e           cb 6b
        bit 5,h           cb 6c
        bit 5,l           cb 6d
        bit 5,(hl)        cb 6e
        bit 5,a           cb 6f
        bit 6,b           cb 70
        bit 6,c           cb 71
        bit 6,d           cb 72
        bit 6,e           cb 73
        bit 6,h           cb 74
        bit 6,l           cb 75
        bit 6,(hl)        cb 76
        bit 6,a           cb 77
        bit 7,b           cb 78
        bit 7,c           cb 79
        bit 7,d           cb 7a
        bit 7,e           cb 7b
        bit 7,h           cb 7c
        bit 7,l           cb 7d
        bit 7,(hl)        cb 7e
        bit 7,a           cb 7f
        res 0,b           cb 80
        res 0,c           cb 81
        res 0,d           cb 82
        res 0,e           cb 83
        res 0,h           cb 84
        res 0,l           cb 85
        res 0,(hl)        cb 86
        res 0,a           cb 87
        res 1,b           cb 88
        res 1,c           cb 89
        res 1,d           cb 8a
        res 1,e           cb 8b
        res 1,h           cb 8c
        res 1,l           cb 8d
        res 1,(hl)        cb 8e
        res 1,a           cb 8f
        res 2,b           cb 90
        res 2,c           cb 91
        res 2,d           cb 92
        res 2,e           cb 93
        res 2,h           cb 94
        res 2,l           cb 95
        res 2,(hl)        cb 96
        res 2,a           cb 97
        res 3,b           cb 98
        res 3,c           cb 99
        res 3,d           cb 9a
        res 3,e           cb 9b
        res 3,h           cb 9c
        res 3,l           cb 9d
        res 3,(hl)        cb 9e
        res 3,a           cb 9f
        res 4,b           cb a0
        res 4,c           cb a1
        res 4,d           cb a2
        res 4,e           cb a3
        res 4,h           cb a4
        res 4,l           cb a5
        res 4,(hl)        cb a6
        res 4,a           cb a7
        res 5,b           cb a8
        res 5,c           cb a9
        res 5,d           cb aa
        res 5,e           cb ab
        res 5,h           cb ac
        res 5,l           cb ad
        res 5,(hl)        cb ae
        res 5,a           cb af
        res 6,b           cb b0
        res 6,c           cb b1
        res 6,d           cb b2
        res 6,e           cb b3
        res 6,h           cb b4
        res 6,l           cb b5
        res 6,(hl)        cb b6
        res 6,a           cb b7
        res 7,b           cb b8
        res 7,c           cb b9
        res 7,d           cb ba
        res 7,e           cb bb
        res 7,h           cb bc
        res 7,l           cb bd
        res 7,(hl)        cb be
        res 7,a           cb bf
        set 0,b           cb c0
        set 0,c           cb c1
        set 0,d           cb c2
        set 0,e           cb c3
        set 0,h           cb c4
        set 0,l           cb c5
        set 0,(hl)        cb c6
        set 0,a           cb c7
        set 1,b           cb c8
        set 1,c           cb c9
        set 1,d           cb ca
        set 1,e           cb cb
        set 1,h           cb cc
        set 1,l           cb cd
        set 1,(hl)        cb ce
        set 1,a           cb cf
        set 2,b           cb d0
        set 2,c           cb d1
        set 2,d           cb d2
        set 2,e           cb d3
        set 2,h           cb d4
        set 2,l           cb d5
        set 2,(hl)        cb d6
        set 2,a           cb d7
        set 3,b           cb d8
        set 3,c           cb d9
        set 3,d           cb da
        set 3,e           cb db
        set 3,h           cb dc
        set 3,l           cb dd
        set 3,(hl)        cb de
        set 3,a           cb df
        set 4,b           cb e0
        set 4,c           cb e1
        set 4,d           cb e2
        set 4,e           cb e3
        set 4,h           cb e4
        set 4,l           cb e5
        set 4,(hl)        cb e6
        set 4,a           cb e7
        set 5,b           cb e8
        set 5,c           cb e9
        set 5,d           cb ea
        set 5,e           cb eb
        set 5,h           cb ec
        set 5,l           cb ed
        set 5,(hl)        cb ee
        set 5,a           cb ef
        set 6,b           cb f0
        set 6,c           cb f1
        set 6,d           cb f2
        set 6,e           cb f3
        set 6,h           cb f4
        set 6,l           cb f5
        set 6,(hl)        cb f6
        set 6,a           cb f7
        set 7,b           cb f8
        set 7,c           cb f9
        set 7,d           cb fa
        set 7,e           cb fb
        set 7,h           cb fc
        set 7,l           cb fd
        set 7,(hl)        cb fe
        set 7,a           cb ff
        call z,nn         cc n  n
        call nn           cd n  n
        adc a,n           ce n
        rst 8h            cf
        ret nc            d0
        pop de            d1
        jp nc,$+3         d2
        out (n),a         d3 n
        call nc,nn        d4 n  n
        call nc,nn        d4 n  n
        push de           d5
        sub n             d6 n
        rst 10h           d7
        ret c             d8
        en                d9
        jp c,$+3          da
        in a,(n)          db n
        call c,nn         dc n  n
        add ix,bc         dd 09
        add ix,de         dd 19
        ld ix,nn          dd 21 n  n
        ld (nn),ix        dd 22 n  n
        inc ix            dd 23
        add ix,ix         dd 29
        ld ix,(nn)        dd 2a n  n
        dec ix            dd 2b
        inc (ix+n)        dd 34 n
        dec (ix+n)        dd 35 n
        ld (ix+n),n       dd 36 n  n
        add ix,sp         dd 39
        ld b,(ix+n)       dd 46 n
        ld c,(ix+n)       dd 4e n
        ld d,(ix+n)       dd 56 n
        ld e,(ix+n)       dd 5e n
        ld h,(ix+n)       dd 66 n
        ld l,(ix+n)       dd 6e n
        ld (ix+n),b       dd 70 n
        ld (ix+n),c       dd 71 n
        ld (ix+n),d       dd 72 n
        ld (ix+n),e       dd 73 n
        ld (ix+n),h       dd 74 n
        ld (ix+n),l       dd 75 n
        ld (ix+n),a       dd 77 n
        ld a,(ix+n)       dd 7e n
        add a,(ix+n)      dd 86 n
        adc a,(ix+n)      dd 8e n
        sub (ix+n)        dd 96 n
        sbc a,(ix+n)      dd 9e n
        and (ix+n)        dd a6 n
        xor (ix+n)        dd ae n
        or (ix+n)         dd b6 n
        cp (ix+n)         dd be n
        rlc (ix+n)        dd cb n  06
        rrc (ix+n)        dd cb n  0e
        rl (ix+n)         dd cb n  16
        rr (ix+n)         dd cb n  1e
        sla (ix+n)        dd cb n  26
        sra (ix+n)        dd cb n  2e
        bit 0,(ix+n)      dd cb n  46
        bit 1,(ix+n)      dd cb n  4e
        bit 2,(ix+n)      dd cb n  56
        bit 3,(ix+n)      dd cb n  5e
        bit 4,(ix+n)      dd cb n  66
        bit 5,(ix+n)      dd cb n  6e
        bit 6,(ix+n)      dd cb n  76
        bit 7,(ix+n)      dd cb n  7e
        res 0,(ix+n)      dd cb n  86
        res 1,(ix+n)      dd cb n  8e
        res 2,(ix+n)      dd cb n  96
        res 3,(ix+n)      dd cb n  9e
        res 4,(ix+n)      dd cb n  a6
        res 5,(ix+n)      dd cb n  ae
        res 6,(ix+n)      dd cb n  b6
        res 7,(ix+n)      dd cb n  be
        set 0,(ix+n)      dd cb n  c6
        set 1,(ix+n)      dd cb n  ce
        set 2,(ix+n)      dd cb n  d6
        set 3,(ix+n)      dd cb n  de
        set 4,(ix+n)      dd cb n  e6
        set 5,(ix+n)      dd cb n  ee
        set 6,(ix+n)      dd cb n  f6
        set 7,(ix+n)      dd cb n  fe
        pop ix            dd e1
        ex (sp),ix        dd e3
        push ix           dd e5
        jp (ix)           dd e9
        ld sp,ix          dd f9
        sbc a,n           de n
        rst 18h           df
        ret po            e0
        pop hl            e1
        jp po,$+3         e2
        ex (sp),hl        e3
        call po,nn        e4 n  n
        push hl           e5
        and n             e6 n
        rst 20h           e7
        ret pe            e8
        jp (hl)           e9
        jp pe,$+3         ea
        ex de,hl          eb
        call pe,nn        ec n  n
        in b,(c)          ed 40
        out (c),b         ed 41
        sbc hl,bc         ed 42
        ld (nn),bc        ed 43 n  n
        neg               ed 44
        retn              ed 45
        im 0              ed 46
        ld i,a            ed 47
        in c,(c)          ed 48
        out (c),c         ed 49
        adc hl,bc         ed 4a
        ld bc,(nn)        ed 4b n  n
        reti              ed 4d
        in d,(c)          ed 50
        out (c),d         ed 51
        sbc hl,de         ed 52
        ld (nn),de        ed 53 n  n
        im 1              ed 56
        ld a,i            ed 57
        in e,(c)          ed 58
        out (c),e         ed 59
        adc hl,de         ed 5a
        ld de,(nn)        ed 5b n  n
        im 2              ed 5e
        in h,(c)          ed 60
        out (c),h         ed 61
        sbc hl,hl         ed 62
        rrd               ed 67
        in l,(c)          ed 68
        out (c),l         ed 69
        adc hl,hl         ed 6a
        rld               ed 6f
        sbc hl,sp         ed 72
        ld (nn),sp        ed 73 n  n
        in a,(c)          ed 78
        out (c),a         ed 79
        adc hl,sp         ed 7a
        ld sp,(nn)        ed 7b n  n
        ldi               ed a0
        cpi               ed a1
        ini               ed a2
        outi              ed a3
        ldd               ed a8
        cpd               ed a9
        ind               ed aa
        outd              ed ab
        ldir              ed b0
        cpir              ed b1
        inir              ed b2
        otir              ed b3
        lddr              ed b8
        cpdr              ed b9
        indr              ed ba
        otdr              ed bb
        xor n             ee n
        rst 28h           ef
        ret p             f0
        pop af            f1
        jp p,$+3          f2
        di                f3
        call p,nn         f4 n  n
        push af           f5
        or n              f6 n
        rst 30h           f7
        ret m             f8
        ld sp,hl          f9
        jp m,$+3          fa
        ei                fb
        call m,nn         fc n  n
        add iy,bc         fd 09
        add iy,de         fd 19
        ld iy,nn          fd 21 n  n
        ld (nn),iy        fd 22 n  n
        inc iy            fd 23
        add iy,iy         fd 29
        ld iy,(nn)        fd 2a n  n
        dec iy            fd 2b
        inc (iy+n)        fd 34 n
        dec (iy+n)        fd 35 n
        ld (iy+n),n       fd 36 n  n
        add iy,sp         fd 39
        ld b,(iy+n)       fd 46 n
        ld c,(iy+n)       fd 4e n
        ld d,(iy+n)       fd 56 n
        ld e,(iy+n)       fd 5e n
        ld h,(iy+n)       fd 66 n
        ld l,(iy+n)       fd 6e n
        ld (iy+n),b       fd 70 n
        ld (iy+n),c       fd 71 n
        ld (iy+n),d       fd 72 n
        ld (iy+n),e       fd 73 n
        ld (iy+n),h       fd 74 n
        ld (iy+n),l       fd 75 n
        ld (iy+n),a       fd 77 n
        ld a,(iy+n)       fd 7e n
        add a,(iy+n)      fd 86 n
        adc a,(iy+n)      fd 8e n
        sub (iy+n)        fd 96 n
        sbc a,(iy+n)      fd 9e n
        and (iy+n)        fd a6 n
        xor (iy+n)        fd ae n
        or (iy+n)         fd b6 n
        cp (iy+n)         fd be n
        rlc (iy+n)        fd cb n  06
        rrc (iy+n)        fd cb n  0e
        rl (iy+n)         fd cb n  16
        rr (iy+n)         fd cb n  1e
        sla (iy+n)        fd cb n  26
        sra (iy+n)        fd cb n  2e
        bit 0,(iy+n)      fd cb n  46
        bit 1,(iy+n)      fd cb n  4e
        bit 2,(iy+n)      fd cb n  56
        bit 3,(iy+n)      fd cb n  5e
        bit 4,(iy+n)      fd cb n  66
        bit 5,(iy+n)      fd cb n  6e
        bit 6,(iy+n)      fd cb n  76
        bit 7,(iy+n)      fd cb n  7e
        res 0,(iy+n)      fd cb n  86
        res 1,(iy+n)      fd cb n  8e
        res 2,(iy+n)      fd cb n  96
        res 3,(iy+n)      fd cb n  9e
        res 4,(iy+n)      fd cb n  a6
        res 5,(iy+n)      fd cb n  ae
        res 6,(iy+n)      fd cb n  b6
        res 7,(iy+n)      fd cb n  be
        set 0,(iy+n)      fd cb n  c6
        set 1,(iy+n)      fd cb n  ce
        set 2,(iy+n)      fd cb n  d6
        set 3,(iy+n)      fd cb n  de
        set 4,(iy+n)      fd cb n  e6
        set 5,(iy+n)      fd cb n  ee
        set 6,(iy+n)      fd cb n  f6
        set 7,(iy+n)      fd cb n  fe
        pop iy            fd e1
        ex (sp),iy        fd e3
        push iy           fd e5
        jp (iy)           fd e9
        ld sp,iy          fd f9
        cp n              fe n
        rst 38h           ff


More from z80 » Opcodes
Opcodes // Opcodes Sorted By Value // Opcodes Sorted By Name