[cc65] Creating a Cartridge Program with cc65

From: Bill Katsak <bill1katsak.com>
Date: 2007-05-01 14:04:39
Hello,

            I have developed a program for C64 for a project that I am
doing. It runs beautifully as a .prg file, but I would like to run it
from a ROM cartridge. I have spent quite a few afternoons already trying
to get this to run from a cartridge on the CCS64 emulator. However, I am
not strong with assembly language.

 

I have changed around the linker configuration to try to get something
that works. If I compile a hello world program into a binary, load it
like a prg file and do a SYS command to start the code from the $8000
range location, it runs fine. However, if I change the headers around,
adjust the offsets, and load the same program as a cartridge ROM, it
just comes back to READY and never runs.

 

Am I going about this all wrong? Has anyone had some experience with
this? I also know that I will have a problem once I get my real program
going because I will need to copy my DATA segment from ROM to RAM, and I
am not sure how to modify my startup code to do this.

 

 

Thanks very much in advance for any help.

 

Bill Katsak

Student

Bloomsburg University of Pennsylvania

bill@katsak.com

 


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue May 1 14:04:52 2007

This archive was generated by hypermail 2.1.8 : 2007-05-01 14:05:00 CEST