mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +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:
parent
dd6e59e1cc
commit
55dfc0f312
@ -29,6 +29,7 @@ CH = $24
|
||||
CV = $25
|
||||
BASL = $28
|
||||
TEXTTYP = $32
|
||||
MEMSIZE = $73 ; Highest free RAM location
|
||||
HOME = $FC58
|
||||
VTABZ = $FC24
|
||||
COUT = $FDED
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user