commit: 4e0cfb0f39f3c631117ef612d8008156cbf03b0b
parent 88f229e2dbf8cee365963d2601dd820a4acde5c3
Author: David Yip <yipdw@member.fsf.org>
Date: Sun, 9 Dec 2018 04:14:31 -0600
Merge pull request #274 from 0x0001F36D/patch-2
(WebAssembly) eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee…
Diffstat:
A | e.wat | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/e.wat b/e.wat
@@ -0,0 +1,18 @@
+(module
+ (type $FUNCSIG$ii (func (param i32) (result i32)))
+ (import "env" "putchar" (func $putchar (param i32) (result i32)))
+ (table 0 anyfunc)
+ (memory $0 1)
+ (export "memory" (memory $0))
+ (export "main" (func $main))
+ (func $main (; 1 ;) (param $0 i32) (param $1 i32) (result i32)
+ (loop $label$0 (result i32)
+ (drop
+ (call $putchar
+ (i32.const 101)
+ )
+ )
+ (br $label$0)
+ )
+ )
+)