Question: HW 1 is intended to be solved with knowledge from the textbook chapters below ( with an additional RISC - V notesheet for quick reference

HW1 is intended to be solved with knowledge from the textbook chapters below (with an additional RISC-V notesheet for quick reference). While assembly COULD get much more complex, more advanced features such as function calling, bit shifting, etc. are not needed for HW1. It is recommended to read through the information & content below as use them as core guidelines:
Chapter 2 of the Textbook covers how instructions are used to represent high-level programming concepts, with the most important ones for HW1 being:
Ch 2.2-2.3: Understanding registers & operands (how does an instruction interpret registers as inputs?)
Ch 2.7: How to convert conditionals (if, else, for, while, etc.) into labels, branches, and jumps in assembly.
Ch 2.8: Understanding the call stack and how to allocate it.
Ch 2.9: the American Standard Code for Information Interchange (ASCII), how characters are represented as binary.
Ch 2.13: an example of converting a C program to RISC-V assembly
Ch 2.14: understanding Arrays VS pointers & how to access characters in strings
RISC-V instructions note sheet: RISCVGreenCardv8-20151013.pdf
After you have reviewed the materials above, please download th

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!