]> git.sur5r.net Git - cc65/commitdiff
exit() is __fastcall__
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 22 Nov 2002 00:38:52 +0000 (00:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 22 Nov 2002 00:38:52 +0000 (00:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1567 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/stkchk.s

index c33c703e96e2944e5bfa5666ecede7a6eb1c1e5b..40e70efbb4db2572dc688083b7164e634810c42b 100644 (file)
@@ -50,7 +50,7 @@
 stkchk:        tsx
                cpx     #12
                bcc     Fail            ; Jump on stack overflow
-       rts                     ; Return if ok
+       rts                     ; Return if ok
 
 ; ----------------------------------------------------------------------------
 ; C stack checking routine. Does not need to save any registers.
@@ -85,7 +85,7 @@ CStackOverflow:
 ; difficult, since we're operating at a lower level here.
 
 Fail:  lda     #4
-       jsr     pusha0
+        ldx     #0
        jmp     _exit
 
 ; ----------------------------------------------------------------------------
@@ -101,3 +101,4 @@ initialsp:  .word   0
 lowwater:      .word   0
 
 
+