mirror of
https://github.com/cc65/cc65.git
synced 2025-01-02 09:34:22 +00:00
exit() is __fastcall__
git-svn-id: svn://svn.cc65.org/cc65/trunk@1567 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
08b095c604
commit
e77a39b2cd
@ -50,7 +50,7 @@
|
|||||||
stkchk: tsx
|
stkchk: tsx
|
||||||
cpx #12
|
cpx #12
|
||||||
bcc Fail ; Jump on stack overflow
|
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.
|
; 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.
|
; difficult, since we're operating at a lower level here.
|
||||||
|
|
||||||
Fail: lda #4
|
Fail: lda #4
|
||||||
jsr pusha0
|
ldx #0
|
||||||
jmp _exit
|
jmp _exit
|
||||||
|
|
||||||
; ----------------------------------------------------------------------------
|
; ----------------------------------------------------------------------------
|
||||||
@ -101,3 +101,4 @@ initialsp: .word 0
|
|||||||
lowwater: .word 0
|
lowwater: .word 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user