27 lines
318 B
C
27 lines
318 B
C
#include "mc8051fun.h"
|
|
|
|
/**
|
|
* C wrapper for long_addbyte
|
|
*/
|
|
|
|
static void long_addbyte(__idata uint8_t * val, uint8_t len, uint8_t b) __reentrant
|
|
{
|
|
(void)val;
|
|
(void)b;
|
|
|
|
__asm
|
|
mov a,_bp
|
|
add a,#0xfd
|
|
mov r0,a
|
|
mov a,@r0 ; len
|
|
mov r7,a
|
|
dec r0
|
|
mov a,@r0 ; b
|
|
mov r0,dpl
|
|
lcall long_addbyte
|
|
|
|
__endasm;
|
|
|
|
}
|
|
|