Through searching, I saw an example that used frqa and phsa, but I tried that and it did not work and then I realized I am already using frqa and frqb as counters for something else :)

In spin I would do something like (cnt-timeStamp > clkfreq)

I tried to do the same in pasm, but I don't know if this is a legal operation, I tried to do something with sub, but that didn't work either. Also, do I have to use if_C_OR_Z for each line after a compare, since there is no indentation or brackets in pasm?

gapCntAsm is just an incrementing counter based on certain conditions and it does increment because I can see it doing so in the terminal