Problem 3

Write a Simple Computer program that reverses the elements of an array. The array is stored in cells 81, 82, and so on. The length is stored in cell 80. Be sure not to modify the length. Feel free to use any cells below 80 for helper variables. Do not modify any cells beyond the array values.

For example, if cells 80, 81, 82, 83, 84, 85 contain 5 10 20 30 40 50, they should contain 5 50 40 30 20 10 after your program runs. Cells 86 and beyond should remain unchanged.

Click the Check button to check your work.


Registers: PC AX
Delay