CS508 – Data Definitions, Memory Offsets

Data Definitions, Memory Offsets

Having Trouble Meeting Your Deadline?

Get your assignment on CS508 – Data Definitions, Memory Offsets completed on time. avoid delay and – ORDER NOW

CS 508

Computer Organization and Design

Assignment #4

Data Definitions, Memory Offsets

The following list is a description for data that are to be defined in the data segment of a RISC-V assembly language program. The data items are to be defined in the order listed. For this step, start with the shell program we created in class and using the RARS program, code the data segment using the data items below. For each item, determine the memory offset and include it as a comment after each definition like we did in the class example. Remember, each data item requires a symbol name, assembler directive and initial value as specified. Appropriate assembler directives should be selected based on the size of the data values specified. You are to select an arbitrary value for the initial value for each data item.

1. An 8-bit numeric value in the range -128 to +127.

2. A character string containing 8 alphanumeric characters.

3. A 16-bit numeric value in the range 0 to 1000.

4. A single lower-case alphabetic character.

5. A 32-bit numeric value in the range -500 to +250.

6. A 64-bit numeric value equal to the number of seconds in a week.

7. An allocation of empty memory equivalent to the total number of bytes required for data items 1 – 6.

Submit your source code assembly language program (with .asm extension). Note: the text segment of this program will only consist of the two lines of exit code. There are no other coding requirements in this assignment.

Grading Criteria for this assignment:

Header comments: 5 points

Correct data segment definition: 10 points

Correct memory offsets listed in comments: 10 points

Explanation & Answer

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Order Now and we will direct you to our Order Page at Litessays. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

Similar Posts