New function: long_xcpy
This commit is contained in:
parent
ea36658f5e
commit
5930cdc0b5
2
Makefile
2
Makefile
@ -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
18
long_xcpy.c
Normal 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user