1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-07 04:29:01 +00:00

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
This commit is contained in:
cuz 2002-07-15 20:03:37 +00:00
parent dd6e59e1cc
commit 55dfc0f312
2 changed files with 3 additions and 2 deletions

View 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

View 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