Re: [cc65] Romable configuration / run-time library?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2013-01-19 13:09:20
On Fri, Jan 18, 2013 at 11:33:12PM -0500, Darryl Sokoloski wrote:
> Long story short, I booted basic4 and copied $00 - $54 to my startup,
> and now everything works as expected! :^)

You can as well use the high end of the RAM segment. This is what some other
platforms do:

        .import         __RAM_START__, __RAM_SIZE__

        ...
        lda     #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
        sta     sp
        lda     #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
        sta     sp+1            ; Set argument stack ptr
        ...

This way, your startup file must not carry the weight of a whole load of zero
page values.

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 Sat Jan 19 13:09:38 2013

This archive was generated by hypermail 2.1.8 : 2013-01-19 13:09:41 CET