Micro processor Lab Manual / Find Largest Of Two Numbers ALP

Program Name

Write a Assembly Language Program for Find Largest Of Two Numbers .
Theory
Instruction Mnemonic Operand Comments
LDA 8100 Load contents of 8100 into accumulator i.e 1st input
MOV B,A Move contents from accumulator to register B
LDA 8101 Load contents into accumulator i.e 2nd input
CMP B Compare contents of accumulator with register B (Back ground Subtraction)
JNC XX Jump if no carry
MOV A,B Move contents from B to A (i.e largest)
STA 8200 Store the result at 8200
HLT Stop
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back