Question
1) Provide short answers to the following questions about the Intel 8086 processor assembly language: a) ADC and SBB can be forced to behave exactly
1) Provide short answers to the following questions about the Intel 8086 processor assembly language:
a) ADC and SBB can be forced to behave exactly like ADD and SUB by inserting some other instruction before ADC and SBB. What instruction must be inserted in front of ADC to make it behave like ADD? In front of SBB to make it behave like SUB?
b) Given that you can manipulate data items on the top of stack using PUSH and POP, explain how you could modify a return address on the top of stack so that a RET instruction will cause the 80x86 to return two bytes beyond the original return address.
c) Provide four different ways to add two to the value in the BX register. No way should require more than two instructions (hint, there are at least six ways of doing this!)
d) Explain the difference between the carry flag and the overflow flag.Explain the difference between the carry flag and the overflow flag.
e) Which of the shift, rotate, and logical instructions do not affect the zero flag?
f) Which flag(s) does the 80x86 use to check for unsigned arithmetic overflow?
g) Which flag(s) let you check for signed overflow?.
h) Repeat the above question for a signed comparison.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started