You are on page 1of 1

LAB ASSIGNMENT

Q.1) What will be the value of BX after the following instructions execute?
mov bx,0FFFFh
and bx,6Bh
Q.2) What will be the value of BX after the following instructions execute?
mov bx,0649Bh mov bx,029D6h
or bx,3Ah xor bx,8181h
Q.3) In the following instruction sequence, show the resulting value of AL where indicated, in binary:
Q.4) mov al,01101111b mov al,00001111b
and al,00101101b ; a. or al,61h ; c.

mov al,6Dh mov al,94h


and al,4Ah ; b. xor al,37h ; d.
Q.5) In the following instruction sequence, show the values of the Carry, Zero, and Sign flags where
indicated:
mov al,00001111b
test al,00000010b ; a. CF= ___ ZF=____ SF=___

mov al,00000110b
cmp al,00000101b ; b. CF=____ ZF=___ SF=___

mov al,00000101b
cmp al,00000111b ; c. CF=____ ZF=___ SF=___

NOTE:
• AFTER THE SUBMISSION OF THE ASSIGNMENT, THERE WILL
BE A VIVA SESSION FOR FURTHER ASSESSMENT AND
EVALUATION.
• ASSIGNMENTS SUBMITTED AFTER THE DEADLINE WILL NOT
BE CONSIDERED FOR GRADING.
• CHEATING AND PLAGIARISM WILL NOT BE TOLERATED AND
WILL LEAD TO STRICT PENALTIES INCLUDING ZERO MARKS
IN ASSIGNMENTS AS WELL AS REFERRAL TO THE HOD FOR
APPROPRIATE ACTION(S).

You might also like