From 55dfc0f312cdfd604b0fcc956fcbb80cfd0443a1 Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 15 Jul 2002 20:03:37 +0000 Subject: [PATCH] Use MEMSIZE instead of using a fixed high mem location git-svn-id: svn://svn.cc65.org/cc65/trunk@1354 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/apple2/apple2.inc | 1 + libsrc/apple2/crt0.s | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/apple2/apple2.inc b/libsrc/apple2/apple2.inc index d24eb8d9e..8a8321b3e 100644 --- a/libsrc/apple2/apple2.inc +++ b/libsrc/apple2/apple2.inc @@ -29,6 +29,7 @@ CH = $24 CV = $25 BASL = $28 TEXTTYP = $32 +MEMSIZE = $73 ; Highest free RAM location HOME = $FC58 VTABZ = $FC24 COUT = $FDED diff --git a/libsrc/apple2/crt0.s b/libsrc/apple2/crt0.s index b1f801521..a5ed0a833 100644 --- a/libsrc/apple2/crt0.s +++ b/libsrc/apple2/crt0.s @@ -41,9 +41,9 @@ L1: lda sp,x tsx stx spsave ; Save the system stack ptr - lda #TOPMEM + lda MEMSIZE+1 sta sp+1 ; Set argument stack ptr ; Call module constructors -- 2.39.5