Use the linker define stacksize instead of a variable.
git-svn-id: svn://svn.cc65.org/cc65/trunk@621 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
.export __horg, __hptr, __hend, __hfirst, __hlast
|
||||
.constructor initheap, 24
|
||||
.import __BSS_RUN__, __BSS_SIZE__, __stksize
|
||||
.import __BSS_RUN__, __BSS_SIZE__, __STACKSIZE__
|
||||
.importzp sp
|
||||
|
||||
.data
|
||||
@@ -30,10 +30,10 @@ __hlast:
|
||||
initheap:
|
||||
sec
|
||||
lda sp
|
||||
sbc __stksize
|
||||
sbc #<__STACKSIZE__
|
||||
sta __hend
|
||||
lda sp+1
|
||||
sbc __stksize+1
|
||||
sbc #>__STACKSIZE__
|
||||
sta __hend+1
|
||||
rts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user