or this way
switch var byte
switch.0 = portA.0
switch.1 = portA.1