This was assembly written within a .c file using the #asm/endasm directives.
EX:
#asm ... LDHX INDEX JMP BITD,XBITD PULA SUB #V2 BLE MTCH BRA NTCH PULA SUB #V2 BLE MTCH BRA NTCH ...#endasm
I have since changed to a different meathod that doesn't involve any indexed jumping. I am now using the index to directly select the SUB value from a part of the direct page memory.