Professional Documents
Culture Documents
22sp-041-cs Lab2 CO&AL
22sp-041-cs Lab2 CO&AL
LANGUAGE
#02
2. Discuss Word Addressable and Byte Addressable Memory also discuss the difference and what
type of addressing RISC-V Support.
3. Write RISC-V Assembly code to store the value in t4 into memory address 9.
4. Write RISC-V Assembly code to read a word of data at memory word 3 into s3.
li s1,5
sw s1,12(s0)
lw s3,12(s0)
5. Write RISC-V Assembly code to store the half word value in t6 into memory address 7.
6. Write RISC-V Assembly code to store 8-bit values from a t2 to memory address 5.
7. Write RISC-V Assembly code to load half-word from memory to any temporary register.
8. Write RISC-V Assembly code to stores the value held in t7 into memory address 0x2C (44).Also
determine which word is used at this address.
Ans.