Menu

Z80 Preprocessor / Blog: Recent posts

Z80 preprocessor running on CP/M (v2.2)

v2.2 is a port of the Z80 preprocessor on CP/M. There's no new feature, so v2.1 is the latest for other platforms.

Get the v2.1 sources;
rename prepz80_sdcc.tst to sdcc.tst;
mount the source directory on Yaze's disk p:

c:>sys mount p my_source_dir`

c:>pip c:=p:sdcc.tst
c:>pip c:=p:z80prep.c
c:>pip c:=p:strsubs.c
c:>pip c:=p:strsubs.h

To compile with Hitech C compiler 3.09 running on Yaze:

c:>c -c z80prep.c
c:>c -c strsubs.c
c:>c z80prep.obj strsubs.obj

Test

c:>z80prep sdcc.tst

The result is in the file sdcc.asm

Posted by Jacques Pelletier 2025-03-02
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.