Prev: AD9B Up: Map Next: ADBA
ADAE: Add two values together and adjust for BCD.
Used by the routines at ValueAddAsBCDCarry and BCD_Subtract.
Input
HL 8 digit BCD value to add to.
DE 8 digit BCD value to add.
Output
ValueAddAsBCD ADAE LD B,$04
ADB0 AND A
ValueAddAsBCD_0 ADB1 LD A,(DE)
ADB2 ADC A,(HL)
ADB3 DAA
ADB4 LD (HL),A
ADB5 INC HL
ADB6 INC DE
ADB7 DJNZ ValueAddAsBCD_0
ADB9 RET
Prev: AD9B Up: Map Next: ADBA