Richard-
I tried the following:
Code:
                      OutA=$FFFF                                        'Initial value for word var                      
                      PortDevice=$D                                     'Var from comm link
                      K=PortDevice                                      'Copes var to var for hex to dec converter
                      gosub H2D                                         'Perform sub
                      OutA.K=0     'PBP3 barks with 'Bad variable modifier
                      OutA.0=0                                          'Bit mod - WORKS
                      OutA.2=0                                          'Another bit mod - WORKS                      OutA.0=0                                       'Bit mod - WORKS
                      OutA.8=0                                          'Another bit mod - WORKS
                      OutA.10=0                                         'Bit mod - WORKS
                      OutA.12=0                                         'Another bit mod - WORKS
                      OutA_hi=OutA.highbyte                             'Splits into hibyte
                      OutA_lo=OutA.lowbyte                              'And into low byte of the word var
                        OutA_MCPReg = OLATA                             'Sets up PORTA output
                        OutA_DataOut=OutA_lo                            'Sets up data to be pushed to the MCP23S17 as the low byte
                        gosub SEND_OutA_2317                            'Send it
                        pause 10                                        'Wait a bit
                        OutA_MCPReg = OLATB                             'Sets up PORTB output
                        OutA_DataOut=OutA_hi                            'Sets up data to be pushed to the MCP23S17 as the hi byte
                        gosub SEND_OutA_2317                            'Send it
In an effort to get from the single byte to the pointer, but PBP3 barks with the bad variable modifier.......
There a ought to be a way to do this.......