Last active
December 17, 2015 22:32
-
-
Save danmux/60123934a396f4faf981 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
// single if statement | |
a := 4 // MOVIR R0, 4 -- | |
// RTOI R1, R0 -- R1 = local integer variable int | |
if a == 5 { | |
// SUBI R2,R1,5 -- subtract 5 from R1 and store result in R2 | |
// BNEZ R2,LABEL2 -- if R2 !=0 then a != 5 so jump past next code block | |
a = 3 // MOVIR R0, 3 -- | |
// RTOI R1, R0 -- convert to int | |
} | |
// LABEL2: | |
// ... code block 2 ... |
Author
danmux
commented
Dec 17, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment