forth: Forth-ify "BYE"

This commit is contained in:
Virgil Dupras 2020-03-28 10:14:27 -04:00
parent e0eaa8ba63
commit 2db6ebc247
3 changed files with 6 additions and 9 deletions

Binary file not shown.

View File

@ -660,21 +660,14 @@ abortUnderflow:
.name: .name:
.db "(uflw)", 0 .db "(uflw)", 0
.fill 41 .fill 50
.db "BYE"
.dw $-QUIT
.db 3
BYE:
.dw nativeWord
halt
; STABLE ABI ; STABLE ABI
; Offset: 02aa ; Offset: 02aa
.out $ .out $
; ( c -- ) ; ( c -- )
.db "EMIT" .db "EMIT"
.dw $-BYE .dw $-QUIT
.db 4 .db 4
EMIT: EMIT:
.dw compiledWord .dw compiledWord

View File

@ -246,6 +246,10 @@ CODE IMMED?
DE PUSHqq, DE PUSHqq,
;CODE ;CODE
CODE BYE
HALT,
;CODE
CODE (resSP) CODE (resSP)
( INITIAL_SP == JTBL+28 ) ( INITIAL_SP == JTBL+28 )
SP JTBL 28 + @ LDdd(nn), SP JTBL 28 + @ LDdd(nn),