Page 1 of 1

d. Specify the contents of register x6 and memory location at address 2 (i.e. Memory[2]) in hexadecimal format after exe

Posted: Wed Apr 27, 2022 3:08 pm
by answerhappygod
d. Specify the contents of register x6 and memory location at
address 2 (i.e. Memory[2]) in hexadecimal format after executing
the following RISC-V code. Assume the initial values are as
follows: x20 = 0x C7B2345D8A09FEB1, Memory[2] = 0xAD, Memory[3] =
0x74: sh x20, 2 (x0) lb x6, 3 (x0) (x6) =
------------------------------------------------------ Memory[2] =
---------------------
e. Specify the contents of registers x17 and x18 in hexadecimal
format after executing the following RISCV code: lui x17, 0x7A2D3
addi x18, x17, 0xC59 (x17) =
----------------------------------------------------------------------
(x18) =
---------------------------------------------------------------------
risc-v