Question: D.29 [M] The decimal-to-binary conversion program of Problem D28 is to be implemented using two nested subroutines. The main program that calls the rst subroutine
![D.29 [M] The decimal-to-binary conversion program of Problem D28 is to](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670ebc5322b27_963670ebc5303a33.jpg)
D.29 [M] The decimal-to-binary conversion program of Problem D28 is to be implemented using two nested subroutines. The main program that calls the rst subroutine passes two parameters by pushing them onto the stack whose pointer registeris R13. The rst parameter is the address of a 3-byte memory bu'er area for storing the input decimal-digit characters. The second parameter is the address of the location where the converted binary value is to be stored. The rst subroutine reads the three characters from the keyboard, then calls the second subroutine to perform the conversion. The necessary parameters are passed to this subroutine via the processor registers. Both subroutines must save the contents of any registers that they use on the stack. (0) Write the two subroutines for the ARM processor. (45) Give the contents of the stack immediately after the execution of the instruction that calls the second subroutine
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
