target a new machine without adding it to z88dk

Other misc things
Post Reply
nippur72
Member
Posts: 29
Joined: Sat Sep 29, 2018 4:47 pm

target a new machine without adding it to z88dk

Post by nippur72 »

is there a quick way to target a new Z80 machine without adding it to z88dk? I mean, provide all necessary information from the command line to the compiler?

The system I'm working with is a "Child-Z" from General Processor, Italy 1978 (the only specimen survived). It is very simple as machine so I would like to quickly develop for it without the burden of preparing a configuration in Z88DK. In this system the free RAM starts at $025F and ends at $7FFF. I already know how to read the keyboard and write a character to the screen.
User avatar
dom
Well known member
Posts: 2072
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

Try this (for classic):

zcc +test -crt0=yourcrt.asm io.[c|asm] [files to compile]

yourcrt.asm should contain the code to setup the memory map and start the process - just copy and tweak one from a close target.

io.c or io.asm should contain definitions for any IO functions you're going to call (eg fputc_cons, fgetc_cons, getk) - they'll override the versions in the +test library
Post Reply