Skip to content

Commit 95f3920

Browse files
abt8601Richienb
andauthored
Add WebAssembly (#1058)
Co-authored-by: Richie Bendall <[email protected]>
1 parent 02d3bfb commit 95f3920

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

readme.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Thanks to everyone who continues to contribute; new languages are created every
88
Make sure to see [contributing.md](/contributing.md) for instructions on contributing to the project!
99

1010
<!--Languages start-->
11-
## Languages (778 total)
11+
## Languages (780 total)
1212

1313
* [!@#$%^&*()_+](%23/%21%40%23%24%25%5E%26%E2%88%97%28%29_%2B)
1414
* [05AB1E](%23/05AB1E)
@@ -278,6 +278,7 @@ Make sure to see [contributing.md](/contributing.md) for instructions on contrib
278278
* [Divzeros](d/Divzeros.dz)
279279
* [DNA#](d/DNA%23.dna)
280280
* [DNA-Sharp](d/DNA-Sharp.dna)
281+
* [DOG](d/DOG)
281282
* [Dog](d/Dog)
282283
* [DogeScript](d/DogeScript.djs)
283284
* [DOGO](d/DOGO.dogo)
@@ -750,6 +751,7 @@ Make sure to see [contributing.md](/contributing.md) for instructions on contrib
750751
* [Vowels](v/Vowels.vw)
751752
* [VRML](v/VRML.wrl)
752753
* [Vue](v/Vue.js)
754+
* [WebAssembly](w/WebAssembly.wat)
753755
* [Wenyan](w/Wenyan.wy)
754756
* [Wheat](w/Wheat.wheat)
755757
* [Whenever](w/Whenever.whenever)

w/WebAssembly.wat

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
(module
2+
(import "wasi_unstable" "fd_write"
3+
(func $fd_write (param i32 i32 i32 i32) (result i32))
4+
)
5+
6+
(memory 1)
7+
(export "memory" (memory 0))
8+
9+
(data (i32.const 0) "\08\00\00\00\0c\00\00\00Hello World\n")
10+
11+
(func $main (export "_start")
12+
i32.const 1
13+
i32.const 0
14+
i32.const 1
15+
i32.const 20
16+
call $fd_write
17+
drop
18+
)
19+
)

0 commit comments

Comments
 (0)