Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (module
  2. (import "shared" "memory" (memory 1))
  3. (import "shared" "table" (table 1 anyfunc))
  4. (elem (i32.const 0) $read1) ;; set table[0] to read1 for indirect calling
  5.  
  6. (func $read1 (result i32)
  7. i32.const 4
  8. i32.load)
  9.  
  10. (func $read0 (result i32)
  11. i32.const 0
  12. i32.load)
  13.  
  14. (export "read0" (func $read0))
  15. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement