OK, I modified the code to just use a global array and everything compiles fine. Unfortunately it doesn't work I modified the USART routine to set it up for a 20MHz processor and 9600 baud ( spbrg = 32). All I'm getting out of the serial port when I run the program is 0x01. Is there any obvious reason for that?
Also, I am using the Bloater boot loader, which needs the code origin at 0x0004. I noticed that SourceBasic is ignoring the pragma directive... How to I control code locations in SourceBasic?
' I2C - Serial Test Controller
' Uses PIC16F877A @ 20Mhz