Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ARM Assembly Language Part 2 Description: For lab 3 part 2, you will be given four different word-length numbers stored sequentially in a DATA area

ARM Assembly Language

image text in transcribedimage text in transcribed

Part 2 Description: For lab 3 part 2, you will be given four different word-length numbers stored sequentially in a DATA area of memory. This data area of memory will start at the address labeled "TEST_DATA". Your program will be responsible for concatenating the first (lowest significant digits) byte of the first word with the second lowest byte from the second word with the third lowest byte from the third word with the highest byte from the fourth word. Your program will then store the newly created word in the following area of memory labeled "NEW". For example, if you are given the following strings: OxFDFFEF1A, OxDC184F28, 0x897FDAB1, 0xFFFF8473 The answer stored in the next word of memory should be: 0xFF7F4F1A. Tip: remember, every address corresponds to a byte in memory. Also, be careful about the endian-ness of your program. Code Given: AREA asm_data, DATA, READONLY TEST_DATA DCD OXEFD76541 DCD 0x876FDCBB DCD OXA9875432 DCD OXBBBOOBBB test data 0 - 0x000 offset test data 1 - 0x004 offset ;test data 2 - 0x008 offset ;test data 3 - 0x00c offset NEW AREA storage, DATA, READWRITE SPACE 20 END Part 2 Description: For lab 3 part 2, you will be given four different word-length numbers stored sequentially in a DATA area of memory. This data area of memory will start at the address labeled "TEST_DATA". Your program will be responsible for concatenating the first (lowest significant digits) byte of the first word with the second lowest byte from the second word with the third lowest byte from the third word with the highest byte from the fourth word. Your program will then store the newly created word in the following area of memory labeled "NEW". For example, if you are given the following strings: OxFDFFEF1A, OxDC184F28, 0x897FDAB1, 0xFFFF8473 The answer stored in the next word of memory should be: 0xFF7F4F1A. Tip: remember, every address corresponds to a byte in memory. Also, be careful about the endian-ness of your program. Code Given: AREA asm_data, DATA, READONLY TEST_DATA DCD OXEFD76541 DCD 0x876FDCBB DCD OXA9875432 DCD OXBBBOOBBB test data 0 - 0x000 offset test data 1 - 0x004 offset ;test data 2 - 0x008 offset ;test data 3 - 0x00c offset NEW AREA storage, DATA, READWRITE SPACE 20 END

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

Students also viewed these Databases questions