Question 8698 – Compiler-Design
February 4, 2024Disk-Management
February 4, 2024Computer-Organization
|
Question 12
|
The following is an 8085 assembly language program:
MVI B, OAH
MVI A, 05H
LXI H, IC40H
CALL SUB
HLT
SUB CMP M
RZ
INX H
DCR B
JNZ SUB
RET
(a) What does the program do?
(b) What are the contents of registers A and B initially?
(c) What are the contents of HL register pair after the execution of the program?
|
Theory Explanation.
|
Correct Answer: A
