userland/src/lib: hello world

This commit is contained in:
Cadey Ratio 2018-06-07 17:07:40 -07:00
parent 98ee85c579
commit 9e6738969a
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
(module
(func $log (import "env" "log") (param i32 i32) (result i32))
(memory $mem 1)
(data (i32.const 200) "Hello")
(func $main (result i32)
(i32.const 200)
(i32.const 5)
(call $log))
(export "main" (func $main)))