Question
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
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:
0xFDFFEF1A, 0xDC184F28, 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:
ENTRY
;Insert Code Here;
b stop
TEST_DATA DCD 0xEFD76541 , 0x876FDCBB , 0xA9875432 , 0xBBB00BBB
NEW Fill 20
stop END
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started