SHARE
TWEET

Untitled

a guest Apr 24th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top