Data definitions, memory offsets | computer Organization and Design | Hood College

Assignment4-DefiningData1.docx

CS 508

Computer Organization and Design

Fall 2023

Assignment #4

Data Definitions, Memory Offsets

Due Date: Wednesday, September 20, 2023 @ 11:59 PM

______________________________________________________________________________

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

Total 25 points

Calculate Your Essay Price
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more