mirror of
https://github.com/remko/waforth
synced 2024-12-26 09:59:09 +01:00
Improve documentation structure
This commit is contained in:
parent
f0ceb05323
commit
9b2e696e5e
1 changed files with 13 additions and 15 deletions
|
@ -180,20 +180,6 @@
|
|||
(unreachable))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Function types
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
;; A regular compiled word is a function with only the
|
||||
;; top-of-stack pointer as parameter (and returns the new top-of-stack pointer)
|
||||
;; Arguments are passed via the stack.
|
||||
(type $word (func (param i32) (result i32)))
|
||||
|
||||
;; Words with the 'data' flag set also get a pointer to data passed
|
||||
;; as second parameter.
|
||||
(type $dataWord (func (param i32) (param i32) (result i32)))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Function table
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
@ -218,6 +204,18 @@
|
|||
;; END_DO_INDEX := 9
|
||||
(table (export "table") 0xbf funcref)
|
||||
|
||||
;; The function table contains 2 type of entries for: entries for
|
||||
;; regular compiled words, and entries for data words.
|
||||
|
||||
;; A regular compiled word is a function with only the
|
||||
;; top-of-stack pointer as parameter (and returns the new top-of-stack pointer)
|
||||
;; Arguments are passed via the stack.
|
||||
(type $word (func (param i32) (result i32)))
|
||||
|
||||
;; Words with the 'data' flag set also get a pointer to data passed
|
||||
;; as second parameter.
|
||||
(type $dataWord (func (param i32) (param i32) (result i32)))
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Data
|
||||
|
@ -2379,7 +2377,7 @@
|
|||
(local.get $tos))
|
||||
(data (i32.const 0x20ac0) "\b4\0a\02\00" "\01" "] " "\be\00\00\00")
|
||||
(elem (i32.const 0xbe) $right-bracket)
|
||||
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Interpreter state
|
||||
|
|
Loading…
Reference in a new issue