Author Topic: program for addition of two bcd numbers  (Read 4750 times)

Offline MAHESHDEEVELA

  • Jr. Member
  • *
  • Posts: 4
program for addition of two bcd numbers
« 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

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: program for addition of two bcd numbers
« Reply #1 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