diff options
author | Wojciech Kosior <kwojtus@protonmail.com> | 2020-12-29 19:50:56 +0100 |
---|---|---|
committer | Wojciech Kosior <kwojtus@protonmail.com> | 2020-12-29 19:50:56 +0100 |
commit | 30a97274bde7a1988d80861ab9b381148f3d19a7 (patch) | |
tree | 101ce1aa9d9273de048a1f866f90cb22c151eed0 /examples/example1a_blink_led_wasm/instructions.wat | |
parent | ec9a0f72c6b7d74c9a7e2d4eaef44e26037eaca2 (diff) | |
download | AGH-engineering-thesis-30a97274bde7a1988d80861ab9b381148f3d19a7.tar.gz AGH-engineering-thesis-30a97274bde7a1988d80861ab9b381148f3d19a7.zip |
fix align values
Diffstat (limited to 'examples/example1a_blink_led_wasm/instructions.wat')
-rw-r--r-- | examples/example1a_blink_led_wasm/instructions.wat | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/example1a_blink_led_wasm/instructions.wat b/examples/example1a_blink_led_wasm/instructions.wat index f231c13..4f56daf 100644 --- a/examples/example1a_blink_led_wasm/instructions.wat +++ b/examples/example1a_blink_led_wasm/instructions.wat @@ -7,29 +7,29 @@ ;; loop until timer exceeds 1500 (loop $again (br_if $again (i32.lt_u - (i32.load16_u offset=0x0 align=1 + (i32.load16_u offset=0x0 align=2 (i32.const 0x1BFC08)) (i32.const 1500)))) ;; now, light led2 - (i32.store16 offset=0x0 align=1 + (i32.store16 offset=0x0 align=2 (i32.const 0x1BFC06) (i32.const 0x1)) ;; loop until timer exceeds 3000 (loop $again (br_if $again (i32.lt_u - (i32.load16_u offset=0x0 align=1 + (i32.load16_u offset=0x0 align=2 (i32.const 0x1BFC08)) (i32.const 3000)))) ;; now, switch led2 off - (i32.store16 offset=0x0 align=1 + (i32.store16 offset=0x0 align=2 (i32.const 0x1BFC06) (i32.const 0x0)) ;; loop until timer exceeds 4500 (loop $again (br_if $again (i32.lt_u - (i32.load16_u offset=0x0 align=1 + (i32.load16_u offset=0x0 align=2 (i32.const 0x1BFC08)) (i32.const 4500))))) (export "main" (func $main))) |