I was able to obtain these flag values without using the emulator: So I really n
ID: 3800000 • Letter: I
Question
I was able to obtain these flag values without using the emulator:So I really need to know where I can find the flag information in the emulator as it's running the code to verify that my answers are right. Thank you in advance. (The emulator is 8086) 1. Where indicated, write down the values of the Carry, Sign, Zero, and overflow flags after each instruction is executed Verify your solution by running the program using the 8086 emulator. You must include the screen shot of your program to receive credit. ax, 7FF0h mov al, 10h add CF SF ZF OF ah, 1 add CF SF ZF OF add 2 CF SF ax ZF OF
Explanation / Answer
mov ax,7fff0h
add al,10h
cf = 1 of = 0 sf = 0
add ah,1
cf = 0 of = 1 sf = 1
add ax,2
cf = 0 of = 0 sf = 1
I run the code in 8086 kit. I got the flag status as above.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.