Question: Create a RISC V program for each of the following exercises. Exercise aex4a: Use the lui and addi instructions to store the value of 8000

 Create a RISC V program for each of the following exercises.

Create a RISC V program for each of the following exercises.

Exercise aex4a: Use the lui and addi instructions to store the value of 8000 in x6, and then use the addi instruction to calculate the value of 8000-10 and store the result in x5. Save your solution as a file named aex4a.asm for possible future use. Exercise aex4b: Use the lui and addi instructions to store the value of -8000 in x6, and then use the addi instruction to calculate the value of -8000+10 and store the result in x5. Save your solution as a file named aex4b.asm for possible future use. Exercise aex4c: Use the lui and addi instructions to store the value of 23456 in x6 and the value of 12345 in x7. Then use the sub instruction to calculate the value of 23456-12345 and store the result in x5. Save your solution as a file named aex4c.asm for possible future use. Exercise aex4d: Use only addi, lui, slli and add instructions to store in x5 the value of 0x1234587811223344. Save your solution as a file named aex4d.asm for possible future use

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!