Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # nonLeaf.asm
- # function branches off to another, clobbering $ra
- .data
- .text
- .globl main
- main:
- nop
- nop
- nop
- nop
- nop
- nop
- li $a0, 9
- li $a1, 4
- li $a2, 1
- li $a3, 2
- jal f1
- nop
- f1:
- add $t0, $a0, $a1
- add $t1, $a2, $a3
- jal joesJam
- sub $v0, $t0, $t1
- jr $ra
- joesJam:
- add $v0,$a0,$a1
- jr $ra
- exit:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement