If that's your whole program, then you need to add a
Code:
GOTO  loop
before the ASM block.

As it's shown, it will fall into the inch routine on power-up.
Then it has nowhere to return to.

hth,