Question
1) The flag condition for signed GE (greater than or equal) is N == V. Give examples (with 8 bit inputs) that verify the condition
1) The flag condition for signed GE (greater than or equal) is N == V. Give examples (with 8 bit inputs) that verify the condition is both directions.
Specifically, give four examples:
- one example where GE condition holds and N = V = 1
- one example where GE condition holds and N = V = 0
- one example where GE condition does not hold and N = 1, V = 0
- one example where GE condition does not hold and N = 0, V = 1
(It is possible that no combinations of inputs exist.)
2) Write a single instruction code in Legv8 assembly language that performs the operation Y = -X, given that the registers X9 and X10 hold the values of variables X and Y.
State precisely the set of values of X for which the above operation causes overflow.
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