You can use pin "Numbers".
But the pins will need to be grouped within 2 full ports, instead of scattered like you've shown.
Preferably PORTB and PORTC.
0-7 is PORTB, 8-15 is PORTC, but they can be changed in the 16F877.bas file.
Code:for i = 0 to 15 serout2 i, 8276, ["hello, this is PIN# ",DEC i] PAUSE 300 next i
Bookmarks