Consider the following MIPS assembly language program:
# Data area.datamydata: .word 0x4CAFE, 0xBABE#output: .word 0 # for storing the result## Instructions (program) area.textmain: la $s0, mydata # load the address of memory location mydata to $s0lw $t0, ($s0) #lw $t1, 4($s0) #sub $t2, $t0, $t1 ##la $s1, output # Load the address of memory location output to $s1sw $t2, ($s1) ##li $v0, 1 # syscall #1 (print int)srl $a0, $t2, 1 # divide by 2syscall # invoke syscall to print
#
# The END
1) What will be seen on MARS console when this program runs? [x]
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here