Move definition of $execute function
This commit is contained in:
16
wipforth.wat
16
wipforth.wat
@@ -535,6 +535,13 @@
|
|||||||
global.set $ip
|
global.set $ip
|
||||||
call $next)
|
call $next)
|
||||||
|
|
||||||
|
(func $execute
|
||||||
|
call $pop
|
||||||
|
global.set $cfa
|
||||||
|
global.get $cfa
|
||||||
|
i32.load
|
||||||
|
global.set $fn)
|
||||||
|
|
||||||
;; Return and parameter stack primitives
|
;; Return and parameter stack primitives
|
||||||
|
|
||||||
(func $tor
|
(func $tor
|
||||||
@@ -660,15 +667,6 @@
|
|||||||
global.set $ip
|
global.set $ip
|
||||||
call $next)
|
call $next)
|
||||||
|
|
||||||
;; Execution
|
|
||||||
|
|
||||||
(func $execute
|
|
||||||
call $pop
|
|
||||||
global.set $cfa
|
|
||||||
global.get $cfa
|
|
||||||
i32.load
|
|
||||||
global.set $fn)
|
|
||||||
|
|
||||||
;; The codewords function table must contain every codeword we want
|
;; The codewords function table must contain every codeword we want
|
||||||
;; to be able to run, as it's indices into this table that can be ran
|
;; to be able to run, as it's indices into this table that can be ran
|
||||||
;; with call_indirect in the $trampoline loop. Fantastically, there
|
;; with call_indirect in the $trampoline loop. Fantastically, there
|
||||||
|
|||||||
Reference in New Issue
Block a user