From 30a97274bde7a1988d80861ab9b381148f3d19a7 Mon Sep 17 00:00:00 2001 From: Wojciech Kosior Date: Tue, 29 Dec 2020 19:50:56 +0100 Subject: fix align values --- examples/example2a_measure_time_wasm/instructions.wat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/example2a_measure_time_wasm') 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))) -- cgit v1.2.3