Improve documentation structure

This commit is contained in:
Remko Tronçon 2022-10-02 20:57:24 +02:00
parent f0ceb05323
commit 9b2e696e5e

View file

@ -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