Micro processor Lab Manual / Addition two 8 bit numbers and display in decimal

Program Name

Write a Assembly Language Program for Addition two 8 bit numbers and display in decimal.
Theory
Instruction Mnemonic Operand Comments
MVI A,05H Move immediately input 05H of addition into accumulator
MVI B,04H Move immediately 2 nd input 04H of addition into register B
ADD B Add the content of register B with accumulator and store it in accumulator
DAA Decimal adjust after addition
STA 8200 Store result of addition at 8200
HLT STOP
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back