Skip to content

Instantly share code, notes, and snippets.

@oleander
Created March 22, 2011 19:26
Show Gist options
  • Save oleander/881862 to your computer and use it in GitHub Desktop.
Save oleander/881862 to your computer and use it in GitHub Desktop.
slt $t2, $t0, $t0
bne $t2, $zero, ELSE
j DONE
ELSE: addi $t2, $t2, 2
DONE:
if($t0 < $t0){
$t2 = 1;
} else{
$t2 = 0;
}
if($t2 != 0){
$t2 = $t2 + 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment