consider __STACKSIZE__ when initializing sp for atarixl
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
.import __RESERVED_MEMORY__
|
.import __RESERVED_MEMORY__
|
||||||
.import __RAM_START__, __RAM_SIZE__
|
.import __RAM_START__, __RAM_SIZE__
|
||||||
.if .defined(__ATARIXL__)
|
.if .defined(__ATARIXL__)
|
||||||
|
.import __STACKSIZE__
|
||||||
.import sram_init
|
.import sram_init
|
||||||
.import scrdev
|
.import scrdev
|
||||||
.import findfreeiocb
|
.import findfreeiocb
|
||||||
@@ -88,9 +89,9 @@ start:
|
|||||||
|
|
||||||
.else
|
.else
|
||||||
|
|
||||||
lda #<(__RAM_START__ + __RAM_SIZE__ - 1)
|
lda #<(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
|
||||||
sta sp
|
sta sp
|
||||||
lda #>(__RAM_START__ + __RAM_SIZE__ - 1)
|
lda #>(__RAM_START__ + __RAM_SIZE__ + __STACKSIZE__)
|
||||||
sta sp+1
|
sta sp+1
|
||||||
|
|
||||||
.endif
|
.endif
|
||||||
|
|||||||
Reference in New Issue
Block a user