Last active
November 13, 2019 15:02
-
-
Save shelajev/6878db09430e5aebd35d5159f10fe367 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: if you rename this to
.wat
, gist will give us syntax coloring.