]> git.sur5r.net Git - cc65/commitdiff
Use MEMSIZE instead of using a fixed high mem location
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 15 Jul 2002 20:03:37 +0000 (20:03 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 15 Jul 2002 20:03:37 +0000 (20:03 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1354 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/apple2/apple2.inc
libsrc/apple2/crt0.s

index d24eb8d9e339d332db661c6d30b6b66a69918a40..8a8321b3ec5b75c11da34fa8218bfdd00ffa3234 100644 (file)
@@ -29,6 +29,7 @@ CH    =       $24
 CV     =       $25
 BASL   =       $28
 TEXTTYP        =       $32
+MEMSIZE        =       $73             ; Highest free RAM location
 HOME   =       $FC58
 VTABZ  =       $FC24
 COUT    =      $FDED
index b1f801521c8dc94cda5d5c262337484e114910bf..a5ed0a833c4c244e95fdf936ac15b271f19bff1a 100644 (file)
@@ -41,9 +41,9 @@ L1:   lda     sp,x
                tsx
                stx     spsave          ; Save the system stack ptr
 
-       lda     #<TOPMEM
+       lda     MEMSIZE
        sta     sp
-       lda     #>TOPMEM
+       lda     MEMSIZE+1
                sta     sp+1            ; Set argument stack ptr
 
 ; Call module constructors