Question: Note: For Problem # 2 Solve only a) , c) , e) & f) , For Problem # 3 do the whole of it. Thanks

Note: For Problem # 2 Solve only a) , c) , e) & f) , For Problem # 3 do the whole of it. Thanks in advance.

Note: For Problem # 2 Solve only a) , c) , e)

Problem #2 Assume $50-70000000H and $sE0FFFFFFFH. Translate the following instructions to machine code and determine the contents of $to after executing the instruction in case of sw instruction, determine the address and contents of the memory location). In case of add and sub instructions, determine the value of an overflow flag and zero flag. Note that each instruction is independent. (a) add $t0, $s0, $s1 (b) sub $t0, $s0, $s1 (c) and $t0, $s0, $s1 (d) or $t0, $s0, $s1 (e) sw $s0, -4($s1) (f) lbud $t0, 0($t1); where $tl 00000001H and MI00000001Hl 11223344H Problem #3 instructions to machine code and determine the contents of $t2 after executing these instructions. Assume that the program is stored in memory starting address is 0 slt $t2, $t0, $t1 add $12, $12, Zero beq $t2, $zero, ELSE DONE addi $t2, $t0, 4. ELSE: DONE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!