Handle prelude loading message in JS rather than Forth
This commit is contained in:
18
wipforth.ws
18
wipforth.ws
@@ -635,6 +635,15 @@
|
||||
end
|
||||
call next
|
||||
|
||||
.func wait
|
||||
.elem codewords wait WAIT_CODEWORD
|
||||
call pop
|
||||
i32.const 0
|
||||
i64.const -1
|
||||
memory.atomic.wait32 2 0
|
||||
call push
|
||||
call next
|
||||
|
||||
;; Core utility words
|
||||
|
||||
.func exit
|
||||
@@ -1226,6 +1235,15 @@ COPY:
|
||||
.word COPY_CODEWORD
|
||||
.def PREV _COPY
|
||||
|
||||
_WAIT:
|
||||
.word PREV
|
||||
.byte 4
|
||||
.utf8 "WAIT"
|
||||
.align
|
||||
WAIT:
|
||||
.word WAIT_CODEWORD
|
||||
.def PREV _WAIT
|
||||
|
||||
_EXIT:
|
||||
.word PREV
|
||||
.byte 4
|
||||
|
||||
Reference in New Issue
Block a user