This is a selection of 16F84 / 8086 asm code I have written and feel people may find useful although unlike the C++ and PHP code I doubt anyone will.
PIC Serial -> Parallel Code (Good Example of PC -> Pic interfacing)
This code reads in two bytes from the serial port at the ports max speed and then moves the 2nd byte to the output of the pic, once thats done it outputs a 1-10 select code on another 4 output pins.
PIC Parallel -> Serial Code
This is just the above code in reverse well not quite, it reads in a byte then returns the value of that device (never used just tested).