Question: Allocate two 6-byte arrays, sarray and darray, in the RAM area of menmory and initialize the array, sarray, with the numbers, $12, $34, 856, $78.
Allocate two 6-byte arrays, sarray and darray, in the RAM area of menmory and initialize the array, sarray, with the numbers, $12, $34, 856, $78. S9A and SBC. Write a program which copies the contents of aarray into darray in the reverse order. That is, the first byte of sarray is copied into the last byte of darray, the second byte into the second last byte, ete Copying mast be dose one byte at a time. You are required to use all of the 4 addressing modes, L.e., extended. coastant ofset indexed, register offset indexed and auto-increment/decrement indexed addresing modes. The auto-increment/decrement indexed addressing mode should be used at least twice in a row. RAMStart50800 and ROMStart $4000. Assemble the program and execute it in the single-step mode with the contents of the two arrays (in the ariable and memory windows) displayed. Do screen-captares (the source, variable and memory windows) at each of the following instanoes Before any instruction is executed, and right after each of the 1st, the 3rd and the 6th bytes is copied Submit the list file of your code with the 4 sets of screen-captures attached. Please Use Cade Waror Pluto lo cede 4hs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
