mc8051fun/long_add__.c

28 lines
234 B
C
Raw Permalink Normal View History

2024-07-03 07:06:33 +02:00
/*
* @r0 = @r0+@r1
* r7=len
*/
static void long_add__() __naked
{
__asm
2024-07-14 23:43:05 +02:00
.globl long_add
.globl long_addc
2024-07-03 07:06:33 +02:00
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;
}