Question

In: Electrical Engineering

Assume $s0 = 0x00000005, compute the contents of the specified register after every step: sll $s1,...

Assume $s0 = 0x00000005, compute the contents of the specified register after every step:

sll $s1, $s0, 2 #$s1 = ?

or $s1, $s1, $s0 #$s1 = ?

andi $s1, $s1, 15 #$s1 = ?

andi $s2, $s2, 0 #$s2 = ?

nor $s2, $s2, $s1 #$s2 = ?

Solutions

Expert Solution

$s2 register value is not specified assumed as 0x5 and performed addi and nor operations.if you have any doubts regarding this ask me I will clarify .


Related Solutions

Translate the following C code into MIPS assembly code. Assume a in $s0, i in $s1,...
Translate the following C code into MIPS assembly code. Assume a in $s0, i in $s1, and base address of b[] in $s2, respectively. Note that the element’s data type in array b is integer (word). Please do not change the C code structure and please comment your MIPS code. for (i = 100; i>a; i--) {          b[i] = 16*i; b[i+1] = 16*(i+1); b[i+2] = 2*i + 16; }
Compute 20191023 mod 7 without using calculator. Show every step.
Compute 20191023 mod 7 without using calculator. Show every step.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT