Question: HSC12 Assembly language please, Microprocessor 4. (10pts) Using Code Warrior write a subroutine that adds two 10-element arrays that start at addresses $1000 and $1050,

HSC12 Assembly language please, Microprocessor
4. (10pts) Using Code Warrior write a subroutine that adds two 10-element arrays that start at addresses $1000 and $1050, each element from one array to its corresponding element from the other array and stores the results in a third array at address $1100. Assume each element is one word. You should pass the addresses of the input arrays and result array to the subroutine through the stack. Draw a stack frame and a flow chart of your code. Provide your code and a snapshot of the memory that shows the input arrays and the result array. 4. (10pts) Using Code Warrior write a subroutine that adds two 10-element arrays that start at addresses $1000 and $1050, each element from one array to its corresponding element from the other array and stores the results in a third array at address $1100. Assume each element is one word. You should pass the addresses of the input arrays and result array to the subroutine through the stack. Draw a stack frame and a flow chart of your code. Provide your code and a snapshot of the memory that shows the input arrays and the result array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
