Add global and table sections

This commit is contained in:
Nathan Braswell
2021-07-29 00:56:57 -04:00
parent 11684d9a35
commit ee4a664660
3 changed files with 68 additions and 27 deletions

View File

@@ -19,6 +19,10 @@
(func $fd_write (param i32 i32 i32 i32)
(result i32)))
(memory $mem 1)
(global $gi i32 (i32.const 8))
(global $gb (mut i64) (i64.const 9))
(table $tab 8 funcref)
;(table $tab2 8 16 funcref)
(data (i32.const 16) "HellH") ;; adder to put, then data
(func $start
(i32.store (i32.const 8) (i32.const 16)) ;; adder of data