Answer:
Please kindly check explainations for the code.
Explanation:
lw $t1, Num1
lw $t2, Num2
lw $t3, Num3
blt $t1, $t2, if
beq $t1, $t2, elseif
else:
add $t0, $t3, 5
sw $t0, Result
endif:
#.....other statements after if-elseif-else
if:
sw $t1, Result
b endif
elseif:
ble $t2, $t3, if2
or $t0, $t1, $t3
sw $t0, Result
b endif
if2:
and $t0, $t2, $t3
sw $t0, Result
b endif
Go to attachment for the onscreen code.
Answer:
Data at the following addresses will be as following:-
200 :- 34
201 :- 12
202 :- 78
203 :- 56
Explanation:
If there is 1 byte storage.
if the data is of 4 digits.Then we have to store it in 2 memory locations.
The first two digits will be stored at the higher byte address that is 201 and the last two digits will be stored at then lower byte address that is 200.
The case is same with the next data 5678.
At address 202 :- 78 will be stored and at address 203 :- 56 will be stored.
Answer:
study Epic AMB400 using smart web and mobile flashcards created by top student, teachers and professor