Re: [cc65] simple linker question

From: Jørgen Aaris Henningsen <jah1elektronikhuset.dk>
Date: 2005-12-12 15:00:28
> * 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?
>
> Do you use some of the "standard" support libraries (i.e., the c64,
> c128, Apple-][, whatever), or another one you wrote on your own?
>
> Normally, you would need to point the RESET vector to the "start"
> function of the support library. This one will call main itself.

Thanks so far!!

No, my hardware is rather simpel (just 7 segment display and a small 
keyboard), so I'm writing my own lib's.

I have written a startup code and verified that the execution goes there, 
when execution goes on to the main function, things go wrong when the 
compiler calls the runtime functions. I think my stack is not correctly 
setup, I would like the stack to start at $5FFF an grow down, so I do:
ldy #$60

ldx #$00

stx sp

sty sp+1

Is this right??

-Jorgen

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Dec 12 15:00:44 2005

This archive was generated by hypermail 2.1.8 : 2005-12-12 15:00:48 CET