26 lines
199 B
C
26 lines
199 B
C
/*
|
|
* @r0 = @r0+@r1
|
|
* r7=len
|
|
*/
|
|
|
|
static void long_add__() __naked
|
|
{
|
|
__asm
|
|
long_add:
|
|
clr c
|
|
long_addc:
|
|
001$:
|
|
mov a,@r0
|
|
addc a,@r1
|
|
mov @r0,a
|
|
inc r0
|
|
inc r1
|
|
djnz r7,001$
|
|
ret
|
|
|
|
__endasm;
|
|
}
|
|
|
|
|
|
|