]> git.sur5r.net Git - cc65/commitdiff
Use the linker define stacksize instead of a variable.
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Mar 2001 14:19:21 +0000 (14:19 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 10 Mar 2001 14:19:21 +0000 (14:19 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@621 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/Makefile
libsrc/common/_heap.s
libsrc/common/_stksize.s [deleted file]

index aabe87d68b56b1e09062516e8cd6e608ea730e07..e5d093f570ad72ebf9ea91bc1080788f02e0ef25 100644 (file)
 %.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           \
index f3a5ade483215bd798cc7d265b1cb6769650f0ed..5758c7c3455ed0fadaf4a6acbb4593b71c3e8c45 100644 (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
 
diff --git a/libsrc/common/_stksize.s b/libsrc/common/_stksize.s
deleted file mode 100644 (file)
index 9d8d607..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-;
-; Ullrich von Bassewitz, 03.06.1998
-;
-; Stack default size definition
-;
-
-       .export         __stksize
-
-.data
-
-__stksize:
-               .word   $800            ; 2K
-
-
-