Created
March 22, 2016 19:16
-
-
Save ti-ka/eab32b09f6178088d99e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
li $s0 8 | |
li $s1 9 | |
li $a0 2 | |
li $a1 4 | |
jal biff | |
addi $s3 $v0 0 | |
li $v0 1 | |
addi $a0 $s3 0 | |
syscall | |
j exit | |
biff: nop | |
subi $sp $sp 12 | |
sw $sp 12($sp) | |
sw $ra 8($sp) | |
sw $s0 4($sp) | |
sw $s1 0($sp) | |
addi $s0 $a0 0 | |
addi $s1 $a1 0 | |
add $t0 $s0 $s1 | |
addi $a0 $t0 0 | |
jal baff | |
addi $t0 $v0 0 | |
addi $v0 $t0 0 | |
lw $s1 0($sp) | |
lw $s0 4($sp) | |
lw $ra 8($sp) | |
lw $sp 12($sp) | |
addi $sp $sp 12 | |
jr $ra | |
baff: nop | |
addi $t2 $a0 0 | |
add $t2 $t2 $t2 | |
addi $v0 $t2 0 | |
jr $ra | |
exit: nop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment