On Fri, Dec 09, 2005 at 12:43:43PM +0100, Jørgen Aaris Henningsen wrote: > I'm programming to a simple 65c02 system with 32kB RAM (from 0000 to 8000) > and 32 kB ROM (from 8000 to FFFF). > When I make the reset vector in the prom, should I then make it point to > the 'main' function or should I use another entry point? If you're writing code for a new machine, you will have to rewrite the startup code, which is responsible for setting up the C stack, initialize the libraries and other environmental stuff. You may want to have a look at one of the existing startup files. They are in the libsrc/<platform> directories and named crt0.s. The resulting object file is then called <platform>.o. If the C code should be executed when the devices comes up, the reset vector should point to the entry point of the startup code. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- 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 Dec 9 12:57:53 2005
This archive was generated by hypermail 2.1.8 : 2005-12-09 12:57:56 CET