Created
August 14, 2018 09:34
-
-
Save emilbayes/11b02a1a60dc1ce063bde7a20e26c2ee 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
(module | |
(memory (export "memory") 1) | |
(func $decide | |
(export "decide") | |
(param $zero i32) | |
(result i32) | |
(if (result i32) | |
(i32.eqz (get_local $zero)) | |
(then (i32.const 0)) | |
(else (i32.const 1))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment