Question: Lab B-05: Programming Exercise 3 1. Write ARM instructions to store the following block of data (32 bit words) in memory locations starting from 0x6000

 Lab B-05: Programming Exercise 3 1. Write ARM instructions to store

Lab B-05: Programming Exercise 3 1. Write ARM instructions to store the following block of data (32 bit words) in memory locations starting from 0x6000 to 0x6014. Subsequently, copy the data to the locations 0x7000 to 0x7014. Data (H): 0x01, 0x02, 0x03, 0x04, 0x05, 0x06 2. Modify Question 1 to transfer the data to the locations 0x7000 to 0x7014 in the reverse order. (E.g. the data byte 06H at location 0x6014 should be stored at location 0x7000.) 1. Initialize source address. Initialize destination address. Initialize counter. MOV R2, #Ox6000 MOV R3, #0x7000 MOV R4, #06H Load data into RS and set pointer to next source data. Store data in RS to (R3) and set pointer to next destination. loop LDR R5,[R2), #4 STR R5,(R3),#4 Decrement counter SUB R4, R4, #Ox01 NO Zero (any data left)? CMP R4,#Ox00 BNE loop YES END 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!