A85: Packed BCD Routines
[Next][Index][Thread]
A85: Packed BCD Routines
I just finished putting together a routine to add packed BCDs of variable
size. Its about 60 bytes big and I was just wondering if there is already
a better routine around somewhere. Here is exactly what it does:
in:
hl->BCD1, de->BCD2 b=length of BCDs c=carry
out:
BCD1=BCD1+BCD2 (BCD1+BCD2 is stored in BCD1)
hl->first address after BCD1
de->first address after BCD2
c=carry
b=0
-Humberto
(0^V3
http://www.engr.csufresno.edu/~humberto/
humberto@engr.csufresno.edu