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.
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.