From 2ef14e3ae86c97db2d55c2a46008e78e8064e993 Mon Sep 17 00:00:00 2001 From: cuz Date: Wed, 23 Nov 2005 04:41:04 +0000 Subject: [PATCH] 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 --- libsrc/nes/crt0.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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