Question 8698 – Compiler-Design
February 4, 2024
Disk-Management
February 4, 2024
Question 8698 – Compiler-Design
February 4, 2024
Disk-Management
February 4, 2024

Computer-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?

A
Theory Explanation.
Correct Answer: A

Leave a Reply

Your email address will not be published. Required fields are marked *