From: cuz Date: Wed, 23 Nov 2005 04:41:04 +0000 (+0000) Subject: Fixed a small coding sloopyness that broke the NES startup code when X-Git-Tag: V2.12.0~181 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2ef14e3ae86c97db2d55c2a46008e78e8064e993;p=cc65 Fixed a small coding sloopyness that broke the NES startup code when adding more segments to the library and linker config. git-svn-id: svn://svn.cc65.org/cc65/trunk@3670 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/nes/crt0.s b/libsrc/nes/crt0.s index 34ec992c6..06a450681 100644 --- a/libsrc/nes/crt0.s +++ b/libsrc/nes/crt0.s @@ -98,9 +98,9 @@ start: ; Copy the .data segment to RAM - lda #<(__ROM0_START__ + __STARTUP_SIZE__+ __CODE_SIZE__+ __RODATA_SIZE__) + lda #<(__DATA_LOAD__) sta ptr1 - lda #>(__ROM0_START__ + __STARTUP_SIZE__+ __CODE_SIZE__+ __RODATA_SIZE__) + lda #>(__DATA_LOAD__) sta ptr1+1 lda #<(__DATA_RUN__) sta ptr2