[cc65] Need help getting started with cc65 NES

From: PH <shackman1alpinecom.net>
Date: 2005-11-15 15:16:48
Hi everyone,

I'm new here, and I'm trying to get started writing some NES code.  I 
have lots of experience in writing c code, and working with different 
micros, though I haven't worked with the 6502 much.  I have the 
following code that I pulled from the mailing list:

#include <conio.h>

void main(void)
{
    clrscr();
    cprintf("hello world");
    while(1)
    {    
    }
}

I'm compiling it with the following commands.

c:\cc65nes\bin\cc65.exe -t nes -O -I c:\cc65nes\include helloworld.c
c:\cc65nes\bin\ca65.exe helloworld.s
c:\cc65nes\bin\ld65.exe -t nes -o helloworld.nes helloworld.o 
c:\cc65nes\lib\nes.o c:\cc65nes\lib\nes.lib

This gets me a helloworld.nes file, but it doesn't seem to work.  I've 
loaded it in the FCE Ultra 0.98.12 emulator, and it doesn't do anything, 
just a blank screen.  Does anyone see what I am doing wrong?  Do I need 
a palette file or something?  Also, can anyone point me to a tutorial 
specifically for the cc65 NES c compiler?

Thanks,
Paul
----------------------------------------------------------------------
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 Nov 15 15:11:27 2005

This archive was generated by hypermail 2.1.8 : 2005-11-15 15:11:30 CET