mirror of
https://github.com/remko/waforth
synced 2024-12-27 09:59:29 +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
|
||||
|
|
Loading…
Reference in a new issue