Hi BobK

TRISC=%00011111 ; set b0-b4 to inputs, B5-B7 to output

ReadFromPortC VAR BYTE
SendToPortC VAR BYTE
ValueToB5_B7 VAR BYTE

ValueToB5_B7 = 3

ReadFromPORTC = PORTC & $1F ;read from PORTC and
;isolate B0-B4 from other bits


PortC.5=ValueToB5_b7.0 ;send to PORTC
PortC.6=ValueToB5_B7.1 ;the result of ValueToB5_B7
PortC.7=ValueToB5_B7.2 ;

.....

If all the result are comming from PORTC.....

TRISC = 255
ValueFromB5_B7 VAR BYTE
ValueFromB0_b4 VAR BYTE

ReadFromPORTC=PORTC

ValueFromB5_B7=ReadFromPORTC & %11100000
ValueFromB0_B4=ReadFromPORTC & %00011111