Professional Documents
Culture Documents
1. Describe what happens to the status flags as the sequence of instructions that follows is executed.
MOV AX, 1234H
MOV BX, 0ABCDH
CMP AX, BX
2. Implement an instruction sequence that calculates the absolute difference between the contents of AX and
BX and places it in DX.
3. Write an instruction sequence to save the current contents of the 8088’s flags in the memory location at
offset MEM1 of the current data segment and then reload the flags with the contents of the storage location
at offset MEM2.
5.The 2’s-complement signed data contents of AL are –1 and that of CL are –2. What result is produced in
AX by executing the following instruction?
MUL CL
IMUL CL