home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
mbug
/
mbug167.arc
/
XLTZ80.LBR
/
XLTZ80.DZC
/
XLTZ80.DOC
Wrap
Text File
|
1979-12-31
|
2KB
|
72 lines
************************************************************************
XLTZ80
Translates Intel 8080 assembly language source code
to Zilog Z80 assembly language source code.
************************************************************************
This is a modified version of Richard Conn's XLATE2 with several
improvements. It does not split long unrecognized macro names. It uses
larger buffers so that it operates much faster.
It processes lines with the exclamation point statement separator
correctly. It strips trailing blanks or tabs from lines. It replaces
initial asterisks in lines with semicolons. It gives you several
options to format the output file for best appearance.
This program gives the choice of converting the case of instructions
to upper or lower case or of trying to preserve the case of instructions.
An activity dot is printed on the console for every 100 lines of
input processed.
Note that this program runs only on a Z80.
11/12/84 Frank J. Zerilli
Command line:
XLTZ80 [d:]srcfile[.typ] [d:destfile.typ]
All parameters in brackets are optional, and, if omitted, the
default values are:
Source file-type -- ASM
Destination file-type -- Z80
Destination file-name -- same as the source file-name
Drive -- current drive
Examples:
XLTZ80 { prints help message }
XLTZ80 FILE1 {translates FILE1.ASM to FILE1.Z80}
XLTZ80 FILE1 FILE2 {translates FILE1.ASM to FILE2.Z80}
XLTZ80 FILE1.TXT FILE2.MAC {translates FILE1.TXT to FILE2.MAC}
FLAG LOCATIONS:
103H -- Change to non-zero value to suppress translation of several
non-standard opcodes:
REQ, RNE, RLT, RGE, CEQ, CNE, CLT, CGE, JEQ, JNE, JLT, JGE,
ENT, NAM, RAM, ROG, IFC, ICL, LST, MAC
104H -- If non-zero (default) XLTZ80 converts lines with multiple
statements separated by DR's '!' separator into separate lines.
Change to zero for output on a single line with the translated
statements separated by '!'.
105H -- Change to non-zero to output the header lines
.Z80
ASEG
for the M80 assembler. Default is not to output these lines.