I'm having slight trouble getting ROM's working with Sega SC3000 as the target. I'm using a z88dk nightly. Compile command is zcc +sc3000 -subtype=rom -create-app -o game game.c. I found the cause to be in z88dk/lib/target/sc3000/classic/rom.asm:
Code: Select all
...
defc ROM_Start = $0000
defc RAM_Start = $C000
defc RAM_Length = $0800
defc Stack_Top = $c400
...
I can fix it by changing Stack_Top to $C800 in the rom.asm but I guess that's not the right way to go and it obviously won't work with SG1000 anymore.
So, is this a typo/bug or am I doing something wrong here?