Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The main program is stored at beginning at 0100H. The main program(at 0120H) has

ID: 3764444 • Letter: T

Question

The main program is stored at beginning at 0100H. The main program(at 0120H) has called the subroutine at 0150H, and when the microprocessor is executing the instruction at location 0151(LXI). It is interrupted. Read the program, then answer the following questions;

START 0100 LXI SP, 0400

0103 EI

0120 CALL 0150H

SUB: 0150 PUSH B

0151 LXI B, 10FFH

0154 MOV C,A

015E POP B

015F RET

a. Specify the contents of stack location 03FFH after CALL intruction.

b. Specify the stack locations where the contents of registers B and C are stored.

c. When the program is interrupted, what is the memory address stored on the stack?

Explanation / Answer

15FFH