On Tue, 20 May 2003, Scott Dattalo wrote:
> What happens if you do this:
>
> _asm
> movlw 0xA6
> movwf _delay
> L1: decfsz _delay,f
> goto L1
> _endasm;
>
I get:
Processor: p16f628
GOTO L1
ERROR: LinkFlow, branch instruction doesn't have label
*** Saved 1 registers ***
No registers saved on this pass
GOTO L1
ERROR: LinkFlow, branch instruction doesn't have label
*** Saved 1 registers ***
No registers saved on this pass
second.asm:414:Error [113] Symbol not previously defined (L1).
In the .p output file, I see that the L1 label got eaten somewhere along
the chain, before assembly:
<cut all but _asm.._endasm; block>
;#CSRC second.c 116
; _endasm;
MOVLW 0xa6
MOVWF _delay
DECFSZ _delay,F
GOTO L1
Of all the combinations I've tried, I haven't found a way to make the
label get included in the output file.
Greg
|