You are on page 1of 7

COMPUTER ORGANIZATION AND ASSEMBLY

LANGUAGE
#02

Student Name: SUBUL RAZA


Roll Number: 22SP-041-cs
Section: A
Tasks:

1. Run above commands on Venus Simulator.

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.

We don’t have t7 register address therefore we use t6 instead of t7


Word 12 is used in this address.

You might also like