22 lines
234 B
C
22 lines
234 B
C
#include "mc8051fun.h"
|
|
|
|
void long_invert(__idata uint8_t *val, uint8_t len) __reentrant
|
|
{
|
|
(void)val;
|
|
(void)len;
|
|
|
|
__asm
|
|
|
|
mov a,_bp
|
|
add a,#0xfd
|
|
mov r0,a
|
|
mov a,@r0 ; len
|
|
mov r7,a
|
|
mov r0,dpl
|
|
lcall long_invert
|
|
__endasm;
|
|
|
|
|
|
}
|
|
|