aboutsummaryrefslogtreecommitdiff
path: root/examples/example2a_measure_time_wasm/instructions.wat
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example2a_measure_time_wasm/instructions.wat')
-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)))