Question: do all please Assume that you have five unsigned values stored in the stack shown in the Figure below. Write one program corresponding to each
Assume that you have five unsigned values stored in the stack shown in the Figure below. Write one program corresponding to each of the followings: a- The summation of value 1, value 3, and value 5: Where all of these values are stored in the stack segment shown in the figure below. b- If the content of AX=AABB, BX=BBAA, and SP-17FD, write a sub program to exchange the value of AX and BX. C- In the program written in part b, is there any overflow problem? explain why yes or no? d- Assume all values in the stack below still there without any change, explain how can you flush all of these values. e-Show how the contents of the flag register will change if you are executing the sub programs in part a and part b. SP STACK 17EE 17EF 17F0 17F1 17F2 17F3 17F4 11 Value_5 17F5 10 17F6 11 Value_4 17F7 16 17F8 B1 Value 3 17F9 20 17FA Al Value 2 17FB 19 17FC F1 Value_1 17FD 25 17FE Assume that you have five unsigned values stored in the stack shown in the Figure below. Write one program corresponding to each of the followings: a- The summation of value 1, value 3, and value 5: Where all of these values are stored in the stack segment shown in the figure below. b- If the content of AX=AABB, BX=BBAA, and SP-17FD, write a sub program to exchange the value of AX and BX. C- In the program written in part b, is there any overflow problem? explain why yes or no? d- Assume all values in the stack below still there without any change, explain how can you flush all of these values. e-Show how the contents of the flag register will change if you are executing the sub programs in part a and part b. SP STACK 17EE 17EF 17F0 17F1 17F2 17F3 17F4 11 Value_5 17F5 10 17F6 11 Value_4 17F7 16 17F8 B1 Value 3 17F9 20 17FA Al Value 2 17FB 19 17FC F1 Value_1 17FD 25 17FE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
