[net.micro.pc] Z80 Cross Assembler

alexh@rtech.UUCP (Alex Hwang) (10/26/86)

Does anyone know any reliable Z80 cross assembler running under DOS?

Thanks in advance.

Alex Hwang
UUCP address: ...hplabs!sun!rtech!alexh

colin@vu-vlsi.UUCP (Colin Kelley) (10/29/86)

In article <487@rtech.UUCP> alexh@shrew.UUCP (Alex Hwang) writes:
> Does anyone know any reliable Z80 cross assembler running under DOS?

I have modified Bruce Norskog's (I don't know who he is either!) zmac z80 macro
assembler to be a fairly portable, and I've got a version of it compiled under
MSC 4.0 on my PC.  The PD program was sent to me by Dave Shanks (atelabs!cds).
It seems to be running fine on the PC, except that macros don't work on the PC
because the author relied on a quirky feature of Unix--he opens a temporary
file, then immediately deletes it, although continuing to read and write from
it...

Anyway, I haven't gotten to the software phase of my senior project (next
semester) so I haven't used this assembler a lot (yet!), and haven't missed
macros much in the few small programs I have used it for...

Here's the header of the program:
/*
 *  z80 -- macro cross-assembler for the Zilog Z80 microprocessor
 *
 *  Bruce Norskog	4/78
 *
 *  Last modification  10-2-86 by cdk
 *  This assembler is modeled after the Intel 8080 macro cross-assembler
 *  for the Intel 8080 by Ken Borgendale.  The major features are:
 *	1.  Full macro capabilities
 *	2.  Conditional assembly
 *	3.  A very flexible set of listing options and pseudo-ops
 *	4.  Symbol table output
 *	5.  Error report
 *	6.  Elimination of sequential searching
 *	7.  Commenting of source
 *	8.  Facilities for system definiton files
 *...*/

If anyone else out there wants it, I can send you the Unix source (yacc, ~48K),
generic C source (yacc output, ~68K), or the PC executable compiled by MSC 4.0
(~33K).  Beware that it won't run on machines where
sizeof(int) != sizeof(char *) (will they every learn??!!), short of a complete
rewrite...this is ok on the PC, when compiled under the small memory model...

			-Colin Kelley ..{cbmvax,pyrnj,psuvax1}!vu-vlsi!colin