Program Name
Write a Assembly Language Program for Find Smallest 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) |
JC |
XX |
Jump if carry |
MOV |
A,B |
Move contents from B to A
(i.e smallest) |
STA |
8200 |
Store the result at 8200 |
HLT |
|
Stop |
|
Program Code
|
Online compiler for 8085 Microprocess Compiler
|
|