use __RESERVED_MEMORY__ to reserve memory for the default 20x24 text screen

This commit is contained in:
Christian Groessler
2014-03-13 02:36:10 +01:00
parent 889783bedb
commit 84c655a907
2 changed files with 13 additions and 12 deletions

View File

@@ -6,8 +6,8 @@
.export _exit, start
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import __RAM_START__, __RAM_SIZE__
.import __RESERVED_MEMORY__
.import __RAM_START__, __RAM_SIZE__
.import __RESERVED_MEMORY__
.import initlib, donelib, callmain
.import zerobss, copydata
@@ -32,9 +32,9 @@ start:
; setup the stack
lda #<(__RAM_START__ + __RAM_SIZE__)
lda #<(__RAM_START__ + __RAM_SIZE__ - __RESERVED_MEMORY__)
sta sp
lda #>(__RAM_START__ + __RAM_SIZE__)
lda #>(__RAM_START__ + __RAM_SIZE__ - __RESERVED_MEMORY__)
sta sp+1 ; Set argument stack ptr
; Call module constructors