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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!