]> git.sur5r.net Git - cc65/blobdiff - libsrc/runtime/stkchk.s
Fixed a bug
[cc65] / libsrc / runtime / stkchk.s
index 712da3094564b14e4b87623ffef178fdf335342d..c33c703e96e2944e5bfa5666ecede7a6eb1c1e5b 100644 (file)
 
 ; ----------------------------------------------------------------------------
 ; 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
-               cpx     #10
+               cpx     #12
                bcc     Fail            ; Jump on stack overflow
        rts                     ; Return if ok