btfss is for testing individual "bits" in a file register.
You would use btfss _leftCount,1 to test bit position 1 in leftCount. This
seems like an unnecessary test at any rate since you're clearing leftCount
at the entry point to your asm routine, and leftCount will always be zero.
Also be aware that you're only accessing the low bytes in your leftCount
and dur word variables the way you're when doing it.
To access the high byte in dur you would use decfsz _dur+1,f. Dur is a pointer
to the low byte. Adding _dur+1 moves the pointer to the next byte location
in ram.
Bookmarks