Z80PCRD
Z80PCRD
Z80PCRD
LD LD LD LD LD LD LD LD LD LD LD
PROGRAMMING
A B 7F 78 47 40 4F 48 57 50 5F 58 67 60 6F 68 77 70 02 12 32XXXX C 79 41 49 51 59 61 69 71 D 7A 42 4A 52 5A 62 6A 72 E 7B 43 4B 53 5B 63 6B 73 H 7C 44 4C 54 5C 64 6C 74 L 7D 45 4D 55 5D 65 6D 75
CARD
(HL) (BC) (DE) 7E 0A 1A 46 4E 56 5E 66 6E (nn) n 3AXXXX 3EXX 06XX 0EXX 16XX 1EXX 26XX 2EXX 36XX
8-BIT LOAD A,. B,. C,. D,. E,. H,. L,. (HL), . (BC) , . (DE) , . (nn) , .
CPD EDA9 * * CPDR EDB9 * * 8-BIT INPUT &OUTPUT A B IN . , (C) ED78 ED40 OUT (C) , . ED79 ED41 IN A , (n) DBXX OUT (n) , A D3XX BLOCK TRANSFER I/O INI INIR IND INDR OUTI OTIR OUTD OTDR EDA2 EDB2 EDAA EDBA EDA3 EDB3 EDAB EDBB S ? ? ? ? ? ? ? ? -
* * C ED48 ED49 -
* * D ED50 ED51 -
1 1
E ED58 ED59 -
CP A,(HL); DEC HL; DEC BC continue until A=(HL) or BC=0 is not met H ED60 ED61 L ED68 ED69
LD LD LD LD
Z * 1 * 1 * 1 * 1
H ? ? ? ? ? ? ? ?
P/V ? ? ? ? ? ? ? ?
N 1 1 1 1 1 1 1 1
C -
B: C: HL:
LD (IX+dd) , n
DD36ddXX
LD (IY+dd) , n FD36ddXX
SPECIAL 8-BIT LD LD LD LD A,I A,R I ,A R,A ED57 ED5F ED47 ED4F S * * Z * * H 0 0 P/V * * N 0 0 C -
8-BIT ARITHMETIC & LOGIC B C ADD A,. . 80 81 ADC A,. . 88 89 SUB . . 90 91 SBC A,. . 98 99 AND . . A0 A1 XOR . . A8 A9 OR . . B0 B1 CP . . B8 B9 INC . 04 0C DEC . 05 0D IY FD21XXXX FD2AXXXX FD22XXXX FDF9 S * * Z * *
D 82 8A 92 9A A2 AA B2 BA 14 15
E 83 8B 93 9B A3 AB B3 BB 1C 1D N * 1 *
H 84 8C 94 9C A4 AC B4 BC 24 25
L 85 8D 95 9D A5 AD B5 BD 2C 2D
(HL) 86 8E 96 9E A6 AE B6 BE 34 35 N 1 1
A 87 8F 97 9F A7 AF B7 BF 3C 3D
(IX+dd) (IY+dd) DD86dd FD86dd DD8Edd FD8Edd DD96dd FD96dd DD9Edd FD9Edd DDA6dd FDA6dd DDAEdd FDAEdd DDB6dd FDB6dd DDBEdd FDBEdd DD34dd FD34dd DD35dd FD35dd
S * * * * * * * * * *
Z * * * * * * * * * *
H * * * * 1 1 1 * * *
P/V * * * * * * * * * *
N 0 0 1 1 0 0 0 1 0 1
C * * * * 0 0 0 * -
16-BIT LOAD LD LD LD LD . , nn . , (nn) (nn) , . SP , . BC 01XXXX ED4BXXXX ED43XXXX DE 11XXXX ED58XXXX ED53XXXX HL 21XXXX 2AXXXX 22XXXX F9 SP 31XXXX ED7BXXXX ED73XXXX IX DD21XXXX DD2AXXXX DD22XXXX DDF9 DAA 27 CPL 2F NEG ED44
P/V * *
C * *
PUSH . POP .
BC C5 C1
DE D5 D1
HL E5 E1
AF F5 F1
IX DDE5 DDE1
IY FDE5 FDE1
E3 DDE3 FDE3
EX DE , HL EX AF , AF' EXX
EB 08 D9
16-BIT ARITHEMTIC AND LOGIC BC DE INC . 03 13 DEC . 0B 1B ADD HL , . 09 19 ADC HL , . ED4A ED5A SBC HL , . ED42 ED52 ADD IX , . DD09 DD19 ADD IY , . FD09 FD19
HL 23 2B 29 ED6A ED62
IX DD23 DD2B
IY FD23 FD2B
DD29 FD29
S * * -
Z * * -
H P/V * * * * * * * -
N 0 0 1 0 0
C * * * * *
ROTATE AND SHIFT BLOCK TRANSFER & SEARCH S LDI EDA0 LDIR EDB0 LDD EDA8 LDDR EDB8 CPI EDA1 * CPIR EDB1 * Z * * N 0 0 0 0 * * P/V * 0 * 0 * * N 0 0 0 0 1 1 C Az utasts tartalma LD (DE),(HL); INC DE; INC HL; DEC BC continue until BC=0 is not met LD (DE),(HL); DEC DE; DEC HL; DEC BC continue until BC=0 is not met CP A,(HL); INC HL; DEC BC continue until A=(HL) or BC=0 is not met RR . RL . RRC . RLC . SRA . SLA . SRL . B CB18 CB10 CB08 CB00 CB28 CB20 CB38 C CB19 CB11 CB09 CB01 CB29 CB21 CB39 D CB1A CB12 CB0A CB02 CB2A CB22 CB3A E CB1B CB13 CB0B CB03 CB2B CB23 CB3B H CB1C CB14 CB0C CB04 CB2C CB24 CB3C L CB1D CB15 CB0D CB05 CB2D CB25 CB3D (HL) CB1E CB16 CB0E CB06 CB2E CB26 CB3E A CB1F CB17 CB0F CB07 CB2F CB27 CB3F (IX+dd) DDCBdd1E DDCBdd16 DDCBdd0E DDCBdd06 DDCBdd2E DDCBdd26 DDCBdd3E (IY+dd) FDCBdd1E FDCBdd16 FDCBdd0E FDCBdd06 FDCBdd2E FDCBdd26 FDCBdd3E
RRC / RLC
S *
Z *
H 0
P/V *
N 0
C *
7 7 7
0 0 0 0
CY CY CY CY
CY CY CY 7
7 7 0
0 0
* * *
* * *
S S * *
0 0 0
* * *
Z Z * *
0 0 0
H 0 0 0 0 H 0 0
* * *
P/V P/V * *
cc JP cc , nn CALL cc , nn RET cc , JR cc , nn
0
RST . DJNZ, RETI RETN nn
0
N 0 0 0 0 N 0 0
0F 07 1F 17
C * * * * C -
MISCELLANEOUS NOP HALT CCF SCF EI DI IM 0 IM 1 IM 2 CODING r reg. B 000 C 001 D 010 E 011 H 100 L 101 A 111 Code 00 76 3F 37 FB F3 ED46 ED56 ED5E S Z H * 0 P/V N 0 0 C * 1 -
RLD RRD
ED6F ED67
BIT MANIPULATING B BIT 0,. CB40 BIT 1,. CB48 BIT 2,. CB50 BIT 3,. CB58 BIT 4,. CB60 BIT 5,. CB68 BIT 6,. CB70 BIT 7,. CB78 RES 0,. CB80 RES 1,. CB88 RES 2,. CB90 RES 3,. CB98 RES 4,. CBA0 RES 5,. CBA8 RES 6,. CBB0 RES 7,. CBB8 SET 0,. CBC0 SET 1,. CBC8 SET 2,. CBD0 SET 3,. CBD8 SET 4,. CBE0 SET 5,. CBE8 SET 6,. CBF0 SET 7,. CBF8 S ? Z * -
C CB41 CB49 CB51 CB59 CB61 CB69 CB71 CB79 CB81 CB89 CB91 CB99 CBA1 CBA9 CBB1 CBB9 CBC1 CBC9 CBD1 CBD9 CBE1 CBE9 CBF1 CBF9 H 1 -
D CB42 CB4A CB52 CB5A CB62 CB6A CB72 CB7A CB82 CB8A CB92 CB9A CBA2 CBAA CBB2 CBBA CBC2 CBCA CBD2 CBDA CBE2 CBEA CBF2 CBFA P/V ? -
E CB43 CB4B CB53 CB5B CB63 CB6B CB73 CB7B CB83 CB8B CB93 CB9B CBA3 CBAB CBB3 CBBB CBC3 CBCB CBD3 CBDB CBE3 CBEB CBF3 CBFB
H CB44 CB4C CB54 CB5C CB64 CB6C CB74 CB7C CB84 CB8C CB94 CB9C CBA4 CBAC CBB4 CBBC CBC4 CBCC CBD4 CBDC CBE4 CBEC CBF4 CBFC N 0 -
L CB45 CB4D CB55 CB5D CB65 CB6D CB75 CB7D CB85 CB8D CB95 CB9D CBA5 CBAD CBB5 CBBD CBC5 CBCD CBD5 CBDD CBE5 CBED CBF5 CBFD C -
(HL) CB46 CB4E CB56 CB5E CB66 CB6E CB76 CB7E CB86 CB8E CB96 CB9E CBA6 CBAE CBB6 CBBE CBC6 CBCE CBD6 CBDE CBE6 CBEE CBF6 CBFE
A CB47 CB4F CB57 CB5F CB67 CB6F CB77 CB7F CB87 CB8F CB97 CB9F CBA7 CBAF CBB7 CBBF CBC7 CBCF CBD7 CBDF CBE7 CBEF CBF7 CBFF
(IX+dd) DDCBdd46 DDCBdd4E DDCBdd56 DDCBdd5E DDCBdd66 DDCBdd6E DDCBdd76 DDCBdd7E DDCBdd86 DDCBdd8E DDCBdd96 DDCBdd9E DDCBddA6 DDCBddAE DDCBddB6 DDCBddBE DDCBddC6 DDCBddCE DDCBddD6 DDCBddDE DDCBddE6 DDCBddEE DDCBddF6 DDCBddFE
(IY+dd) FDCBdd46 FDCBdd4E FDCBdd56 FDCBdd5E FDCBdd66 FDCBdd6E FDCBdd76 FDCBdd7E FDCBdd86 FDCBdd8E FDCBdd96 FDCBdd9E FDCBddA6 FDCBddAE FDCBddB6 FDCBddBE FDCBddC6 FDCBddCE FDCBddD6 FDCBddDE FDCBddE6 FDCBddEE FDCBddF6 FDCBddFE
dd,ss BC DE HL SP rr BC DE IY SP
reg.pair 00 01 10 11 reg.pair 00 01 10 11
pp BC DE IY SP qq BC DE IY AF
reg.pair 00 01 10 11 reg.pair 00 01 10 11
cc NZ Z NC C
00 01 10 11
cc NZ Z NC C PO PE P M
X: 1:
0: *:
-: ?:
unchanged unknown
ASCII CODE (7-BIT) Binary Most significant digit (or nibble) 0000 0001 0010 0011 0100 0101 0110 0111 0000 Hex. 0 0 NUL 1 DLE 2 SP 3 0 4 @ 5 P 6 ' 7 p 0001 1 SOH DC1 ! 1 A Q a q 0010 2 STX DC2 " 2 B R b r 0011 3 ETX DC3 # 3 C S c s Least significant digit (or nibble) 0100 0101 0110 0111 1000 1001 1010 4 5 6 7 8 9 A EOT ENQ ACK BEL BS HT LF DC4 NAK SYN ETB CAN EM SUB $ % & ' ( ) * 4 5 6 7 8 9 : D E F G H I J T U V W X Y Z d e f g h i j t u v w x y z 1011 B VT ESC + ; K [ :k { 1100 C FF FS , < L \ 1 | 1101 D CR GS = M ] m } 1110 E SO RS . > N ^ n DEL 1111 F S1 LS / ? O o
JUMP AND CALL JP nn CALL nn RET JR nn C3XXXX CDXXXX C9 18XX (HL) E9 (IX) DDE9 (IY) FDE9