mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 06:25:17 +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:
@@ -29,6 +29,7 @@ CH = $24
|
|||||||
CV = $25
|
CV = $25
|
||||||
BASL = $28
|
BASL = $28
|
||||||
TEXTTYP = $32
|
TEXTTYP = $32
|
||||||
|
MEMSIZE = $73 ; Highest free RAM location
|
||||||
HOME = $FC58
|
HOME = $FC58
|
||||||
VTABZ = $FC24
|
VTABZ = $FC24
|
||||||
COUT = $FDED
|
COUT = $FDED
|
||||||
|
@@ -41,9 +41,9 @@ L1: lda sp,x
|
|||||||
tsx
|
tsx
|
||||||
stx spsave ; Save the system stack ptr
|
stx spsave ; Save the system stack ptr
|
||||||
|
|
||||||
lda #<TOPMEM
|
lda MEMSIZE
|
||||||
sta sp
|
sta sp
|
||||||
lda #>TOPMEM
|
lda MEMSIZE+1
|
||||||
sta sp+1 ; Set argument stack ptr
|
sta sp+1 ; Set argument stack ptr
|
||||||
|
|
||||||
; Call module constructors
|
; Call module constructors
|
||||||
|
Reference in New Issue
Block a user