Here is a little bit that may get you started. The PBP manual will help to explain some.
Code:
'Pin setup
    include "modedefs.bas"
' The clock and load pins can be shared_
'on all shifters
'Data pins are for each shifter
    Clock   var PORTB.7
    Load    var PORTB.6
    Data_1  var PORTB.5
    Data_2  var PORTB.4
    LEDs_1  var byte
    LEDs_2  var byte
'Send data to the shifter
    pulsout Load,1
    shiftout Data_1,Clock,MSBPre,[LEDs_1]
    pulsout Load,1
    shiftout Data_2,Clock,MSBPre,[LEDs_2]
Now the fun part, if you have the data sheet for the shifter it will help.
If it is a serial to parallel register, sending the value of 2 should make the first output pin on the shifter go high, a value of 4 activate the second pin, a value of 6 both pin 1 and 2. And so on. Each pin up is double from the last. To send to multiple pins, add the values for each pin. This is the same for shift in registers.

This is interesting
http://www.eelab.usyd.edu.au/digital...egister03.html