You are on page 1of 1

Summer 2023, CSE332/EEE332/ETE332/ETE 453; Section 07

Midterm Exam; Full marks: 15; Time: 50 minutes (SET 01)

 Answer any three questions.

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. 2 Write an assembly language code to display a number 5 in a seven-segment 5


display circuit. Note that the circuit is active low. Explain the look up table content.

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

Summer 2023, CSE332/EEE332/ETE332/ETE 453; Section 07


Midterm Exam; Full marks: 15; Time: 50 minutes (SET 02)

 Answer any three questions.

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. 2 Write an assembly language code to display a number 4 in a seven-segment 5


display circuit. Note that the circuit is active high. Explain the look up table
content.

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

You might also like