mc8051fun/long_1cpl__.c

23 lines
192 B
C
Raw Normal View History

2024-07-03 06:54:47 +02:00
#include "mc8051fun.h"
static void long_1cpl__() __naked
{
__asm
.globl long_1cpl
long_1cpl:
clr c
001$:
mov a,#0xff
subb a,@r0
mov @r0,a
inc r0
djnz r7,001$
ret
__endasm;
}