Question: SOLVE Example 6 . 8 , Question 2 AND EX: 6 : 2 1 : Textbook Problems: Example 6 . 8 : 1 - Rewrite

SOLVE Example 6.8, Question 2 AND EX:6:21:
Textbook Problems:
Example 6.8:
1- Rewrite the subroutine "MY_SUB" by using PUSH and POP instructions instead of STR and
LDR instructions when accessing the stack memory.
2- Deduce how many write and read to/from the stack memory are there in the subroutine
"MY_SUB"
Example 6.21:
It is the same example, but to calculate the square root of x, where x has a value of 100 to 108.
Store the integer part in Register R1 and the decimal part in Register R2(4 digits only).
For instance for x=80, sqrt (x)=8.9943. Then R1=8 and R2=9943.
SOLVE Example 6 . 8 , Question 2 AND EX: 6 : 2 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!