In a pic 16f I want to calculate if a hex value held in w is between 2 values
lets says w=21
I want to see if w >20 but < 30
its got me baffled how I would do this in asm code
at the moment in doing:
xorlw h'27'
btfsc STATUS,Z
to test if it = 27, however I dont want to have to repeat this 9 times to check for all other values between 20 and 30
any ideas folks?
lets says w=21
I want to see if w >20 but < 30
its got me baffled how I would do this in asm code
at the moment in doing:
xorlw h'27'
btfsc STATUS,Z
to test if it = 27, however I dont want to have to repeat this 9 times to check for all other values between 20 and 30
any ideas folks?