summaryrefslogtreecommitdiff
path: root/crates/core/helloworld.wat
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2023-11-28 20:06:41 +0100
committerHenry Gressmann <mail@henrygressmann.de>2023-11-28 20:06:41 +0100
commitfe76d91f33b2441de87597ae5885ea9005f35b1c (patch)
treebda08242444d91dbf55e5e96233ae826c5e4e376 /crates/core/helloworld.wat
parent1256c4248d2a3a9f73c2a14d997a337ba0eee2b4 (diff)
refactor: seperate cli crate
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/core/helloworld.wat')
-rw-r--r--crates/core/helloworld.wat15
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/core/helloworld.wat b/crates/core/helloworld.wat
deleted file mode 100644
index b74c98f..0000000
--- a/crates/core/helloworld.wat
+++ /dev/null
@@ -1,15 +0,0 @@
-(module
- ;; Imports from JavaScript namespace
- (import "console" "log" (func $log (param i32 i32))) ;; Import log function
- (import "js" "mem" (memory 1)) ;; Import 1 page of memory (54kb)
-
- ;; Data section of our module
- (data (i32.const 0) "Hello World from WebAssembly!")
-
- ;; Function declaration: Exported as helloWorld(), no arguments
- (func (export "helloWorld")
- i32.const 0 ;; pass offset 0 to log
- i32.const 29 ;; pass length 29 to log (strlen of sample text)
- call $log
- )
-) \ No newline at end of file