Question: # Start .text segment (program code) .text .globl main main: li $t0, 35 li $t1, 8 add $t2, $t0, $t1 li $v0, 10 syscall #
# Start .text segment (program code) .text .globl main main: li $t0, 35 li $t1, 8 add $t2, $t0, $t1 li $v0, 10 syscall # How do we exit the program? Simple, through the system calls. # Many calls are there add we can pick appropriate one! 10 is the # code for the exit and place it in $V0! you are all done!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
