[comp.sources.wanted] Z80 cross-assembler in C wanted

paolo@strolog.UUCP (02/11/87)

I am looking for Z80 cross assembler and possibly a PLZ/SYS
cross compiler, both written in C language.

If somebody knows where to find them, please contact me via
E-mail.

In the happy case someone has those sources available for 
public domain, I would greatly appreciate to receive them
via E-mail.

Thanks in advance

                           Paolo Balocchi
                    ...seismo!mcvax!strolog!paolo

colin@vu-vlsi.UUCP (02/12/87)

In article <126@strolog.UUCP> paolo@strolog.UUCP (Paolo Balocchi) writes:
>I am looking for Z80 cross assembler... written in [the] C language.

This question comes up pretty frequently.  I find myself the keeper of
'zmac', a Z80 cross-assembler written in yacc by Bruce Norskog.  (I've
modified it a little to get it compile on our Pyramid and on my PC.)
If you're not familiar with yacc, it generates C as output.

Anyway, here's the header:

/*
 *  z80 -- macro cross-assembler for the Zilog Z80 microprocessor
 *
 *  Bruce Norskog	4/78
 *
 *  Last modification  1-18-87 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
 */

I'll send the source if you request it.  Just let me know if yacc is ok (it's
preferred, since it shorter) or if you need y.tab.c, the C program yacc
generates.

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