From: Javier <jva...@lo...> - 2005-03-15 15:22:47
|
Jochen Schoenfeld wrote: > Javier wrote: > >> Hi list, i'm having some issues on label usage. >> >> I have a simple function like this: >> >> unsigned char counter; >> >> void delay256() >> { >> counter = 255; >> >> _asm >> 00001$: >> decfsz _counter, 1 >> ljmp 00001$ >> _endasm; >> } >> >> The compilation give me errors like: >> >> Processor: 16f819 >> Error while parsing peep rules (check peeph.def) >> Line: ljmp 00001$ >> Token: '$' >> >> What is the problem? >> Thanks. >> >> >> > Hi, Javier! > > I use labels in the form > _00001$ > (leading underscore!). > > I think this must be because else it is interpreted as a number and > not a label. > > Yours, > Jochen > > I'm getting the same error: Processor: 16f819 Error while parsing peep rules (check peeph.def) Line: ljmp _00001$ Token: '$' May be the last snapshot is broken? |