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:
cuz
2001-03-10 14:19:21 +00:00
parent 1923199dad
commit e32d5a4a4b
3 changed files with 38 additions and 26 deletions

View File

@@ -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