Below is code to make porta.5 led come on, the "If V1>100 then high porta.5" does not work. I have basically the same code where I send out 28 receive data in hex shift it and then display it on an lcd screen which works fine.
The lcd allows me to use dec modifier to display to the lcd but the code below v1 without the dec modifier gives me d (tested on lcd screen) which is ascii for 100 but the light will not turn on what would be my best approach here.




TH:
SEROUT2 PORTB.2,16468,40,["28"]
GOSUB SOUT
GOSUB SINV1
GOSUB SHIFTV1
V1 = V1 */$0065
DISPLAY_TH:
If V1>100 then high porta.5