On Wed, Nov 16, 2005 at 08:46:35AM -0600, PH wrote: > I have done some more studying, and I have examined the code in the FCE > Ultra debugger. It appears that my code is not being loaded into the > right memory space. My code is shown starting at $80cb in memory, but > on reset it should start at $8000, is that right? Not exactly. On program start, the startup code is run, which does things like library and hardware initialization and then calls your code (the main routine of the C program). Please have a look at libsrc/nes/crt0.s (in the source archive). This file contains the startup code, and this is what you should see when tracing the program with the debugger from start. > Anyway, I single > stepped it, and it never gets to address $80cb, so my code isn't being > run. Any ideas there? The generated program contains a header. As said before, I don't know much about the NES, but the header may be misinterpreted by the emulator. My suggestion would be to look at the startup code and linker config (in src/ld65/cfg/nes.cfg) to see what is loaded and where it is loaded. Then check if this really done. 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 Wed Nov 16 20:51:34 2005
This archive was generated by hypermail 2.1.8 : 2005-11-16 20:51:38 CET