New function: long_xcpy

This commit is contained in:
7u83 2024-06-05 08:43:04 +02:00
parent ea36658f5e
commit 5930cdc0b5
2 changed files with 19 additions and 1 deletions

View File

@ -21,7 +21,7 @@ LIBSRC = uart_init_.c uart_send_chr.c uart_send_str.c \
sevenseg_dec.c sevenseg_dec_inv.c \
int_to_bcd.c getbutton.c \
getpin.c setpin_lo.c setpin_hi.c setpin.c getport.c \
long_xadd.c long_xsub.c long_xset.c long_xrlc.c long_xdiv.c
long_xadd.c long_xsub.c long_xset.c long_xrlc.c long_xdiv.c long_xcpy.c
LIBOBJ =$(patsubst %.c,%.rel, $(LIBSRC))
LIBNAME=mc8051fun.lib

18
long_xcpy.c Normal file
View File

@ -0,0 +1,18 @@
void long_xcpy() __naked
{
__asm
.globl long_xcpy
long_xcpy:
movx a,@r1
movx @r0,a
inc r0
inc r1
djnz r7,long_xcpy
ret
__endasm;
}