Question: 4-Write an assembly program with the following specifications: a. It contains a subroutine that calculates the square of the number in register R6 and saves
4-Write an assembly program with the following specifications: a. It contains a subroutine that calculates the square of the number in register R6 and saves the result to R7. b. Calculate the square of numbers in five successive memory locations (starting from memory address Ox20000000) using your subroutine. The five memory locations should have numbers Ox1, Ox2, Ox3, Ox4 and Ox5. c. Save the results to five successive memory locations (starting from memory address Ox20000020). 4-Write an assembly program with the following specifications: a. It contains a subroutine that calculates the square of the number in register R6 and saves the result to R7. b. Calculate the square of numbers in five successive memory locations (starting from memory address Ox20000000) using your subroutine. The five memory locations should have numbers Ox1, Ox2, Ox3, Ox4 and Ox5. c. Save the results to five successive memory locations (starting from memory address Ox20000020)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
