Hi,

May be

Code:
Loop:result = result - 1 :if PORTD.0 && result.11 then Loop'
instead of

Code:
Loop: result = result - 1 : if PORTD.0 & result.bit11 then Loop
... here it compiles !

may be you're not LOGICAL enough ... LoL !

Alain