I know the Z80 is not optimized for a C type language, but has anyone had success with a higher-than-machine level development tool for providing code that can be burned to ROM and drive an RC2014 system?
Thanks all. I’m looking at z88dk. It’s been a long, long process getting it running on a Raspberry Pi - maybe it’ll be done by tomorrow ;-)
Definitely need a nice by-the-hand YouTube video or something as it’s quite intimidating.
So far so good - all I need now is the correct C way to read/write to the Z80’s I/O ports.
This system which has a ROM at 0 and RAM from 2000 to 2fff.I’ve tweaked the crt_config a bit, but no luck. I feel like I’m close though.
Now, what I really want is to compile some C code not for an RC2014 but for some Frankenstein’s monster system I’ve made.
I’m still fighting it, but I’ll work it out.My compiled program works on the RC2014, and a pure assembler app is working so the test hardware (an EPROM emu) is working.I’ll have to make a very simple C app, compile it, and disassemble it to see exactly what is going wrong.
A cursory glance at the disassembled bin implies the SP is set to 0, which isn’t going work.I did use the CRT_REGISTER_SP #pragma, I wonder if it’s being overridden.
#pragma output REGISTER_SP = 0x3000Rather than#program output CRT_REGISTER_SP = 0x3000