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

©TutorsGlobe All rights reserved 2022-2023.