]> git.sur5r.net Git - cc65/commitdiff
Removed the old stack checking routine
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 19 Mar 2001 23:00:45 +0000 (23:00 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 19 Mar 2001 23:00:45 +0000 (23:00 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@630 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/Makefile
libsrc/common/stkcheck.s [deleted file]

index e5d093f570ad72ebf9ea91bc1080788f02e0ef25..3b5529f7a6b938e4f1c917acca27cef4c2850590 100644 (file)
@@ -91,7 +91,6 @@ S_OBJS =      _fdesc.o        \
                rand.o          \
                setjmp.o        \
                sprintf.o       \
-               stkcheck.o      \
                strcat.o        \
                strchr.o        \
                strcmp.o        \
diff --git a/libsrc/common/stkcheck.s b/libsrc/common/stkcheck.s
deleted file mode 100644 (file)
index 3dff403..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;
-; Ullrich von Bassewitz, 18.08.1998
-;
-; Stack checker
-;
-
-
-       .export         _stkcheck, __stksafety
-       .import         pushax, exit
-       .import         __hend
-       .importzp       sp
-
-.data
-__stksafety:
-       .word   64                      ;
-
-.code
-_stkcheck:
-       clc
-       lda     __hend
-       adc     __stksafety
-       tax                             ; Remember low byte
-       lda     __hend+1
-       adc     __stksafety+1
-
-       cmp     sp+1
-       bcc     Ok
-               bne     L1
-       cpx     sp
-       bcc     Ok
-
-; Stack overflow
-
-L1:            inc     sp+1                    ; Create 256 bytes of space
-       ldx     #0
-       lda     #4
-       jsr     pushax
-       jmp     exit
-
-; All is well
-
-Ok:    rts
-
-
-
-
-
-