Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .globl readtwo #Start of readtwo function
- .ent readtwo
- readtwo:
- li $v0, 4 #prompts user to input a number
- la $a0, msg1
- syscall
- li $v0, 5 #Gets users input
- syscall
- move $t0, $v0
- li $v0, 4 #prompts user to input a second number
- la $a0, msg2
- syscall
- li $v0, 5 #Gets users second input
- syscall
- move $t1, $v0
- jr $ra
- .end readtwo #End of readtwo function
- .globl findminmax #Start of findminmax function
- .ent findminmax
- findminmax:
- bgt $t3, $t0, $t1
- blt $t2, $t0, $t1
- jr $ra
- .end findminmax #End of findminmax function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement