Quote Originally Posted by Joe S. View Post
or this way
switch var byte
switch.0 = portA.0
switch.1 = portA.1
OR

Code:
Switch VAR BYTE

SW0 VAR PORTA.0
SW1 VAR PORTB.1
SW2 VAR PORTC.3
SW3 VAR PORTD.7


Switch.0 = SW0
Switch.1 = SW1
Switch.2 = SW2
Switch.3 = SW3

:>)