Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (module
- (memory 1)
- (func $load_num (param $index i32) (result i32)
- (i32.mul (get_local $index) (i32.const 4))
- i32.load
- )
- (func $store_num (param $index i32) (param $num i32)
- (i32.mul (get_local $index) (i32.const 4))
- get_local $num ;; value to store
- i32.store
- )
- (export "store_num" (func $store_num))
- (export "load_num" (func $load_num))
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement