Sunday, 17 July 2016

Write a program in assembly language(8085) to find the largest number among three numbers stored in registers.


ORG 1000H
                MVI A, 00H
                MVI B, 08H
MVI C, 02H
MVI D, 09H

MOV A, B
CMP C
JNC LOOP
MOV A, C
JZ LOOP
LOOP:  CMP D
JC LP1
LP1:    MOV A,D
HLT

No comments:

Post a Comment

Popular Posts