Professional Documents
Culture Documents
mid2longqمعالجات
mid2longqمعالجات
mid2longqمعالجات
11. Consider the following main program, subroutine and memory content.
FFFD 0B
FFFE 10
c) Specify the content of the stack pointer after the execution of the instruction PUSH PSW
in the subroutine. (1Mark)
SP = FFFBH
d) Specify the contents of the memory after the termination of the loop. (1Mark)
Memory
2000 06
2001 0E
2002 02
2003 04
2004 12
2005 0B
2006 14
… …
e) Specify the content of the program counter after the execution of the instruction RET in the
subroutine. (0.5 Mark)
PC = 100BH
10. Write an interrupt service routine to perform the following:
EI
MVI A,0A
SIM
LXI SP,00FF
LXI B,1987
LXI H,2215
PUSH B
PUSH H
POP B
POP H
HLT