Question
QUESTION 1: a. What do the AND, OR, XOR, and TEST instructions do and where do they store results? b. In the following instruction sequence,
QUESTION 1:
a. What do the AND, OR, XOR, and TEST instructions do and where do they store results?
b. In the following instruction sequence, show the values of the Carry, and Sign flags where indicated:
mov al,00001111b
test al,00000010b ; a. CF= SF=
mov al,00000110b
cmp al,00000101b ; b. CF= SF=
mov al,00000101b
cmp al,00000111b ; c. CF= SF=
c. In the following instruction sequence, show the resulting value of AL where indicated, in hex
mov al,01101111b
and al,00101101b ; here
mov al,6Dh
and al,4Ah ; here
mov al,00001111b
or al,61h ; here
mov al,94h
xor al,37h ; here
Please Please answer correctly .
Thank you.
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