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

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!