Skip to content

Instantly share code, notes, and snippets.

@shelajev
Last active November 13, 2019 15:02
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 shelajev/6878db09430e5aebd35d5159f10fe367 to your computer and use it in GitHub Desktop.
Save shelajev/6878db09430e5aebd35d5159f10fe367 to your computer and use it in GitHub Desktop.
get_local 0
i64.eqz
if (result i64)
i64.const 1
else
get_local 0
get_local 0
i64.const 1
i64.sub
call 0
i64.mul
end
@axel22
Copy link

axel22 commented Nov 13, 2019

Note: if you rename this to .wat, gist will give us syntax coloring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment