Generating a 32KB ROM for Epson PX-8

Post Reply
nthunter
New member
Posts: 4
Joined: Mon Apr 24, 2023 7:10 pm

Generating a 32KB ROM for Epson PX-8

Post by nthunter »

Hi there!

Complete noob on z88dk, sorry if this has been covered elsewhere (I couldn't find it, though!)

I'm trying to compile a 32K ROM for the Epson PX-8 but my code is small enough for z88dk to generate a 8K ROM instead:

Code: Select all

Development>zcc +cpm -subtype=px8 -create-app -ohello hello.c
Program fits in an 8K EPROM (2764)
How can I force zcc to generate a 32K ROM instead of the 8K as advised in the z88dk PX-8 documentation (https://github.com/z88dk/z88dk/wiki/Pla ... -Epson-PX8) ?

Thanks for the help!
User avatar
dom
Well known member
Posts: 2076
Joined: Sun Jul 15, 2007 10:01 pm

Re: Generating a 32KB ROM for Epson PX-8

Post by dom »

It looks like default is to create an EPROM that is big enough to hold the program - so a simple hello world will fit in an 8k EPROM.

You can force a 32k ROM to be generated by add -Cz-32k to the compile line.
nthunter
New member
Posts: 4
Joined: Mon Apr 24, 2023 7:10 pm

Re: Generating a 32KB ROM for Epson PX-8

Post by nthunter »

Worked as a charm, thanks for the help, really appreciate it!
Post Reply