Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. (module
  2. (memory 1)
  3. (func $load_num (param $index i32) (result i32)
  4. (i32.mul (get_local $index) (i32.const 4))
  5. i32.load
  6. )
  7. (func $store_num (param $index i32) (param $num i32)
  8. (i32.mul (get_local $index) (i32.const 4))
  9. get_local $num ;; value to store
  10. i32.store
  11. )
  12. (export "store_num" (func $store_num))
  13. (export "load_num" (func $load_num))
  14. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement