Hello Everyone. I am attempting to turn on 3 ports to enable some IC's. Is there a valid PBP command to do this?:

chip1 = porta.1
chip2 = porta.2
chip3 = porta.3

if porta.4 = 0 then let chip = chip1
if porta.5 = 0 then let chip = chip2
if porta.6 = 0 then let chip = chip3

high chip

by making chip high, the corresponding port (a.1, a.2, a.3) goes high. The reason for wanting to do this is, in my example above, "high chip" is actually a large routine of about 50 lines of code. If I copy the routine and have 3 of them for a.1, a.2, a.3 I run out of code space. So having "chip" variably represent a port would really solve the problem. Thanks Everybody. - Peter