Re: [cc65] Need help getting started with cc65 NES

From: PH <shackman1alpinecom.net>
Date: 2005-11-16 22:44:21
I am looking at the crt0.s file like you said.  That is the code that is 
being run first, like you say.  The problem seems to be when it gets to 
the initlib code in the condes.s file.  It runs to the "jmp condes" 
line, and then jumps to location $6003, and from there I am not sure 
what it is doing, but it eventually gets stuck at $600c.  Then, it just 
sits there.  Does that tell you anything?

Thanks,
Paul

Ullrich von Bassewitz wrote:

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

>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
>  
>
----------------------------------------------------------------------
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 22:39:01 2005

This archive was generated by hypermail 2.1.8 : 2005-11-16 22:39:05 CET