This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
collapseos
mirror of
https://github.com/hsoft/collapseos.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
forth: fix prompt in QUIT conditions
pull/95/head
Virgil Dupras
4 years ago
parent
9791c0957d
commit
6487c713ef
1 changed files
with
18 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+18
-9
forth/forth.asm
+ 18
- 9
forth/forth.asm
View File
@@ -151,11 +151,6 @@ forthMain:
.cinName:
.db "C<", 0
forthLoop:
ld hl, INTERPRET
push hl
jp EXECUTE+2
BEGIN:
.dw compiledWord
.dw LIT
@@ -678,19 +673,33 @@ EXIT:
.dw EXIT
.db 0
QUIT:
.dw nativeWord
.dw compiledWord
.dw NUMBER
.dw 0
.dw FLAGS_
.dw STORE
.dw .private
.dw INTERPRET
.private:
.dw nativeWord
ld ix, RS_ADDR
jp forthLoop
jp
next
.db "ABORT"
.fill 2
.dw QUIT
.db 0
ABORT:
.dw nativeWord
.dw compiledWord
.dw .private
.dw QUIT
.private:
.dw nativeWord
; Reinitialize PS
ld sp, (INITIAL_SP)
jp QUIT+2
jp
next
abortUnderflow:
ld hl, .word
Write
Preview
Loading…
Cancel
Save