Consider the following MIPS program source which has no synt…
Consider the following MIPS program source which has no syntax error. When this program is loaded to the physical memory (M[]) for execution, the program execution never finishes (infinite loop) after returning from the routine foo. Explain why and fix the code. .data_msg: .asciiz “Hello cda3100\n” .align 4 .text ######## # main # ######## .globl mainmain: jal foo jr $ra .text ######## # foo # ######## .globl foofoo: li $2,4 la $a0,_msg syscall jr $ra
Read Details