1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-06 13:29:01 +00:00

Fixed a typo

git-svn-id: svn://svn.cc65.org/cc65/trunk@629 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-03-19 23:00:19 +00:00
parent dce87b81db
commit 4c8f35ea97

View File

@ -12,10 +12,10 @@
; its' bounds. ; its' bounds.
; ;
.export stkchk .export stkchk
.constructor initstkchk, 25 .constructor initstkchk, 25
.import __STACKSIZE__ ; Linker defined .import __STACKSIZE__ ; Linker defined
.import pusha0, exit .import pusha0, _exit
.importzp sp .importzp sp
; Use macros for better readability ; Use macros for better readability
@ -60,14 +60,17 @@
bcs @Overflow bcs @Overflow
rts rts
; We have a stack overflow. Set the stack pointer to the low water mark, so ; We have a stack overflow. Set the stack pointer to the initial value, so
; we have ; we can continue without worrying about stack issues.
@Overflow: @Overflow:
lda initialsp
sta sp
lda initialsp+1
sta sp+1
lda #4 lda #4
jsr pusha0 jsr pusha0
jmp exit jmp _exit
.endproc .endproc
@ -83,4 +86,4 @@ initialsp: .word 0
; Stack low water mark. ; Stack low water mark.
lowwater: .word 0 lowwater: .word 0