This program will add two decimal numbers
LXI H,2200H
MOV A,M
INX H
ADD M
DAA
STA 2300H
HLT
DAA will convert HEX to valid BCD number
now the program can be easily understood
You might be also interested in:
:: 8051 or PIC microcontroller which is better
:: Effective addresses
:: Floating Point Initializations
No comments:
Post a Comment