Question

In: Computer Science

Choose two flags (bits) from the 8086 status register, also known as flags register. In your...

Choose two flags (bits) from the 8086 status register, also known as flags register. In your own words briefly describe the purpose of each flag and how it works

Solutions

Expert Solution

There are a total of 6 flags in the 8086 status register and they are -

1. Sign flag

2. Zero flag

3. Auxiliary carry flag

4. Parity flag

5. Carry flag

6. Overflow flag

(1) The overflow flag has 2 values either 0 or 1. It's default value is 0 whenever this flag is active its value becomes 1. This flag is used when as name suggests there is an overflow of anything, mostly when the output of the operation has more bits than the available one.

Lets Understand this with a help of example. Suppose you want to add the 2 numbers let's say 127 and 127 but using a 8 bit register. So technically 127 + 127 will be 254 but as we are using a 8 bit register so the output in binary would be 1111 1110 which will be - 2 in 2's compliment and this is a negative value. This scenario is a example of overflow as you are getting a negative value after adding 2 positive numbers os the flag will be set to 1. This flag is crucial for the system to let him know that there is some error in the code.

(2) The zero flag (Z) is one of the most crucial flags in the register. Like the overflow flag it also has 2 values that's either 0 or 1 and the default value is 0 and when the flag has to be set its value become 1. This flag is used to indicate that whether the output or the result of any arithmetic operation is zero or not. If the result is zero the flag sets to 1 else it remains 0. Let understand this with the help of an example -

MVI B 10 ##(load 10H in register B)

SUB B (B = B– B)

This will result in 0 as the result which as a result will set the zero flag to 1.


Related Solutions

Choose one of the questions below and share your key takeaways. Also, include one resource from...
Choose one of the questions below and share your key takeaways. Also, include one resource from the Internet that relates to your question. Initial posts should run from 300 to 400 words. Questions To Answer Identify and Describe the Stages in the Process for Developing Employees Discuss the Performance Appraisal Cycle Identify Four Performance Appraisal Tools and Tell How Each can be Used in Appraising Employees Describe Four Major Problems Associated With Performance Appraisal Explain Ways of Dealing with Appraisal...
Choose ads from two competing products of your choice, such as two toothpaste ads, two automobile...
Choose ads from two competing products of your choice, such as two toothpaste ads, two automobile ads, cell phone ads. the ads may either be online or in print. Evaluate the two ads according to their creativity, clarity, likability, memorability, and effectiveness. after your evaluation, write a report that compares the two ads, and make a final recommendation based on your evaluation. The report should contain the following sections, presented in this order: introduction, statement of purpose, recommendation, methodology and...
PVC, also known as "vinyl" is a controversial plastic. Why? Comment on the controversies, either from...
PVC, also known as "vinyl" is a controversial plastic. Why? Comment on the controversies, either from the standpoint of a consumer or a worker in the vinyl industry.
Osteogenesis Imperfecta is also known as Brittle Bone Disease. The condition results from a lack of...
Osteogenesis Imperfecta is also known as Brittle Bone Disease. The condition results from a lack of collagen. What role does collagen play in the homeostatic condition of normal bone tissue? What other systems in the body might be impacted by this lack of collagen
Discuss your findings of the Conditions of Participation (COP) from the Code of Federal Register (CFR)...
Discuss your findings of the Conditions of Participation (COP) from the Code of Federal Register (CFR) as it relates to the various life safety code or fire codes for various healthcare organizations. The attachment contains several life safety rules that administrators of nursing homes and facility directors for all types of healthcare need to be explicitly aware of, as their organization will be inspected annually by the State Fire Marshal. The CFR's state that organizations have to follow all the...
Jesus is also known for his emphasis on loving your neighbor as yourself. He stated, "Love...
Jesus is also known for his emphasis on loving your neighbor as yourself. He stated, "Love one another, as I have loved you." Share your thoughts on these words of Jesus. Are they too idealistic, or do they have practical implications both locally and internationally? How might Confucius react to these words? Zoroaster? Guru Nanak? Share your thoughts in a lively discussion.
Choose one or two well-known brands and describe and discuss their target market(s), as well as...
Choose one or two well-known brands and describe and discuss their target market(s), as well as how they established a competitive advantage in their marketplace. 2 page essay APA format
CSharp Simple BlackJack game Also known as 21. Two players (the user and computer) play against...
CSharp Simple BlackJack game Also known as 21. Two players (the user and computer) play against each other. They are drawing poker cards in order to •Make the added rank (score) as close as to 21, but without going over 21.•And make the added score larger than the opponent’s.−Each player starts with two random cards. −Then ask the user if one more card until the user is satisfied with his/her total score. If the user’s total score gets 21, announce...
Choose two applications from the list below. You should make your selections so that you are...
Choose two applications from the list below. You should make your selections so that you are able to describe both points of similarity and points of difference when answering the questions that follow. • Electronic file transfer • Electronic mail • Bit-torrent • Internet Relay Chat (IRC) • The Domain Name System (DNS) • IP Telephony (VoIP, not Skype or Facetime, etc.) • Real-time streaming (Not web-based solutions such as Youtube, Facebook, Instagram, etc.) Answer the following questions about both...
Choose a well-known publicly traded company that none of your other classmates have chosen, and explain...
Choose a well-known publicly traded company that none of your other classmates have chosen, and explain what costs would be included in each of the three manufacturing cost categories. Include a link to this financial statement in your post. ( Adidas would be a good choice). A minimum of 150 words please.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT