Sunday, 17 July 2016

Write a program in assembly language (8085) to convert a Hexadecimal number into its equivalent binary.


ORG 1000H
                MVI A, 09H
MVI B, 08H
LXI H, 0150H
LOOP:    RLC
JC LOOP1
MVI M, 00H
INX H
DCR B
JNZ LOOP
LOOP1: MVI M, 01H
INX H
DCR B
JNZ LOOP
HLT
END

No comments:

Post a Comment

Popular Posts