Package Opcode Is -- 8080/Z80 opcodes -- Not all Z80 opcode are defined. -- Z-80 Opcodes are based on the TDL mnenomics. -- Copyright 1982, 1984 -- RR Software, Inc., P.O. Box 1512, Madison WI 53701 -- Permission is hereby given to distribute Object Code produced from -- these libraries. LXIB : Constant := 16#01#; LXID : Constant := 16#11#; LXIH : Constant := 16#21#; LXISP: Constant := 16#31#; INRB : Constant := 16#04#; INRC : Constant := 16#0C#; INRD : Constant := 16#14#; INRE : Constant := 16#1C#; INRH : Constant := 16#24#; INRL : Constant := 16#2C#; INRM : Constant := 16#34#; INRA : Constant := 16#3C#; DCRB : Constant := 16#05#; DCRC : Constant := 16#0D#; DCRD : Constant := 16#15#; DCRE : Constant := 16#1D#; DCRH : Constant := 16#25#; DCRL : Constant := 16#2D#; DCRM : Constant := 16#35#; DCRA : Constant := 16#3D#; MVIB : Constant := 16#06#; MVIC : Constant := 16#0E#; MVID : Constant := 16#16#; MVIE : Constant := 16#1E#; MVIH : Constant := 16#26#; MVIL : Constant := 16#2E#; MVIM : Constant := 16#36#; MVIA : Constant := 16#3E#; INXB : Constant := 16#03#; INXD : Constant := 16#13#; INXH : Constant := 16#23#; INXSP: Constant := 16#33#; DCXB : Constant := 16#0B#; DCXD : Constant := 16#1B#; DCXH : Constant := 16#2B#; DCXSP: Constant := 16#3B#; DADB : Constant := 16#09#; DADD : Constant := 16#19#; DADH : Constant := 16#29#; DADSP: Constant := 16#39#; LDAXB: Constant := 16#0A#; LDAXD: Constant := 16#1A#; STAXB: Constant := 16#02#; STAXD: Constant := 16#12#; LHLD : Constant := 16#2A#; SHLD : Constant := 16#22#; LDA : Constant := 16#3A#; STA : Constant := 16#32#; RLC : Constant := 16#07#; RRC : Constant := 16#0F#; RAL : Constant := 16#17#; RAR : Constant := 16#1F#; DAA : Constant := 16#27#; CMA : Constant := 16#2F#; STC : Constant := 16#37#; CMC : Constant := 16#3F#; NOP : Constant := 16#00#; -- Z-80 Insts. EXAF : Constant := 16#08#; DJNZ : Constant := 16#10#; JR : Constant := 16#18#; JRNZ : Constant := 16#20#; JRZ : Constant := 16#28#; JRNC : Constant := 16#30#; JRC : Constant := 16#38#; -- 8080 Insts. MOVBB: Constant := 16#40#; MOVBC: Constant := 16#41#; MOVBD: Constant := 16#42#; MOVBE: Constant := 16#43#; MOVBH: Constant := 16#44#; MOVBL: Constant := 16#45#; MOVBM: Constant := 16#46#; MOVBA: Constant := 16#47#; MOVCB: Constant := 16#48#; MOVCC: Constant := 16#49#; MOVCD: Constant := 16#4A#; MOVCE: Constant := 16#4B#; MOVCH: Constant := 16#4C#; MOVCL: Constant := 16#4D#; MOVCM: Constant := 16#4E#; MOVCA: Constant := 16#4F#; MOVDB: Constant := 16#50#; MOVDC: Constant := 16#51#; MOVDD: Constant := 16#52#; MOVDE: Constant := 16#53#; MOVDH: Constant := 16#54#; MOVDL: Constant := 16#55#; MOVDM: Constant := 16#56#; MOVDA: Constant := 16#57#; MOVEB: Constant := 16#58#; MOVEC: Constant := 16#59#; MOVED: Constant := 16#5A#; MOVEE: Constant := 16#5B#; MOVEH: Constant := 16#5C#; MOVEL: Constant := 16#5D#; MOVEM: Constant := 16#5E#; MOVEA: Constant := 16#5F#; MOVHB: Constant := 16#60#; MOVHC: Constant := 16#61#; MOVHD: Constant := 16#62#; MOVHE: Constant := 16#63#; MOVHH: Constant := 16#64#; MOVHL: Constant := 16#65#; MOVHM: Constant := 16#66#; MOVHA: Constant := 16#67#; MOVLB: Constant := 16#68#; MOVLC: Constant := 16#69#; MOVLD: Constant := 16#6A#; MOVLE: Constant := 16#6B#; MOVLH: Constant := 16#6C#; MOVLL: Constant := 16#6D#; MOVLM: Constant := 16#6E#; MOVLA: Constant := 16#6F#; MOVMB: Constant := 16#70#; MOVMC: Constant := 16#71#; MOVMD: Constant := 16#72#; MOVME: Constant := 16#73#; MOVMH: Constant := 16#74#; MOVML: Constant := 16#75#; HLT : Constant := 16#76#; MOVMA: Constant := 16#77#; MOVAB: Constant := 16#78#; MOVAC: Constant := 16#79#; MOVAD: Constant := 16#7A#; MOVAE: Constant := 16#7B#; MOVAH: Constant := 16#7C#; MOVAL: Constant := 16#7D#; MOVAM: Constant := 16#7E#; MOVAA: Constant := 16#7F#; ADDB : Constant := 16#80#; ADDC : Constant := 16#81#; ADDD : Constant := 16#82#; ADDE : Constant := 16#83#; ADDH : Constant := 16#84#; ADDL : Constant := 16#85#; ADDM : Constant := 16#86#; ADDA : Constant := 16#87#; ADCB : Constant := 16#88#; ADCC : Constant := 16#89#; ADCD : Constant := 16#8A#; ADCE : Constant := 16#8B#; ADCH : Constant := 16#8C#; ADCL : Constant := 16#8D#; ADCM : Constant := 16#8E#; ADCA : Constant := 16#8F#; SUBB : Constant := 16#90#; SUBC : Constant := 16#91#; SUBD : Constant := 16#92#; SUBE : Constant := 16#93#; SUBH : Constant := 16#94#; SUBL : Constant := 16#95#; SUBM : Constant := 16#96#; SUBA : Constant := 16#97#; SBBB : Constant := 16#98#; SBBC : Constant := 16#99#; SBBD : Constant := 16#9A#; SBBE : Constant := 16#9B#; SBBH : Constant := 16#9C#; SBBL : Constant := 16#9D#; SBBM : Constant := 16#9E#; SBBA : Constant := 16#9F#; ANAB : Constant := 16#A0#; ANAC : Constant := 16#A1#; ANAD : Constant := 16#A2#; ANAE : Constant := 16#A3#; ANAH : Constant := 16#A4#; ANAL : Constant := 16#A5#; ANAM : Constant := 16#A6#; ANAA : Constant := 16#A7#; XRAB : Constant := 16#A8#; XRAC : Constant := 16#A9#; XRAD : Constant := 16#AA#; XRAE : Constant := 16#AB#; XRAH : Constant := 16#AC#; XRAL : Constant := 16#AD#; XRAM : Constant := 16#AE#; XRAA : Constant := 16#AF#; ORAB : Constant := 16#B0#; ORAC : Constant := 16#B1#; ORAD : Constant := 16#B2#; ORAE : Constant := 16#B3#; ORAH : Constant := 16#B4#; ORAL : Constant := 16#B5#; ORAM : Constant := 16#B6#; ORAA : Constant := 16#B7#; CMPB : Constant := 16#B8#; CMPC : Constant := 16#B9#; CMPD : Constant := 16#BA#; CMPE : Constant := 16#BB#; CMPH : Constant := 16#BC#; CMPL : Constant := 16#BD#; CMPM : Constant := 16#BE#; CMPA : Constant := 16#BF#; POPB : Constant := 16#C1#; POPD : Constant := 16#D1#; POPH : Constant := 16#E1#; POPPSW:Constant := 16#F1#; PUSHB: Constant := 16#C5#; PUSHD: Constant := 16#D5#; PUSHH: Constant := 16#E5#; PUSHPSW:Constant:= 16#F5#; JNZ : Constant := 16#C2#; JMP : Constant := 16#C3#; JZ : Constant := 16#CA#; JNC : Constant := 16#D2#; JC : Constant := 16#DA#; JPO : Constant := 16#E2#; JPE : Constant := 16#EA#; JP : Constant := 16#F2#; JM : Constant := 16#FA#; CALL : Constant := 16#CD#; CNZ : Constant := 16#C4#; CZ : Constant := 16#CC#; CNC : Constant := 16#D4#; CC : Constant := 16#DC#; CPO : Constant := 16#E4#; CPE : Constant := 16#EC#; CP : Constant := 16#F4#; CM : Constant := 16#FC#; RET : Constant := 16#C9#; RNZ : Constant := 16#C0#; RZ : Constant := 16#C8#; RNC : Constant := 16#D0#; RC : Constant := 16#D8#; RPO : Constant := 16#E0#; RPE : Constant := 16#E8#; RP : Constant := 16#F0#; RM : Constant := 16#F8#; ADI : Constant := 16#C6#; ACI : Constant := 16#CE#; SUI : Constant := 16#D6#; SBI : Constant := 16#DE#; ANI : Constant := 16#E6#; XRI : Constant := 16#EE#; ORI : Constant := 16#F6#; CPI : Constant := 16#FE#; OUTA : Constant := 16#D3#; INA : Constant := 16#DB#; XTHL : Constant := 16#E3#; XCHG : Constant := 16#EB#; DI : Constant := 16#F3#; EI : Constant := 16#FB#; PCHL : Constant := 16#E9#; SPHL : Constant := 16#F9#; RST0 : Constant := 16#C7#; RST1 : Constant := 16#CF#; RST2 : Constant := 16#D7#; RST3 : Constant := 16#DF#; RST4 : Constant := 16#E7#; RST5 : Constant := 16#EF#; RST6 : Constant := 16#F7#; RST7 : Constant := 16#FF#; -- Z-80 Inst.. EXX : Constant := 16#D9#; DSBCB: Constant := 16#42ED#; DSBCD: Constant := 16#52ED#; DSBCH: Constant := 16#62ED#; DSBCSP:Constant := 16#72ED#; DADCB: Constant := 16#4AED#; DADCD: Constant := 16#5AED#; DADCH: Constant := 16#6AED#; DADCSP:Constant := 16#7AED#; LBCD : Constant := 16#43ED#; LDED : Constant := 16#53ED#; LSPD : Constant := 16#73ED#; SBCD : Constant := 16#4BED#; SDED : Constant := 16#5BED#; SSPD : Constant := 16#7BED#; NEG : Constant := 16#44ED#; RRD : Constant := 16#67ED#; RLD : Constant := 16#6FED#; LDI : Constant := 16#A0ED#; CCI : Constant := 16#A1ED#; LDD : Constant := 16#A8ED#; CCD : Constant := 16#A9ED#; LDIR : Constant := 16#B0ED#; CCIR : Constant := 16#B1ED#; LDDR : Constant := 16#B8ED#; CCDR : Constant := 16#B9ED#; End Opcode;