Z80 COMMAND SET
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 0B | 0C | 0D | 0E | 0F |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 00 | NOP | LD | LD | INC | INC | DEC | LD | RLCA | EX | ADD | LD | DEC | INC | DEC | LD | RRCA |
| | |bc,nn |(bc),a| bc | b | b | b,n | |af,af'| hl,bc|a,(bc)| bc | c | c | c,n | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 10 | DJNZ | LD | LD | INC | INC | DEC | LD | RLA | JR | ADD | LD | DEC | INC | DEC | LD | RRA |
| | dis | de,nn|(de),a| de | d | d | d,n | | dis | hl,de|a,(de)| de | e | e | e,n | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 20 | JR | LD | LD | INC | INC | DEC | LD | DAA | JR | ADD | LD | DEC | INC | DEC | LD | CPL |
| |nz,dis| hl,nn|(nn)hl| hl | h | h | h,n | | z,dis| hl,hl|hl(nn)| hl | l | l | l,n | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 30 | JR | LD | LD | INC | INC | DEC | LD | SCF | JR | ADD | LD | DEC | INC | DEC | LD | CCF |
| |nc,dis| sp,nn|(nn),a| sp | (hl) | (hl) |(hl),n| | c,dis| hl,sp|a,(nn)| sp | a | a | a,n | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 40 | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD |
| | b,b | b,c | b,d | b,e | b,h | b,l |b,(hl)| b,a | c,b | c,c | c,d | c,e | c,h | c,l |c,(hl)| c,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 50 | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD |
| | d,b | d,c | d,d | d,e | d,h | d,l |d,(hl)| d,a | e,b | e,c | e,d | e,e | e,h | e,l |e,(hl)| e,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 60 | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD | LD |
| | h,b | h,c | h,d | h,e | h,h | h,l |h,(hl)| h,a | l,b | l,c | l,d | l,e | l,h | l,l |l,(hl)| l,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 70 | LD | LD | LD | LD | LD | LD | HALT | LD | LD | LD | LD | LD | LD | LD | LD | LD |
| |(hl),b|(hl),c|(hl),d|(hl),e|(hl),h|(hl),l| |(hl),a| a,b | a,c | a,d | a,e | a,h | a,l |a,(hl)| a,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 80 | ADD | ADD | ADD | ADD | ADD | ADD | ADD | ADD | ADC | ADC | ADC | ADC | ADC | ADC | ADC | ADC |
| | a,b | a,c | a,d | a,e | a,h | a,l |a,(hl)| a,a | a,b | a,c | a,d | a,e | a,h | a,l |a,(hl)| a,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 90 | SUB | SUB | SUB | SUB | SUB | SUB | SUB | SUB | SBC | SBC | SBC | SBC | SBC | SBC | SBC | SBC |
| | b | c | d | e | h | l | (hl) | a | a,b | a,c | a,d | a,e | a,h | a,l |a,(hl)| a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| A0 | AND | AND | AND | AND | AND | AND | AND | AND | XOR | XOR | XOR | XOR | XOR | XOR | XOR | XOR |
| | b | c | d | e | h | l | (hl) | a | b | c | d | e | h | l | (hl) | a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| B0 | OR | OR | OR | OR | OR | OR | OR | OR | CP | CP | CP | CP | CP | CP | CP | CP |
| | b | c | d | e | h | l | (hl) | a | b | c | d | e | h | l | (hl) | a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| C0 | RET | POP | JP | JP | CALL | PUSH | ADD | RST | RET | RET | JP | **** | CALL | CALL | ADC | RST |
| | nz | bc | nz,nn| nn | nz,nn| bc | a,n | 0h | z | | z,nn | | z,nn | nn | a,n | 8h |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| D0 | RET | POP | JP | OUT | CALL | PUSH | SUB | RST | RET | EXX | JP | IN | CALL | **** | SBC | RST |
| | nc | de | nc,nn| (n),a| nc,nn| de | n | 10h | c | | c,nn | a,(n)| c,nn | | a,n | 18h |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| E0 | RET | POP | JP | EX | CALL | PUSH | AND | RST | RET | JP | JP | EX | CALL | **** | XOR | RST |
| | po | hl | po,nn|(sp)hl| po,nn| hl | n | 20h | pe | (hl) | pe,nn| de,hl| pe,nn| | n | 28h |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| F0 | RET | POP | JP | DI | CALL | PUSH | OR | RST | RET | LD | JP | EI | CALL | **** | CP | RST |
| | p | af | p,nn | | p,nn | af | n | 30h | m |sp,hl | m,nn | | m,nn | | n | 38h |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| CB | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 0B | 0C | 0D | 0E | 0F |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 00 | RLC | RLC | RLC | RLC | RLC | RLC | RLC | RLC | RRC | RRC | RRC | RRC | RRC | RRC | RRC | RRC |
| | b | c | d | e | h | l | (hl) | a | b | c | d | e | h | l | (hl) | a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 10 | RL | RL | RL | RL | RL | RL | RL | RL | RR | RR | RR | RR | RR | RR | RR | RR |
| | b | c | d | e | h | l | (hl) | a | b | c | d | e | h | l | (hl) | a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 20 | SLA | SLA | SLA | SLA | SLA | SLA | SLA | SLA | SRA | SRA | SRA | SRA | SRA | SRA | SRA | SRA |
| | b | c | d | e | h | l | (hl) | a | b | c | d | e | h | l | (hl) | a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 30 | | | | | | | | | SRL | SRL | SRL | SRL | SRL | SRL | SRL | SRL |
| | | | | | | | | | b | c | d | e | h | l | (hl) | a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 40 | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT |
| | 0,b | 0,c | 0,d | 0,e | 0,h | 0,l |0,(hl)| 0,a | 1,b | 1,c | 1,d | 1,e | 1,h | 1,l |1,(hl)| 1,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 50 | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT |
| | 2,b | 2,c | 2,d | 2,e | 2,h | 2,l |2,(hl)| 2,a | 3,b | 3,c | 3,d | 3,e | 3,h | 3,l |3,(hl)| 3,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 60 | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT |
| | 4,b | 4,c | 4,d | 4,e | 4,h | 4,l |4,(hl)| 4,a | 5,b | 5,c | 5,d | 5,e | 5,h | 5,l |5,(hl)| 5,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 70 | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT | BIT |
| | 6,b | 6,c | 6,d | 6,e | 6,h | 6,l |6,(hl)| 6,a | 7,b | 7,c | 7,d | 7,e | 7,h | 7,l |7,(hl)| 7,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 80 | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES |
| | 0,b | 0,c | 0,d | 0,e | 0,h | 0,l |0,(hl)| 0,a | 1,b | 1,c | 1,d | 1,e | 1,h | 1,l |1,(hl)| 1,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 90 | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES |
| | 2,b | 2,c | 2,d | 2,e | 2,h | 2,l |2,(hl)| 2,a | 3,b | 3,c | 3,d | 3,e | 3,h | 3,l |3,(hl)| 3,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| A0 | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES |
| | 4,b | 4,c | 4,d | 4,e | 4,h | 4,l |4,(hl)| 4,a | 5,b | 5,c | 5,d | 5,e | 5,h | 5,l |5,(hl)| 5,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| B0 | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES | RES |
| | 6,b | 6,c | 6,d | 6,e | 6,h | 6,l |6,(hl)| 6,a | 7,b | 7,c | 7,d | 7,e | 7,h | 7,l |7,(hl)| 7,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| C0 | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET |
| | 0,b | 0,c | 0,d | 0,e | 0,h | 0,l |0,(hl)| 0,a | 1,b | 1,c | 1,d | 1,e | 1,h | 1,l |1,(hl)| 1,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| D0 | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET |
| | 2,b | 2,c | 2,d | 2,e | 2,h | 2,l |2,(hl)| 2,a | 3,b | 3,c | 3,d | 3,e | 3,h | 3,l |3,(hl)| 3,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| E0 | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET |
| | 4,b | 4,c | 4,d | 4,e | 4,h | 4,l |4,(hl)| 4,a | 5,b | 5,c | 5,d | 5,e | 5,h | 5,l |5,(hl)| 5,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| F0 | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET | SET |
| | 6,b | 6,c | 6,d | 6,e | 6,h | 6,l |6,(hl)| 6,a | 7,b | 7,c | 7,d | 7,e | 7,h | 7,l |7,(hl)| 7,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| ED | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 0B | 0C | 0D | 0E | 0F |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 00 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 10 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 20 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 30 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 40 | IN | OUT | SBC | LD | NEG | RETN | IM | LD | IN | OUT | ADC | LD | | RETI | | LD |
| | b,(c)| (c),b| hl,bc|(nn)bc| | | 0 | i,a | c,(c)|(c),c | hl,bc|bc(nn)| | | | r,a |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 50 | IN | OUT | SBC | LD | | | IM | LD | IN | OUT | ADC | LD | | | IM | LD |
| | d,(c)| (c),d| hl,de|(nn)de| | | 1 | a,i | e,(c)|(c),e | hl,de|de(nn)| | | 2 | a,r |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 60 | IN | OUT | SBC | LD | | | | RRD | IN | OUT | ADC | LD | | | | RLD |
| | h,(c)| (c),h| hl,hl|(nn)hl| | | | | l,(c)|(c),l | hl,hl|hl(nn)| | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 70 | | | SBC | LD | | | | | IN | OUT | ADC | LD | | | | |
| | | | hl,sp|(nn)sp| | | | | a,(c)|(c),a | hl,sp|sp(nn)| | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 80 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| 90 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| A0 | LDI | CPI | INI | OUTI | | | | | LDD | CPD | IND | OUTD | | | | |
| | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| B0 | LDIR | CPIR | INIR | OTIR | | | | | LDDR | CPDR | INDR | OUTR | | | | |
| | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| C0 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| D0 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| E0 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
| F0 | | | | | | | | | | | | | | | | |
+----+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+
DD -- HL is replaced by IX
FD -- HL is replaced by IY c1
Wyszukiwarka
Podobne podstrony:
Z80Z80 przykladyZ80 2dCharsz80Z80 OptionsZ80 OpcodesZ80 2dDependentz80 softz80 hardZ80 DirectivesMORE Z80z80 2Z80 SyntaxZ80 2dCasewięcej podobnych podstron