Hi Christopher;

Check this wiki article. It shows how to handle the MCP23S17. Maybe can help you if you adapt to your ic.
http://www.picbasic.co.uk/forum/cont...P-PBP-MSSP-ASM