Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 2 ELEN 304 Introduction to Microprocessor Student Name: Student ID: Assume that you have live unsigned values stored in the stack shown in the

image text in transcribed

Assignment 2 ELEN 304 Introduction to Microprocessor Student Name: Student ID: Assume that you have live unsigned values stored in the stack shown in the Figure below. Write one program corresponding to each of the following: 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 cxchange the value of AX and BX. - In the program written in parth, 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. - Show how the contents of the flag register will change if you are executing the sub programs in part a and part b. TITTIIIIIIIIIIIII SP STACK 17EE 17EF 17F0 17F1 17F2 17F3 17F4 11 Value 5 17F510 17F611 Value_4 1717 16 1718 BI Value 3 17F9 20 17FA A1 Value 2 17FB 19 17FC F1 Value 1 17FD 25 17FE Assignment 2 ELEN 304 Introduction to Microprocessor Student Name: Student ID: Assume that you have live unsigned values stored in the stack shown in the Figure below. Write one program corresponding to each of the following: 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 cxchange the value of AX and BX. - In the program written in parth, 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. - Show how the contents of the flag register will change if you are executing the sub programs in part a and part b. TITTIIIIIIIIIIIII SP STACK 17EE 17EF 17F0 17F1 17F2 17F3 17F4 11 Value 5 17F510 17F611 Value_4 1717 16 1718 BI Value 3 17F9 20 17FA A1 Value 2 17FB 19 17FC F1 Value 1 17FD 25 17FE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions