Ok, what about shift registers?
http://www.picbasic.co.uk/forum/showthread.php?t=10200