Write an assembly program for 8085 microprocessor to find greatest between two numbers
Write an assembly program for 8085 microprocessor to find greatest between two numbers
Program:
MVI B, 30H
MVI C, 40H
MOV A, B
CMP C
JZ EQU
JC GRT
OUT PORT1
HLT
EQU: MVI A, 01H
OUT PORT1
HLT
GRT: MOV A, C
OUT PORT1
HLT
Comments
Post a Comment