Quote Originally Posted by mister_e View Post
chsel var byte
'
'
'
'
chsel = (PORTA>>1) & $0F

this read PORTA, shift the whole value one place to the right (to remove PORTA.0), then isolate the 4 lower bits.
Ok, so let's say then, that I don't use the lsb as the toggle pin, and use 0 thru 3 as my 4 input bits, would the command be chsel = (PORTA) %00001111 ??
Or am I missing the point?