1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-30 16:29:58 +00:00

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

@ -11,13 +11,41 @@
%.o: %.s
@$(AS) -g -o $@ $(AFLAGS) $<
C_OBJS = fclose.o fgets.o calloc.o _fopen.o\
fputs.o fread.o fwrite.o gets.o realloc.o bsearch.o strxfrm.o\
_hextab.o fdopen.o strtok.o\
_afailed.o fopen.o fgetc.o fputc.o puts.o gets.o perror.o getchar.o\
vprintf.o abort.o qsort.o putchar.o\
errormsg.o freopen.o locale.o fsetpos.o\
fgetpos.o rewind.o fseek.o ftell.o
C_OBJS = _afailed.o \
_fopen.o \
_hextab.o \
abort.o \
bsearch.o \
calloc.o \
errormsg.o \
fclose.o \
fdopen.o \
fgetc.o \
fgetpos.o \
fgets.o \
fopen.o \
fputc.o \
fputs.o \
fread.o \
freopen.o \
fseek.o \
fsetpos.o \
ftell.o \
fwrite.o \
getchar.o \
gets.o \
locale.o \
perror.o \
putchar.o \
puts.o \
qsort.o \
realloc.o \
rewind.o \
sscanf.o \
strxfrm.o \
strtok.o \
vprintf.o
S_OBJS = _fdesc.o \
_file.o \
@ -25,7 +53,6 @@ S_OBJS = _fdesc.o \
_heap.o \
_oserror.o \
_printf.o \
_stksize.o \
_swap.o \
_sys.o \
abs.o \

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

View File

@ -1,15 +0,0 @@
;
; Ullrich von Bassewitz, 03.06.1998
;
; Stack default size definition
;
.export __stksize
.data
__stksize:
.word $800 ; 2K