mc8051fun/long_addbyte.c

27 lines
318 B
C
Raw Permalink Normal View History

2024-07-03 06:54:47 +02:00
#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;
}