greg-king5 / cc65

CC65 — A freeware C compiler for 6502-based systems.
https://cc65.github.io/
zlib License
6 stars 1 forks source link

Fix compilation errors and repair stack. #3

Closed hasenbanck closed 5 years ago

hasenbanck commented 5 years ago

Hi,

Since your branch seems much more developed, I will rebase my changes to your branch.

Currently I'm mainly testing stuff and try to get to know the codebase better.

It seems that I need these changes to compile successfully and run my very simple based tests.

The new start address of the ZP was needed, so that scanf() works again. The new size I took from the programmers manual. I think this is because of the c-stack that is not working otherwise?

Sincerely Nils

greg-king5 commented 5 years ago

Oops, I forgot to commit the cpeek files. We will need CX16-specific files for those functions. For now, I just put empty versions of them in the cx16/ subdirectory.

greg-king5 commented 5 years ago

I will change the start address of the ZP: memory area. We can use all $90 bytes of the BASIC interpreter's zero-page region.

hasenbanck commented 5 years ago

Oh cool, thanks. Wanted to ask why you didn't pulled that change anyhow, since we can use the whole $90 bytes for ZP anyhow.

Currently I'm focusing to get some automated testing done using the emulator. I think I need to extend the current emulator to better support automated testing (exiting on reaching the programms end or a special opcode, and maybe even better mem/vmem/cpuinfo dumps one could parse).