Skip to content

Commit 02c078e

Browse files
MaxGraeyvshymanskyy
authored andcommitted
add package-lock as well + rebuild (#6)
1 parent 14ffdc5 commit 02c078e

File tree

5 files changed

+53
-28
lines changed

5 files changed

+53
-28
lines changed

wasm_apps/assemblyscript/app.wasm

-4 Bytes
Binary file not shown.
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
unsigned char app_wasm[] = {
22
0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x11, 0x04, 0x60,
3-
0x00, 0x01, 0x7f, 0x60, 0x00, 0x00, 0x60, 0x02, 0x7f, 0x7f, 0x00, 0x60,
4-
0x01, 0x7f, 0x00, 0x02, 0x4e, 0x04, 0x07, 0x61, 0x72, 0x64, 0x75, 0x69,
3+
0x00, 0x00, 0x60, 0x02, 0x7f, 0x7f, 0x00, 0x60, 0x01, 0x7f, 0x00, 0x60,
4+
0x00, 0x01, 0x7f, 0x02, 0x4e, 0x04, 0x07, 0x61, 0x72, 0x64, 0x75, 0x69,
55
0x6e, 0x6f, 0x09, 0x67, 0x65, 0x74, 0x50, 0x69, 0x6e, 0x4c, 0x45, 0x44,
6-
0x00, 0x00, 0x07, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x07, 0x70,
7-
0x69, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x00, 0x02, 0x07, 0x61, 0x72, 0x64,
6+
0x00, 0x03, 0x07, 0x61, 0x72, 0x64, 0x75, 0x69, 0x6e, 0x6f, 0x07, 0x70,
7+
0x69, 0x6e, 0x4d, 0x6f, 0x64, 0x65, 0x00, 0x01, 0x07, 0x61, 0x72, 0x64,
88
0x75, 0x69, 0x6e, 0x6f, 0x0c, 0x64, 0x69, 0x67, 0x69, 0x74, 0x61, 0x6c,
9-
0x57, 0x72, 0x69, 0x74, 0x65, 0x00, 0x02, 0x07, 0x61, 0x72, 0x64, 0x75,
10-
0x69, 0x6e, 0x6f, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00, 0x03, 0x03,
11-
0x04, 0x03, 0x01, 0x01, 0x01, 0x05, 0x03, 0x01, 0x00, 0x00, 0x06, 0x06,
12-
0x01, 0x7f, 0x01, 0x41, 0x00, 0x0b, 0x07, 0x13, 0x02, 0x06, 0x6d, 0x65,
13-
0x6d, 0x6f, 0x72, 0x79, 0x02, 0x00, 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72,
14-
0x74, 0x00, 0x04, 0x08, 0x01, 0x05, 0x0a, 0x31, 0x03, 0x24, 0x00, 0x23,
15-
0x00, 0x41, 0x01, 0x10, 0x01, 0x03, 0x40, 0x23, 0x00, 0x41, 0x01, 0x10,
16-
0x02, 0x41, 0xe4, 0x00, 0x10, 0x03, 0x23, 0x00, 0x41, 0x00, 0x10, 0x02,
17-
0x41, 0x84, 0x07, 0x10, 0x03, 0x0c, 0x00, 0x0b, 0x00, 0x0b, 0x06, 0x00,
18-
0x10, 0x00, 0x24, 0x00, 0x0b, 0x03, 0x00, 0x01, 0x0b
9+
0x57, 0x72, 0x69, 0x74, 0x65, 0x00, 0x01, 0x07, 0x61, 0x72, 0x64, 0x75,
10+
0x69, 0x6e, 0x6f, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x00, 0x02, 0x03,
11+
0x03, 0x02, 0x00, 0x00, 0x05, 0x03, 0x01, 0x00, 0x00, 0x06, 0x06, 0x01,
12+
0x7f, 0x01, 0x41, 0x00, 0x0b, 0x07, 0x13, 0x02, 0x06, 0x6d, 0x65, 0x6d,
13+
0x6f, 0x72, 0x79, 0x02, 0x00, 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74,
14+
0x00, 0x04, 0x08, 0x01, 0x05, 0x0a, 0x2e, 0x02, 0x25, 0x00, 0x23, 0x00,
15+
0x41, 0x01, 0x10, 0x01, 0x03, 0x40, 0x23, 0x00, 0x41, 0x01, 0x10, 0x02,
16+
0x41, 0xe4, 0x00, 0x10, 0x03, 0x23, 0x00, 0x41, 0x00, 0x10, 0x02, 0x41,
17+
0x84, 0x07, 0x10, 0x03, 0x0c, 0x00, 0x00, 0x0b, 0x00, 0x0b, 0x06, 0x00,
18+
0x10, 0x00, 0x24, 0x00, 0x0b
1919
};
20-
unsigned int app_wasm_len = 201;
20+
unsigned int app_wasm_len = 197;

wasm_apps/assemblyscript/app.wat

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
(module
2-
(type $FUNCSIG$i (func (result i32)))
3-
(type $FUNCSIG$v (func))
4-
(type $FUNCSIG$vii (func (param i32 i32)))
5-
(type $FUNCSIG$vi (func (param i32)))
2+
(type $none_=>_none (func))
3+
(type $i32_i32_=>_none (func (param i32 i32)))
4+
(type $i32_=>_none (func (param i32)))
5+
(type $none_=>_i32 (func (result i32)))
66
(import "arduino" "getPinLED" (func $arduino/getPinLED (result i32)))
77
(import "arduino" "pinMode" (func $arduino/pinMode (param i32 i32)))
88
(import "arduino" "digitalWrite" (func $arduino/digitalWrite (param i32 i32)))
@@ -11,12 +11,12 @@
1111
(global $app/LED (mut i32) (i32.const 0))
1212
(export "memory" (memory $0))
1313
(export "_start" (func $app/_start))
14-
(start $start)
15-
(func $app/_start (; 4 ;) (type $FUNCSIG$v)
14+
(start $~start)
15+
(func $app/_start (; 4 ;)
1616
global.get $app/LED
1717
i32.const 1
1818
call $arduino/pinMode
19-
loop $continue|0
19+
loop $while-continue|0
2020
global.get $app/LED
2121
i32.const 1
2222
call $arduino/digitalWrite
@@ -27,15 +27,12 @@
2727
call $arduino/digitalWrite
2828
i32.const 900
2929
call $arduino/delay
30-
br $continue|0
30+
br $while-continue|0
3131
end
3232
unreachable
3333
)
34-
(func $start (; 5 ;) (type $FUNCSIG$v)
34+
(func $~start (; 5 ;)
3535
call $arduino/getPinLED
3636
global.set $app/LED
3737
)
38-
(func $null (; 6 ;) (type $FUNCSIG$v)
39-
nop
40-
)
4138
)

wasm_apps/assemblyscript/package-lock.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wasm_apps/assemblyscript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"asbuild:optimized": "npx asc app.ts -b app.wasm -t app.wat -O3z --runtime half --noAssert --use abort="
55
},
66
"devDependencies": {
7-
"assemblyscript": "^0.8.1-nightly.20200120"
7+
"assemblyscript": "0.8.1-nightly.20200120"
88
}
99
}

0 commit comments

Comments
 (0)