Skip to content

Instantly share code, notes, and snippets.

@christian-rogobete
Created February 7, 2023 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christian-rogobete/d9c4c5a5e285d58dbb5eb56e614d26d8 to your computer and use it in GitHub Desktop.
Save christian-rogobete/d9c4c5a5e285d58dbb5eb56e614d26d8 to your computer and use it in GitHub Desktop.
Wat file second approach
(module
(type $t0 (func))
(type $t1 (func (param i64 i64) (result i64)))
(func $_start (export "_start") (type $t0)
(nop))
(func $add (export "add") (type $t1) (param $p0 i64) (param $p1 i64) (result i64)
(i64.or
(i64.and
(i64.add
(i64.and
(local.get $p0)
(i64.const 68719476720))
(local.get $p1))
(i64.const 68719476720))
(i64.const 1)))
(memory $memory (export "memory") 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment