Program to add 2 BCD numbers

Write down the assembly language program in order to add the 2 BCD numbers?

E

Expert

Verified

LXI H, 2200H; Initialize the pointer
MOV A, M; Get first number
INX H; Increment pointer
ADD M; add two numbers
DAA; Convert the HEX to valid
BCD STA 2300; store the result
HLT

   Related Questions in Assembly Language

2015 ©TutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.