itszor / gcc-6502-bits

Build tools, tiny C library, etc. for gcc-6502 port.
61 stars 17 forks source link

Add segments for C64 specific headers. Fix kernal routine for printing. #3

Closed Claus64 closed 8 years ago

Claus64 commented 8 years ago

This is the second of two pull requests to create runnable binaries for the C64. In addition, I changed the memory areas a bit, as addresses 0 and 1 have a special purpose on the C64 and should not be used for variables. Also it seems to make things much easier if the stack is at $cfff, as addresses higher than this are shadowed by the kernal.

In addition I fixed the call to the kernal CHROUT routine for fputc.