julien lochen
Joined: 16 May 2008 Posts: 14
|
mic c and ASM |
Posted: Thu Jun 19, 2008 11:00 am |
|
|
Hello,
I have an issue when I use a sticker in my ASM routine included in a c file:
////////////////////////////////////
#include <PIC_16F886.h>
#byte PORTC = 0x07
#byte TRISC = 0x87
void main(void)
{
#ASM
bsf PORTC,7
bcf TRISC,7
loop goto loop
#ENDASM
}
////////////////////////////////////
it says:
Error 95 "PIC_16F886.c" Line 38(6,10): Expecting an opcode mnemonic loop
1 Errors, 0 Warnings.
something to do with "loop", shall I declare it at the beginning of my programm ?
thanks, julien lochen |
|