> Yup, that's exactly why I wanted to see his crt0.s Payton, these are my changes to crt0.s: --- ../../cc65/libsrc/pet/crt0.s (revision 5963) +++ ../../cc65/libsrc/pet/crt0.s (working copy) @@ -6,9 +6,10 @@ .export __STARTUP__ : absolute = 1 ; Mark as startup .import initlib, donelib, callirq .import zerobss, push0 - .import callmain + .import _main .import CLRCH, BSOUT .import __INTERRUPTOR_COUNT__ + .import __DATA_LOAD__, __DATA_RUN__, __DATA_SIZE__ .importzp ST .include "zeropage.inc" @@ -22,6 +23,14 @@ 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 + ; Save the zero page locations we need ldx #zpspace-1 @@ -79,7 +88,7 @@ ; Push arguments and call main() - jsr callmain + jmp _main ; Call module destructors. This is also the _exit entry. 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 20:48:50 2013
This archive was generated by hypermail 2.1.8 : 2013-01-18 20:48:53 CET