NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: MAHESHDEEVELA on March 02, 2016, 06:57:33 AM

Title: program for addition of two bcd numbers
Post by: MAHESHDEEVELA on March 02, 2016, 06:57:33 AM
 hi i have the doubt on addition of two bcd numbers any one can post program for bcd addition
Title: Re: program for addition of two bcd numbers
Post by: Frank Kotler on March 02, 2016, 09:09:30 AM
Ahhh... I almost remember bcd. Seems to me we used an ordinary integer "add" and then followed it with one of those "adjust" instructions, no?
Code: [Select]
mov al, 9
add al, 8
daa  ; or aaa?
Something like that? But I recall that the point with bcd was to do multiple digits - maybe "many" digits.

Do you have a clear idea what you want to do? (the "customer specification" otherwise known as the "assignment")

Best,
Frank