]> git.sur5r.net Git - cc65/commitdiff
Fixed a small coding sloopyness that broke the NES startup code when
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 23 Nov 2005 04:41:04 +0000 (04:41 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 23 Nov 2005 04:41:04 +0000 (04:41 +0000)
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

index 34ec992c6c4adc9ddc9e809798bdac4cd2eec3da..06a450681c4ed7b2b25b83d3eccb66a18f0e6ba1 100644 (file)
@@ -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