Professional Documents
Culture Documents
Mid Question - Sec 07 Set 01 and 02
Mid Question - Sec 07 Set 01 and 02
Q. 1 Draw schematic diagram to show what happens after the execution of the 5
following instruction.
a) PUSH DX (If before execution: SS= 1AA0H, SP =0001H)
b) REP STOSB ( If before execution: CX=2, D=0, ES=AB00H, DI=C02BH)
Q. 3 Suppose AL contains A3H and BH contains FAH. Find the values of AX register after 5
executing the following instructions
a) DIV BH
b) IDIV BH
Q. 4 Suppose CX=8620H and BX=82EDH. Determine whether the ABC label will execute 5
after the conditional jump instruction or not? Explain your answer.
CMP CX, BX
JL ABC
Q. 1 Draw schematic diagram to show what happens after the execution of the 5
following instruction.
a) PUSH DX (If before execution: SS= 12A0H, SP =0001H)
b) REP STOSB ( If before execution: CX=2, D=1, ES=A000H, DI=002BH)
Q. 3 Suppose AL contains A5H and BH contains FEH. Find the values of AX register after 5
executing the following instructions
a) DIV BH
b) IDIV BH
Q. 4 Suppose CX=8520H and BX=82EDH. Determine whether the ABC label will execute 5
after the conditional jump instruction or not? Explain your answer.
CMP CX, BX
JG ABC