My problem now is:
The variable Y is a WORD the has bit's 0 to 13 stored with info.
How do i break up the word in to 3 sections ?

bits 0 to 2 '000' are for the S1, S2 and toggle bit
bits 3 to 7 '00000' are for the System address
bits 8 to 13 '000000' are for the command bits

I want to end up with 2 variables SYSTEM(5 bits) and COMMAND(6 bits)
Simple bit level manipulation as described in the PBP manual...i.e.
temp var byte
temp.bit0 = y.bit0
temp.bit1 = y.bit1
....and so on and so on...