mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 19:56:42 +01:00
add hex constants and data segments
This commit is contained in:
10
examples/wasm4/hello.cwa
Normal file
10
examples/wasm4/hello.cwa
Normal file
@@ -0,0 +1,10 @@
|
||||
import "env.memory" memory(1);
|
||||
import "env.text" fn text(i32, i32, i32);
|
||||
|
||||
export fn update() {
|
||||
text(0x3f, 8, 8);
|
||||
}
|
||||
|
||||
data 0x3f {
|
||||
"Hello, World!"
|
||||
}
|
||||
Reference in New Issue
Block a user