mirror of
https://github.com/remko/waforth
synced 2024-12-27 09:59:29 +01:00
Export state symbols
This commit is contained in:
parent
b23d7ec689
commit
6a3c1d96b4
1 changed files with 6 additions and 1 deletions
|
@ -815,7 +815,7 @@
|
|||
(!def_word "FIND" "$find")
|
||||
|
||||
;; 6.1.1650
|
||||
(func $here
|
||||
(func $here (export "HERE")
|
||||
(i32.store (get_global $tos) (get_global $here))
|
||||
(set_global $tos (i32.add (get_global $tos) (i32.const 4))))
|
||||
(!def_word "HERE" "$here")
|
||||
|
@ -1907,6 +1907,11 @@ EOF
|
|||
(call $shell_emit (i32.const 10))
|
||||
(get_local $result))
|
||||
|
||||
;; Used for experiments
|
||||
(func (export "set_state") (param $latest i32) (param $here i32)
|
||||
(set_global $latest (get_local $latest))
|
||||
(set_global $here (get_local $here)))
|
||||
|
||||
(table (export "table") !tableStartIndex anyfunc)
|
||||
(global $latest (mut i32) (i32.const !dictionaryLatest))
|
||||
(global $here (mut i32) (i32.const !dictionaryTop))
|
||||
|
|
Loading…
Reference in a new issue