Assignment 1
Assignment 1
Q2.
Q3.
Q4.
Q5.
Q6.
Q7.
Q8.
Q9.
Q10.
Q11.
Q12.
Q13.
Q14.
Q15.
Q16.
Q17.
(f) AND the data stored in four words before the location addressed by SI with DX
and save the result in DX
Select an OR instruction that will :
(a) OR BL with AH and save the result in AH
(b) OR 88H with ECX
(c) OR DX with SI and save the result in SI
(d) OR 1122H with BP
(e) OR the data addressed by BX with CX and save the result in memory
(f) OR the data stored 40 bytes after the location addressed by BP with AL and save
the result in AL
(g) OR AH with memory location WHEN and save the result in WHEN
Select the XOR instruction that will :
(a) XOR BH with AH and save the result in AH
(b) XOR 99H with CL
(c) XOR DX with DI and save the result in DX
(d) XOR 1A23H with ESP
Develop a sequence of instructions that sets(1) the rightmost four bits of AX; clears
(0) the leftmost three bits of AX; and inverts bits 7, 8 and 9 of AX.