-07MAY86 XIZ COM-dXIZI DQC/+ XZI COMZ5 æXIZ v2 07 May 86 - an 8080 to Z80 translator. Work done by Irv Hoff, heavily based on a previous program by Frank Zerilli in 1984 which was based on XLATE2. !9"A1AF:] ?:^ Q Qh<2n )f:!b>_2 2@!OWP*Wzu{uWE=_>wzF{FW"Ww'‹: /2 ~ w: ¦~;ʣ¦2@: :@~a{_w~   0xP~*6;2@#0+0#6 #6*f#"f*W!:@>!: >!>͐vBTiK*ftT=Z!OW!)! !R! s ! ! 7 ! !  !! !8 ! 7 ! ! !b !  !! ʻ ! ! !_  !  :! !  ! *C*J~ Z Z ;uB'; ;#͓ #~;}~ T6 k͓ B;~u ;͓ ):<ҟ= ʟڗ> Ù> :  ʱ ʱ> ~;#~ > ~a{_~#F~ % % ;~:5 h h;h h# ͓ j :à#~:C Y+VVYz>:#~ ʥÍzzˆyڠ> å>:yڠʥ> > > ͓ ~ ;º}1A"CEt ͓ "J<#͓ ~E#~Q#~U#͓ ~M#~A#~C#~R#~O#͓ ~S#~E#~TCC CNC CZ CNZ CP CM CPE CPO REQ RNE RLT RGE CEQ CNE CLT CGE JEQ JNE JLT JGE ELSE ELSE P ENDIFENDIFP ENDM ENDM P IF IF X IFC IF 8 ICL *INCL@ LST LIST H MACROMACROX ACI ADC ADI ADD SBI SBC JC JNC JZ JNZ JP JM JPE JPO ADC ADC ADD ADD DAD ADD IN IN LDA LD LDAX LD  LHLD LD 6 MOV LD J OUT OUT RST RST SBB SBC SHLD LD SPHL LD STA LD STAX LD XCHG EX XTHL EX PCHL JP  ANI AND CALL CALL CPI CP JMP JP ORG ORG ORI OR SUI SUB XRI XOR ANA AND CMP CP DCR DEC INR INC MVI LD ORA OR SUB SUB XRA XOR RC RNC RZ RNZ RP RM RPE RPO RET RET CMA CPL CMC CCF HLT HALT RAL RLA RAR RRA RLC RLCA RRC RRCA STC SCF DAA DAA NOP NOP DI DI EI EI DCX DEC INX INC LXI LD POP POP PUSH PUSH DB DEFB DS DEFS DW DEFW EQU EQU SET DEFL DB DB DS DS DW DW EQU EQU SET DEFL ENT ENTRYNAM NAME RAM DATA ROG REL ~5 E ! < N#FJ >  A~ ~#O ~#` ͥ #j H ͥ ~# xʥ À ~ ʡ ʡ :#Ó ~ ,; :+-/*)a _ # > bk ~# x B J B *J~M m#!B *J2 ` ~_BJ DO HT PY ####~_Sq #~_Wp #++:F!,Eʱ !.Nʱ !0Lʱ !2Gʱ !4eʱ !6nʱ !8lʱ !:~2F#~2G! ! ! >,B :F:G B ! B !! B ! B !< B *J~_B* D0 ! ! B ! >)B *J~M[ ml !#~# c B !û B ! B ! B >( !û B ! B >( !B *J~_B D ! !` *J#B ! B !*J~;   # +~   #*Jz0 {~#( > 2Bc > 2Tc > 2ic >  > B B > 2v!\E ~ ʋ ?ʋ  !\ :lʡ 2:m ʵ !m : >M2>A2>C2:u !u !E /! =~:@ >: #>. ~# E?>!"WNASM»ʔ>2N!O"LNZ80/s>*A~#~  > #> > 2 *L>!w / / 4:<= 8>8:<<2<#:N=E>2N|Wy}OyÓzWW{OW!O"LN>:NO*L|µ}µ́:Mµ:Lµí'd }0 /x0 0  }o|g_K_Y =KQa{_:h=2h>. >d2h:A=2Aˆ> > 2A:=2K>22 XIZ translates Intel 8080 assembly language source code into Zilog Z80 assembly language source code. It is invoked by a command of the form: XIZ B:8080FILE.TYP B:Z80FILE.TYP All parameters are optional - if omitted, the following values are assumed: 8080 source filetype - ASM Z80 output filetype - Z80 Z80 output file name - same as source file-name Drive - current drive Byte 0103H - 00 defaults to .Z80 extent, FF to .MAC Byte 0104h - 00 does not print .Z80 and ASEG for MAC Byte 0105H - 00 normal Zilog DEFB, etc., FF to DB, etc.[more] Examples: XIZ PRGM1 (translates PRGM1.ASM to PRGM1.Z80) XIZ PRGM1 PRGM2 (translates PRGM1.ASM to PRGM2.Z80) XIZ PRGM1.TXT PRGM2.MAC (translates PRGM1.TXT to PRGM2.MAC) XIZ also has the following feature: A dot '.' is displayed for each 100 lines processed. ++ Aborting to CP/M ++  *** Job cancelled *** lines processed .Z80 ASEG No directory space No source file found Output file exists, delete it and continue? (Y/N) Output file write error  8080 source file: Z80 output file: XIZ v2 - translates 8080 to Z80 source code The following operands have been used in your source and have not been fully translated. You must complete the translation using an editor. original: must be translated to: Z NZC NCz nzc nc #ENDIF ENDIF ICL *INCLUDE dLST LIST 2CALL JP RET A,(),A),HLDE,HL(SP),HLHL,(A,(BC)A,(DE)8*A,AFBC,ADEHLHL,(HL)SP,HL(BC),A(DE),Av?XIZI.DOCY  !"#$%&'()*+,-./0123456789:;<=>o?@ABCDEFGHIJKLMNOPQRSTUVWX_ͼ73/op7fo> o/w ~y{Zjys=0ǿlR{o׷OOZjeYr{3!ŝ'khQeYY,)T˲, D1Cq"(eYȧZje^n7pc+#46cYDZň88L4Žb؂]%ejS-Բ3p{tN73L4 1 ;B'3A8 p{Q9ǰ1&⸙a2xGb`!0%l ;FS-,χp{h13c F #8x-BiM }-+koX6MiGf y3Fr/F'j`rCղ# ,-88LzžmD sQK䆬'eG=iLKeȕ _`C΄.S8NZF5[7jF.Oq3߿E4(V.MzjF.O]|Gi_ gB/%@FhJ΄ع 5~ȱα4 khjșǘdfF!0%l ;B'Ej;u䌕ˊ1q`ZjY#a q3cґ{i`V]%eqe|8N`A5l y3dI#cLq3dI 8g HH{H DuL ;B j0CS^Zs4ТV+np)0:16hhd,k`0gI=`P3wjˀ>n3C8&˕ q@ֆ0㸙I#hh^(ͼIi90aK .2,^RK-y< χc-/,t"Yq`P'Ic] 9vZL{Fb͛s-x )2΄@k1Q-,3{M8$[y77O褑ղ,OO@QS›/x o~NY-گ٧ZϵԲonW'Z|8-ί/_XvjY~7wwׇ_O=ĿEZ+]%e2`뛻鸙E,x}sww;_1ʯj{kL7ww,8>z:nf| ί/XGΘ??W^,)t} ί/ZjzۛG>pWQ4:raJ]9-NG  p&!V.+G'DZ<6hB ji ZԌ]"7t5D _de1l'˽]%eqC+ג5D/HLH1$=V5=5XR6͠ $ $;MHdP'8@my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q3~50M99-8+#X|w=|#,kiB u3:Mk5X)a7#]]Fq0'J{ F v.p82hhgr؁+2Ȉ ikBVSGê)S?w7okq|O&5a0jଌ?{;B' "G d kLF`um# :2dCbÚ`LNz4 XFS-,A8-vDuүRL 8V.[jՊ;!ШMYVδ:1 !a#h/a[^p&1Ee& +koP'8%RQ1xmT` P ;{.jN-Tq^8ߟjY>5^ǔ삇k-?_~+oIbGR|R?Ny:C,!AY(V0QL a0mja|")_ķy33'>VR~XåXZI v1 07 May 86 - a Z80 to 8080 translator. Work done by Irv Hoff, heavily based on a previous program by Frank Zerilli in 1984 which was based on XLATE2. !9"c1cͻ:] ?:^ ͻͻͻ<2'2ƛͷr͌w[22!e[P*z[m{eme0=W>wz[>{e>e"w'ƒ:/2~w:ž~;ʛž2:º:º~aں{Һ_w~   (xP~*6;2#(+(#6 #6*(#"(*!:>!:>!>*,#dw#wͧrjͻ*( kͻPͻûQͻ~û!ƛ",\ͻ *,^#V#",|ʠ> 0 x x> !ƛ~",!Y *,^#V#",|> 0A¸>; ø> >;> > !e[1 b!́  ! ́ 5 !́ ʅ !9 ́ !D ́ !Ý $!x́ =!v ́ !c ́ ! ́ ! ́ ! ́ v *›à*ě~   Y;' #âͩ #~; ~ 6 ͩ q;~ â ͩ ):+= +#> %>  : = => ~;b#~ b> ~ab{b_c~#bYCPL CMA CCF CMC SCF STC HALT HLT RLA RAL RRA RAR RLCA RLC RRCA RRC DAA DAA NOP NOP DI DI EI EI EXX EXX LDIR LDIR LDI LDI LDDR LDDR LDD LDD CPI CPI CPIR CPIR CPD CPD CPDR CPDR INI INI INIR INIR IND IND INDR INDR OUTI OUTI OTIR OTIR OUTD OUTD OTDR OTDR NEG NEG RLD RLD RRD RRD RETI RETI RETN RETN IM0 IM0 IM1 IM1 IM2 IM2 DJNZ DJNZ BIT BIT SET SET RES RES RLC RCL RL RL RRC RRC RR RR SLA SLA SRA SRA SRL SRL IM IM DB DB DW DW DS DS DEFB DB DEFW DW DEFS DS EQU EQU DEFL SET ORG ORG OR ORI ORA AND ANI ANA XOR XRI XRA CP CPI CMP SUB SUI SUB ADD ADI ADD ADC ACI ADC SBC SBI SBB EX XCHG PUSH PUSH POP POP INC INX INR DEC DCX DCR LD MVI MOV IF IF  ELSE ELSE ENDIFENDIF MEND ENDM ENDM ENDM IN IN OUT OUT RST RST JP JMP uJR JMP uCALL CALL ORG ORG RET RET MACROMACRO ~ j j ;~ ʮ :z ;ʮ ʮ # G ͩ Z :E #~:ˆ  ß + ʛ 1 ʛ W Ÿ # >:#~  1 W y >  >:y > > > ͩ ~ ; 1c"›͊ ͩ "ě<#ͩ ~E/ #~Q/ #~U#ͩ ~M/ #~A/ #~C/ #~R/ #~O#ͩ ~D/ #~E/ #~F/ #~L N#F~ʕ ͫ Á  A~ ~# ~~# ~~# x~# = F6Yp~ > # ~ ; ,6 #' +~)ɷ~;L L #= +~ L L #d #Z ~:+-/*)!~, ; Hͽ d ~# xd Ö ~ ʲ #é }o|g> bk ~# x !-Y*›à> 22\*(*,s#r#",>  Ý>  Ý*ě "ěͯ - / Ý!' *ě "ěͯ - / d _ F & ,& , #͏ P !L à*ě "ěͯ - / d F & ,& ~_A B C D E H L ~( #d +!ͫ ####d ###>Mw"ě#~~_A#~,#++~_A#d +~_I R ~(#F < ++)+++~_I#~_X\ Y\ +#d ++~_H#~_L\ +~(#d  )‹ #d ++++!>͗ ##d ++!>͗ ####d ++++*ě!> ͗ ! ! > ͗ ' !d à*ě͏ S "ě Ý*ěͯ - ͏ P *ěͯ 7͏ ~( / F ! ͨ ʣ#' Ͷ ##d ʛ !g à!kÌ, # "ě! Ý,# P S~(!^ >, àF d "ě!p ÝH #= ) +!Y 6Yà, #~(Rͯ - ! & / ͨ ʠ#d ) ++++F+~###w"ě#p#>Mw- *ě~_A = ) +!P$*ě~_A !T à *ě >/>8à*ě ~(# = )+6  à~(#~_C#~)#d +++*ě ~(/#~,D;q q#0+~)R#"*V"*## q"ě **6YÝ *ěu / 3́ Ý*ěÅ*ěZ͜ Ý!b à#*›~Y_R à~_ZCPM~J#~,+~_Z'C'P'M'~J#z +~_N~I#~_ZNCN+~2J#~,++~_N~I#~_ZuCu+~2J#z ++~_P~I#~_ENON+~_P~I#~_EuOu+!\0 ~ ? !\u :l2u:m v!m :>M29>A2:>C2;:u (~!u ͻ!0Gͻ!uGͻ~O:'@>:#f>.~# f0ʆ!e["Juuʺu>2[!["JͻuÙͻ*c2*w   := >:<2#:[=>2[|Q}Q[ucz/{/!["~#Y.J>:[r[*|—}—uuc:—:—Ïû_Y û*%Ͷ '))d) )}0/Ͷ +x0<0'__d_ _}0/Ͷ ax0r0:.=2.>.>d2.:/=2/> > 2/:0=20>220 XZI translates Zilog Z80 assembly language source code into Intel 8080 assembly language source code. It is invoked by a command of the form: XZI B:Z80FILE.TYP B:8080FILE.TYP All parameters are optional - if omitted, the following values are assumed: Z80 source filetype - .Z80 (or .MAC) 8080 output filetype - .ASM 8080 output filename - same as source filename Drive - current drive Byte 0103H - 00 Defaults to .Z80 extent, FF to .MAC[more] Examples: XZI PRGM1 (translates PRGM1.Z80 to PRGM1.ASM) XZI PRGM1 PRGM2 (translates PRGM1.Z80 to PRGM2.ASM) XZI PRGM1.MAC PRGM2.TXT (translates PRGM1.MAC to PRGM2.TXT) XZI also has the following feature: A dot '.' is displayed for each 100 lines processed. ++ Aborting to CP/M ++ (BC)B(DE)D DE,HLXCHG(SP),HLXTHL# Z80 *** Job cancelled *** lines processed Ran out of memory for table of line numbers of intrinsic Z80 opcodes (HL)No directory space No source file found Output file exists, delete it and continue? (Y/N) Output file write error DADLDALDAXLHLDLXIPCHLSTASHLDSPHLASM Z80 source file: 8080 output file: STAXBCBDEDHLHSPSPAFPSW XZI v2 - translates Z80 to 8080 source code ; ; ; ; ; Line numbers containing untranslated opcodes: ; ; Line numbers containing untranslated opcodes: The following operands have been used in your source and have not been fully translated. You must complete the translation using an editor. ƛd 2