[cc65] C64 Cartridge Program

From: Bill Katsak <bill1katsak.com>
Date: 2007-05-18 05:32:47
Hello all,

 

Since my last message, I have managed to edit the C64 startup code to
add the autostart header and call copydata. I can compile a binary and
convert it to a CRT file for my emulator, and it autostarts like it
should.

 

To get to this point, I had to add some kernal initialization
instructions right after the header bytes:

 

stx $d016

jsr $fda3

jsr $fd50

jsr $fd15

jsr $ff5b

cli

 

I also had to comment out the lines that disable the BASIC ROM (with
these in, it hangs on boot).

 

The problem now is that printf, scanf, and puts type IO does not work
right (cases are reversed and it doesn't seem to be reading input
right). Conio I/O does seem to work right however. I assume it is
because some structure related to file IO is broken because it isn't
initialized.

 

Does anyone know what I have to do to make this work? Some type of
additional kernal initialization routine? I also have the feeling that I
might need set some type of flag to free the BASIC memory for other use.
I am not initializing it, but I think it is still there as the ROM.

 

Thanks,

Bill

 

 


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri May 18 05:33:06 2007

This archive was generated by hypermail 2.1.8 : 2007-05-18 05:33:14 CEST