z80opcod, source codes,dokumenty

[ Pobierz całość w formacie PDF ]
+-----------------------------------------+| Zilog Z80 Instructions sorted by opcode |+-----------------------------------------+This should be the complete list of all the opcodes of the Zilog Z80.Note:- If an EDxx instruction is not listed, it should operate as two NOPs.- If a DDxx or FDxx instruction is not listed, it should operate aswithout the DD or FD prefix, and the DD or FD prefix itself shouldoperate as a NOP.- * means undocumented.- LD A,RLC (IX+d) means that the result of RLC (IX+d) is not only storedin (IX+d), but also in A. Double value for money !- SLL x operates the same as SLA x, except that SLL inserts 1 to the left.- OUT (C),0 always outs zero.- IN F,(C) / IN (C) does not store the result from the input. It onlyaffects the flags, as the other IN r,(C) instructions do. These twomnemonics both refer to the same undocumented instruction.Version 0.2 September 1998, by Sean Young (sean@msxnet.org)You can find the latest version at:Since I'm a lazy bastard, I haven't finished the T/M/M1 list yet.Opcode Mnemonic T M M1 Notes-------------------------------------------------------------------------00 NOP 4 1 101 n n LD BC,nn 10 3 102 LD (BC),A 7 2 103 INC BC 6 1 104 INC B 4 1 105 DEC B 4 1 106 n LD B,n 7 2 107 RLCA 4 1 108 EX AF,AF? 4 1 109 ADD HL,BC 11 3 10A LD A,(BC) 7 2 10B DEC BC 6 1 10C INC C 4 1 10D DEC C 4 1 10E n LD C,n 7 2 10F RRCA 4 1 110 e DJNZ (PC+e) 8/13 2/3 1/1 (met/not met)11 n n LD DE,nn 10 3 112 LD (DE),A 7 2 113 INC DE 6 1 114 INC D 4 1 115 DEC D 4 1 116 n LD D,n 7 2 117 RLA 4 1 118 e JR (PC+e) 12 3 119 ADD HL,DE 11 3 11A LD A,(DE) 7 2 11B DEC DE 6 1 11C INC E 4 1 11D DEC E 4 1 11E n LD E,n 7 2 11F RRA 4 1 120 e JR NZ,(PC+e) 12/7 3/2 1/1 (met/not met)21 n n LD HL,nn 10 3 122 n n LD (nn),HL 16 5 323 INC HL 6 1 124 INC H 4 1 125 DEC H 4 1 126 n LD H,n 7 2 127 DAA 4 1 128 e JR Z,(PC+e) 12/7 3/2 1/1 (met/not met)29 ADD HL,HL 11 3 12A n n LD HL,(nn) 16 5 12B DEC HL 6 1 12C INC L 4 1 12D DEC L 4 1 12E n LD L,n 7 2 12F CPL 4 1 130 e JR NC,(PC+e) 12/7 3/2 1/1 (met/not met)31 n n LD SP,nn 10 3 132 n n LD (nn),A 13 4 133 INC SP 6 1 134 INC (HL) 11 3 135 DEC (HL) 11 3 136 n LD (HL),n 10 3 137 SCF 4 1 138 e JR C,(PC+e) 12/7 3/2 1/1 (met/not met)39 ADD HL,SP 11 3 13A n n LD A,(nn) 13 4 13B DEC SP 6 1 13C INC A 4 1 13D DEC A 4 1 13E n LD A,n 7 2 13F CCF 4 1 140 LD B,B 4 1 141 LD B,C 4 1 142 LD B,D 4 1 143 LD B,E 4 1 144 LD B,H 4 1 145 LD B,L 4 1 146 LD B,(HL) 7 2 147 LD B,A 4 1 148 LD C,B 4 1 149 LD C,C 4 1 14A LD C,D 4 1 14B LD C,E 4 1 14C LD C,H 4 1 14D LD C,L 4 1 14E LD C,(HL) 7 2 14F LD C,A 4 1 150 LD D,B 4 1 151 LD D,C 4 1 152 LD D,D 4 1 153 LD D,E 4 1 154 LD D,H 4 1 155 LD D,L 4 1 156 LD D,(HL) 7 2 157 LD D,A 4 1 158 LD E,B 4 1 159 LD E,C 4 1 15A LD E,D 4 1 15B LD E,E 4 1 15C LD E,H 4 1 15D LD E,L 4 1 15E LD E,(HL) 7 2 15F LD E,A 4 1 160 LD H,B 4 1 161 LD H,C 4 1 162 LD H,D 4 1 163 LD H,E 4 1 164 LD H,H 4 1 165 LD H,L 4 1 166 LD H,(HL) 7 2 167 LD H,A 4 1 168 LD L,B 4 1 169 LD L,C 4 1 16A LD L,D 4 1 16B LD L,E 4 1 16C LD L,H 4 1 16D LD L,L 4 1 16E LD L,(HL) 7 2 16F LD L,A 4 1 170 LD (HL),B 7 2 171 LD (HL),C 7 2 172 LD (HL),D 7 2 173 LD (HL),E 7 2 174 LD (HL),H 7 2 175 LD (HL),L 7 2 176 HALT 4 1 1 (repeated till next int)77 LD (HL),A 7 2 178 LD A,B 4 1 179 LD A,C 4 1 17A LD A,D 4 1 17B LD A,E 4 1 17C LD A,H 4 1 17D LD A,L 4 1 17E LD A,(HL) 7 2 17F LD A,A 4 1 180 ADD A,B 4 1 181 ADD A,C 4 1 182 ADD A,D 4 1 183 ADD A,E 4 1 184 ADD A,H 4 1 185 ADD A,L 4 1 186 ADD A,(HL) 7 2 187 ADD A,A 4 1 188 ADC A,B 4 1 189 ADC A,C 4 1 18A ADC A,D 4 1 18B ADC A,E 4 1 18C ADC A,H 4 1 18D ADC A,L 4 1 18E ADC A,(HL) 7 2 18F ADC A,A 4 1 190 SUB B 4 1 191 SUB C 4 1 192 SUB D 4 1 193 SUB E 4 1 194 SUB H 4 1 195 SUB L 4 1 196 SUB (HL) 7 2 197 SUB A 4 1 198 SBC A,B 4 1 199 SBC A,C 4 1 19A SBC A,D 4 1 19B SBC A,E 4 1 19C SBC A,H 4 1 19D SBC A,L 4 1 19E SBC A,(HL) 7 2 19F SBC A,A 4 1 1A0 AND B 4 1 1A1 AND C 4 1 1A2 AND D 4 1 1A3 AND E 4 1 1A4 AND H 4 1 1A5 AND L 4 1 1A6 AND (HL) 7 2 1A7 AND A 4 1 1A8 XOR B 4 1 1A9 XOR C 4 1 1AA XOR D 4 1 1AB XOR E 4 1 1AC XOR H 4 1 1AD XOR L 4 1 1AE XOR (HL) 7 2 1AF XOR A 4 1 1B0 OR B 4 1 1B1 OR C 4 1 1B2 OR D 4 1 1B3 OR E 4 1 1B4 OR H 4 1 1B5 OR L 4 1 1B6 OR (HL) 7 2 1B7 OR A 4 1 1B8 CP B 4 1 1B9 CP C 4 1 1BA CP D 4 1 1BB CP E 4 1 1BC CP H 4 1 1BD CP L 4 1 1BE CP (HL) 7 2 1BF CP A 4 1 1C0 RET NZ 11/5 3/1 1/1 (met/not met)C1 POP BC 10 3 1C2 n n JP NZ,(nn) 10 3 1 (met or not)C3 n n JP (nn) 10 3 1C4 n n CALL NZ,(nn) 17/10 5/3 1/1 (met/not met)C5 PUSH BC 11 3 1C6 n ADD A,n 7 2 1C7 RST 0H 11 3 1C8 RET Z 11/5 3/1 1/1 (met/not met)C9 RET 10 3 1CA n n JP Z,(nn) 10 3 1 (always same)CB00 RLC B 8 2 2CB01 RLC C 8 2 2CB02 RLC D 8 2 2CB03 RLC E 8 2 2CB04 RLC H 8 2 2CB05 RLC L 8 2 2CB06 RLC (HL) 15 4 2CB07 RLC A 8 2 2CB08 RRC B 8 2 2CB09 RRC C 8 2 2CB0A RRC D 8 2 2CB0B RRC E 8 2 2CB0C RRC H 8 2 2CB0D RRC L 8 2 2CB0E RRC (HL) 15 4 2CB0F RRC A 8 2 2CB10 RL B 8 2 2CB11 RL C 8 2 2CB12 RL D 8 2 2CB13 RL E 8 2 2CB14 RL H 8 2 2CB15 RL L 8 2 2CB16 RL (HL) 15 4 2CB17 RL A 8 2 2CB18 RR B 8 2 2CB19 RR C 8 2 2CB1A RR D 8 2 2CB1B RR E 8 2 2CB1C RR H 8 2 2CB1D RR L 8 2 2CB1E RR (HL) 15 4 2CB1F RR A 8 2 2CB20 SLA B 8 2 2CB21 SLA C 8 2 2CB22 SLA D 8 2 2CB23 SLA E 8 2 2CB24 SLA H 8 2 2CB25 SLA L 8 2 2CB26 SLA (HL) 15 4 2CB27 SLA A 8 2 2CB28 SRA B 8 2 2CB29 SRA C 8 2 2CB2A SRA D 8 2 2CB2B SRA E 8 2 2CB2C SRA H 8 2 2CB2D SRA L 8 2 2CB2E SRA (HL) 15 4 2CB2F SRA A 8 2 2CB30 SLL B* 8 2 2CB31 SLL C* 8 2 2CB32 SLL D* 8 2 2CB33 SLL E* 8 2 2CB34 SLL H* 8 2 2CB35 SLL L* 8 2 2CB36 SLL (HL)* 15 4 2CB37 SLL A* 8 2 2CB38 SRL B 8 2 2CB39 SRL C 8 2 2CB3A SRL D 8 2 2CB3B SRL E 8 2 2CB3C SRL H 8 2 2CB3D SRL L 8 2 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79 BIT 7,C 8 2 2CB7A BIT 7,D 8 2 2CB7B BIT 7,E 8 2 2CB7C BIT 7,H 8 2 2CB7D BIT 7,L 8 2 2CB7E BIT 7,(HL) 12 3 2CB7F BIT 7,A 8 2 2CB80 RES 0,B 8 2 2CB81 RES 0,C 8 2 2CB82 RES 0,D 8 2 2CB83 RES 0,E 8 2 2CB84 RES 0,H 8 2 2CB85 RES 0,L 8 2 2CB86 RES 0,(HL) 15 4 2CB87 RES 0,A 8 2 2CB88 RES 1,B 8 2 2CB89 RES 1,C 8 2 2CB8A RES 1,D 8 2 2CB8B RES 1,E 8 2 2CB8C RES 1,H 8 2 2CB8D RES 1,L 8 2 2CB8E RES 1,(HL) 15 4 2CB8F RES 1,A 8 2 2CB90 RES 2,B 8 2 2CB91 RES 2,C 8 2 2CB92 RES 2,D 8 2 2CB93 RES 2,E 8 2 2CB94 RES 2,H 8 2 2CB95 RES 2,L 8 2 2CB96 RES 2,(HL) 15 4 2CB97 RES 2,A 8 2 2CB98 RES 3,B 8 2 2CB99 RES 3,C 8 2 2CB9A RES 3,D 8 2 2CB9B RES 3,E 8 2 2CB9C RES 3,H 8 2 2CB9D RES 3,L 8 2 2CB9E RES 3,(HL) 15 4 2CB9F RES 3,A 8 2 2CBA0 RES 4,B 8 2 2CBA1 RES 4,C 8 2 2CBA2 RES 4,D 8 2 2CBA3 RES 4,E 8 2 2CBA4 RES 4,H 8 2 2CBA5 RES 4,L 8 2 2CBA6 RES 4,(HL) 15 4 2CBA7 RES 4,A 8 2 2CBA8 RES 5,B 8 2 2CBA9 RES 5,C 8 2 2CBAA RES 5,D 8 2 2CBAB RES 5,E 8 2 2CBAC RES 5,H 8 2 2CBAD RES 5,L 8 2 2CBAE RES 5,(HL) 15 4 2CBAF RES 5,A 8 2 2CBB0 RES 6,B 8 2 2CBB1 RES 6,C 8 2 2CBB2 RES 6,D 8 2 2CBB3 RES 6,E 8 2 2CBB4 RES 6,H 8 2 2CBB5 RES 6,L 8 2 2CBB6 RES 6,(HL) 15 4 2CBB7 RES 6,A 8 2 2CBB8 RES 7,B 8 2 2CBB9 RES 7,C 8 2 2CBBA RES 7,D 8 2 2CBBB RES 7,E 8 2 2CBBC RES 7,H 8 2 2CBBD RES 7,L 8 2 2CBBE RES 7,(HL) 15 4 2CBBF RES 7,A 8 2 2CBC0 SET 0,B 8 2 2CBC1 SET 0,C 8 2 2CBC2 SET 0,D 8 2 2CBC3 SET 0,E 8 2 2CBC4 SET ... [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • telefongry.keep.pl






  • Formularz

    POst

    Post*

    **Add some explanations if needed