@@ -2,15 +2,15 @@ (memory 0 2) (func $main ;; write 0xFFEFE021 at MEMORY_BOTTOM_ADDR + 0x0 - (i32.store offset=0x0 align=2 (i32.const 0x0) + (i32.store offset=0x0 align=4 (i32.const 0x0) (i32.sub (i32.const 0x42143) (i32.const 0x144122))) ;; write 0x16D3B7 at MEMORY_BOTTOM_ADDR + 0x4 - (i32.store offset=0x0 align=2 (i32.const 0x4) + (i32.store offset=0x0 align=4 (i32.const 0x4) (i32.add (i32.const 0x7109D) (i32.const 0xFC31A))) ;; write 0xED8 at MEMORY_BOTTOM_ADDR + 0x8 - (i32.store offset=0x0 align=2 (i32.const 0x8) + (i32.store offset=0x0 align=4 (i32.const 0x8) (i32.div_u (i32.const 0x193E324F) (i32.const 0x1B342))) ;; write 0x3C773E7C at MEMORY_BOTTOM_ADDR + 0xC - (i32.store offset=0x0 align=2 (i32.const 0xC) + (i32.store offset=0x0 align=4 (i32.const 0xC) (i32.mul (i32.const 0x38F2C) (i32.const 0x10FD)))) (export "main" (func $main))) @@ -109,13 +109,13 @@ i32.add end) (func $main - (i32.store offset=0x0 align=2 (i32.const 0x0) + (i32.store offset=0x0 align=4 (i32.const 0x0) (call $blockfun (i32.const 4) (i32.const 2))) - (i32.store offset=0x0 align=2 (i32.const 0x4) + (i32.store offset=0x0 align=4 (i32.const 0x4) (call $blockfun (i32.const 3) (i32.const 2))) - (i32.store offset=0x0 align=2 (i32.const 0x8) + (i32.store offset=0x0 align=4 (i32.const 0x8) (call $blockfun (i32.const 2) (i32.const 0))) - (i32.store offset=0x0 align=2 (i32.const 0xC) + (i32.store offset=0x0 align=4 (i32.const 0xC) (call $blockfun (i32.const 4) (i32.const 4))) ) (export "main" (func $main))) @@ -15,9 +15,9 @@ (i32.const -1)))) (func $main ;; write 0x00000000 at MEMORY_BOTTOM_ADDR - (i32.store offset=0x0 align=2 (i32.const 0x0) + (i32.store offset=0x0 align=4 (i32.const 0x0) (call $eq10 (i32.const 12))) ;; write 0xFFFFFFFF at MEMORY_BOTTOM_ADDR + 0x4 - (i32.store offset=0x0 align=2 (i32.const 0x4) + (i32.store offset=0x0 align=4 (i32.const 0x4) (call $eq10 (i32.const 10)))) (export "main" (func $main))) @@ -16,12 +16,12 @@ (i32.const -1)))) (func $main ;; write 0x00000000 at MEMORY_BOTTOM_ADDR - (i32.store offset=0x0 align=2 (i32.const 0x0) + (i32.store offset=0x0 align=4 (i32.const 0x0) (call $eq10or11 (i32.const 12))) ;; write 0xFFFFFFFF at MEMORY_BOTTOM_ADDR + 0x4 - (i32.store offset=0x0 align=2 (i32.const 0x4) + (i32.store offset=0x0 align=4 (i32.const 0x4) (call $eq10or11 (i32.const 10))) ;; write 0xFFFFFFFF at MEMORY_BOTTOM_ADDR + 0x8 - (i32.store offset=0x0 align=2 (i32.const 0x8) + (i32.store offset=0x0 align=4 (i32.const 0x8) (call $eq10or11 (i32.const 11)))) (export "main" (func $main))) @@ -5,7 +5,7 @@ i32.const 0x32 ;; value to substract from i32.const 0x14 ;; value to substract call $sub - i32.store offset=0x25 align=2) ;; we store the difference at 0x23C + i32.store offset=0x25 align=4) ;; we store the difference at 0x23C (func $sub (param $lhs i32) (param $rhs i32) (result i32) local.get $lhs local.get $rhs @@ -11,9 +11,9 @@ (i32.const -1)))) (func $main ;; write 0x00000000 at MEMORY_BOTTOM_ADDR - (i32.store offset=0x0 align=2 (i32.const 0x0) + (i32.store offset=0x0 align=4 (i32.const 0x0) (call $eq10 (i32.const 12))) ;; write 0xFFFFFFFF at MEMORY_BOTTOM_ADDR + 0x4 - (i32.store offset=0x0 align=2 (i32.const 0x4) + (i32.store offset=0x0 align=4 (i32.const 0x4) (call $eq10 (i32.const 10)))) (export "main" (func $main))) @@ -21,5 +21,5 @@ (i32.const 10)))) ;; write computed sum (55 in dec, 37 in hex) at MEMORY_BOTTOM_ADDR - (i32.store offset=0x0 align=2)) + (i32.store offset=0x0 align=4)) (export "main" (func $main))) @@ -3,5 +3,5 @@ (func $main i32.const 0x1D ;; dynamic offset for memory store instruction i32.const 0x1E ;; value to store - i32.store offset=0x1F align=2) ;; we store the difference at 0x23C + i32.store offset=0x1F align=4) ;; we store the difference at 0x23C (export "main" (func $main))) |