Skip to content

Instantly share code, notes, and snippets.

@bitoffdev
Created November 15, 2017 06:57
Show Gist options
  • Save bitoffdev/30862ec09c19e279b42438fbac22b72b to your computer and use it in GitHub Desktop.
Save bitoffdev/30862ec09c19e279b42438fbac22b72b to your computer and use it in GitHub Desktop.
obfuscated MIPS number guessing game
.text
mont: li $v0,4
la $a0,d
syscall
jr $ra
.data
a:.byte 71,117,101,115,115,32,97,32,110,117,109,98,101,114,58,32,0
bb:.byte 84,111,111,32,104,105,103,104,58,32,0
.text
awsq:li $v0,4
la $a0,bb
syscall
j awsa
main:li $v0,4
la $a0,a
syscall
.data
c:.byte 84,111,111,32,108,111,119,58,32,0
d:.byte 89,111,117,32,103,111,116,32,105,116,33,10,0
.text
li $s0,5
awsa:li $v0,5
syscall
slt $t0,$v0,$s0
bne $t0,$zero,awsw
slt $t0,$s0,$v0
bne $t0,$zero,awsq
j mont
awsw:li $v0,4
la $a0,c
syscall
j awsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment