Assignment of CAO
Assignment of CAO
1. Convert the following MIPS assembly code into machine language using R-type
instruction format and write the instructions in hexadecimal and show all the
necessary steps. (8 Point)
A. add $t0, $s6, $s2
B. sub $t4, $s7, $s1
2. Convert the following program from machine language into MIPS assembly
language and finally write in the form of high level language then explain in
words what the program does. (6 Point)
Assume variables A–C are held in registers $s0–$s2 and X–Z are in $t0–$t2.
A. 0 x 01094020
3. To what cache set in the bellow Figure does the word at address 0x00000000
and 0x0000001C maps? Name another address that maps to the same set. (6
pts)