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

From: Darryl Sokoloski <darryl1sokoloski.ca>
Date: 2013-01-18 19:58:42
Oliver,

Thanks for the reply!

I was just replying to my own email because I forgot to mention that I
have modified crt0.s to include loader code, as per the LD65
documentation indicates.  Using the VICE monitor, I do see that the
below copy loop is working properly.

Start:

; Copy DATA_LOAD to DATA_RUN
        ldy     __DATA_SIZE__
L0:     lda     __DATA_LOAD__,y
        sta     __DATA_RUN__,y
        iny
        cpy     #<__DATA_SIZE__
        bne     L0

I have also modified crt0.s slightly to remove the argument set-up
(calling _main from here instead of through callmain).

I am certainly missing something, as even functions like sleep(),
rand(), etc. are not working.  I am not stuck, as I can write
everything I need from scratch and I'm not in any hurry... but I find
this problem an interesting challenge and I would like to solve it.  I
would also prefer to use the CC65 runtime library as from what I can
tell, effort has been put in to keep it "romable".

Cheers,

Darryl
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jan 18 19:58:52 2013

This archive was generated by hypermail 2.1.8 : 2013-01-18 19:58:55 CET