aboutsummaryrefslogtreecommitdiff
path: root/examples/example2a_measure_time_wasm
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-12-29 19:50:56 +0100
committerWojciech Kosior <kwojtus@protonmail.com>2020-12-29 19:50:56 +0100
commit30a97274bde7a1988d80861ab9b381148f3d19a7 (patch)
tree101ce1aa9d9273de048a1f866f90cb22c151eed0 /examples/example2a_measure_time_wasm
parentec9a0f72c6b7d74c9a7e2d4eaef44e26037eaca2 (diff)
downloadAGH-engineering-thesis-30a97274bde7a1988d80861ab9b381148f3d19a7.tar.gz
AGH-engineering-thesis-30a97274bde7a1988d80861ab9b381148f3d19a7.zip
fix align values
Diffstat (limited to 'examples/example2a_measure_time_wasm')
-rw-r--r--examples/example2a_measure_time_wasm/instructions.wat6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/example2a_measure_time_wasm/instructions.wat b/examples/example2a_measure_time_wasm/instructions.wat
index 3a6be34..01e081a 100644
--- a/examples/example2a_measure_time_wasm/instructions.wat
+++ b/examples/example2a_measure_time_wasm/instructions.wat
@@ -66,7 +66,7 @@
(local $adr i32)
;; reset the timer (although it should already be resetted, anyway...)
- (i32.store16 offset=0x1BFC08 align=1
+ (i32.store16 offset=0x1BFC08 align=2
(i32.const 0x0) (i32.const 0x0))
;; initialize counter
@@ -85,13 +85,13 @@
;; we now leave sum on the stack for later
;; light led2
- (i32.store16 offset=0x1BFC06 align=1
+ (i32.store16 offset=0x1BFC06 align=2
(i32.const 0x0) (i32.const 0x1))
;; print timer value
(set_local $adr (call $print
;; read timer value
- (i32.load16_u offset=0x1BFC08 align=1
+ (i32.load16_u offset=0x1BFC08 align=2
(i32.const 0x0))
(i32.const 0xFFC00)))