Question: The following two tables are for 32 MIPS integer registers and QtSpim I/O syscalls. What will be displayed as output when the following MIPS assembly

 The following two tables are for 32 MIPS integer registers and

QtSpim I/O syscalls. What will be displayed as output when the following

The following two tables are for 32 MIPS integer registers and QtSpim I/O syscalls. What will be displayed as output when the following MIPS assembly program executes with two integer values 4 and - 2 in two different lines as keyboard input? If needed, you can reference MIPS Green Sheet. \begin{tabular}{ll} \multicolumn{2}{c}{. data } \\ msgl: .asciiz "," \\ .text & \\ .globl main \\ main: & \\ li & $v0,5 \\ syscall & \\ move & $t7,$v0 \\ li & $v0,5 \\ syscall \\ move & $t8,$v0 \\ ble & $t7,$0,L1 \\ ble & $t8,$0,L1 \\ li & $v0,1 \\ move & $a0,$t8 \\ syscall & \\ li & $v0,4 \\ la & $a0,msg1 \\ syscall & \\ li & $v0,1 \\ move & $a0,$t7 \\ syscall & \\ jr & $ra \\ L1: & \\ li & $v0,1 \\ move & $a0,$t7 \\ syscall & \\ li & $v0,4 \\ la & $a0,msg1 \\ syscall & \\ li & $v0,1 \\ move & $a0,$t8 \\ syscall \\ jr & $ra \\ & \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!