1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-02 15:29:33 +00:00

consider __STACKSIZE__ when initializing sp for atarixl

This commit is contained in:
Christian Groessler 2013-09-17 23:03:33 +02:00
parent 367bd368c0
commit f679c9703c

View File

@ -17,6 +17,7 @@
.import __RESERVED_MEMORY__
.import __RAM_START__, __RAM_SIZE__
.if .defined(__ATARIXL__)
.import __STACKSIZE__
.import sram_init
.import scrdev
.import findfreeiocb
@ -88,9 +89,9 @@ start:
.else
lda #<(__RAM_START__ + __RAM_SIZE__ - 1)
lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
sta sp
lda #>(__RAM_START__ + __RAM_SIZE__ - 1)
lda #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
sta sp+1
.endif