mc8051fun/long_add__.c

26 lines
199 B
C
Raw Normal View History

2024-07-03 07:06:33 +02:00
/*
* @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;
}