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

From: Greg King <greg.king51verizon.net>
Date: 2013-01-19 09:57:16
From: "Darryl Sokoloski"; on Friday, January 18, 2013; at 1:58 PM -0500
>
> 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

The function library has a subroutine that does that job for you.
Look at "libsrc/common/copydata.s".

----------------------------------------------------------------------
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 10:58:28 2013

This archive was generated by hypermail 2.1.8 : 2013-01-19 10:58:33 CET