of Ain what is the companding MIFs ea pe 72 Assume of Sti So2 and respectively.
ID: 2083262 • Letter: O
Question
of Ain what is the companding MIFs ea pe 72 Assume of Sti So2 and respectively. amayA is in SS4 and variables and are in What is the MPs assembly code for C ement? the ihme pts) s All about the branch Instruction. For MIPs conditional branch instruction. Sal. it compare the oaments from target address if they are not equal its instruction format is as follows: Sal and S2, and jump to a new u suppose the sal sa2 u, is sored in memory location with address instruction and the bit offset is demorad calculate the 32-bit target address Pease briefly explain indstruction format, when it takes the branch? G points) and based on the what is the the branch distance) points) merefExplanation / Answer
7.1)
.data
array: .word 1, 2, 13, 22, 5, 6, 7, 8, 9, 10, 11, 12
B: .word 10
.text
.globl main
main:
la $s4, array # base address
lw $s5, B
add $s4,$s4,92 # to reach A[3], we need to traverse 3*32 bits from A[0]
lw $s6,($s4) # loading A[3] in s6
add $s4,$s4,224 # to reach A[10], we need to traverse (10-3)*32 bits from A[3]
add $s0,$s5,$s6 # adding the copied values of 'b' and a3
sw $s6, ($s4) # storing the sum
li $v0,10
syscall # all done!
.end main
==============================================================
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.