Did you get your problem sorted out? ... Unfortunately, the syntax of PB is not as well developed as in PBP. In PB, the variables for the most part are predefined for you. You need to do something like this:

Instead of this
Code:
sel var byte
You need to do this

Code:
Symbol sel = B0	; sel is now aliased to B0 (B0 is predefined)
If you post more code people here can help you translate to help get you going.

Good Luck,