Increased h/w stack safety zone to 12 bytes
git-svn-id: svn://svn.cc65.org/cc65/trunk@651 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -45,10 +45,10 @@
|
|||||||
|
|
||||||
; ----------------------------------------------------------------------------
|
; ----------------------------------------------------------------------------
|
||||||
; 6502 stack checking routine. Does not need to save any registers.
|
; 6502 stack checking routine. Does not need to save any registers.
|
||||||
; Safety zone for the hardware stack is 10 bytes.
|
; Safety zone for the hardware stack is 12 bytes.
|
||||||
|
|
||||||
stkchk: tsx
|
stkchk: tsx
|
||||||
cpx #10
|
cpx #12
|
||||||
bcc Fail ; Jump on stack overflow
|
bcc Fail ; Jump on stack overflow
|
||||||
rts ; Return if ok
|
rts ; Return if ok
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user