From e77a39b2cd9450384f070f283f5cb7bf2be6d49c Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 22 Nov 2002 00:38:52 +0000 Subject: [PATCH] exit() is __fastcall__ git-svn-id: svn://svn.cc65.org/cc65/trunk@1567 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/stkchk.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsrc/runtime/stkchk.s b/libsrc/runtime/stkchk.s index c33c703e9..40e70efbb 100644 --- a/libsrc/runtime/stkchk.s +++ b/libsrc/runtime/stkchk.s @@ -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 + -- 2.39.5