Page 1 of 1

ASM Window Error

Posted: Thu Apr 26, 2007 7:41 pm
by saschech@gmx.de
Hallo

If i build code:

asm
{
label:

nop
nop
nop
nop
nop

decfsz _FCV_t , f

goto label
}

i become the error:
D:\sachs_work\microchip\muster 4620\sapic muster 18f4620.c(9249): error: error in built-in assembly
D:\sachs_work\microchip\muster 4620\sapic muster 18f4620.c(9251): error: jump to undefined label
sapic muster 18f4620.c success

failure

........
Return code = 1

please can jou help me?

regards wolfgang

Posted: Thu Apr 26, 2007 7:47 pm
by saschech@gmx.de
asm
{
label:
nop
nop
nop
nop
nop

decfsz _FCV_t , f

goto label

}

Posted: Thu Apr 26, 2007 7:51 pm
by saschech@gmx.de
hallo

in front of the nops ......... there are 5 spaces.

if i send the message it is without?

Posted: Fri Apr 27, 2007 9:27 am
by Steve
It may be the variable name that has the problem. Please try the following:

Code: Select all

decfsz _FCV_T, f 

Posted: Fri Apr 27, 2007 10:48 am
by saschech@gmx.de
hallo

I have do this,it is the thame.

D:\sachs_work\microchip\muster 4620\sapic muster 18f4620.c(9246): error: error in built-in assembly
D:\sachs_work\microchip\muster 4620\sapic muster 18f4620.c(9247): error: jump to undefined label
sapic muster 18f4620.c success

failure

Posted: Fri Apr 27, 2007 10:59 am
by Steve
I think this will solve the problem (I've just managed to compile a similar one here):

Code: Select all

decfsz _FCV_T, F