Hi,
I am trying to compile the following code:
static inline void uart_tx(char c)
{
__asm
jnb _EA,label1
setb _ea_hold
label1:
__endasm'
}
void anotherfunction()
{
uart_tx(c);
}
In this case SDCC keeps complaining :
Error: <m> multiple definitions error
Error: <p> phase error: label location changing between passes 2 and 3
If I replace the labels to 0001$ , then the errors dont exist anymore. Is
there any other way to use inline assembly with labels?
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user