Hello, I am pretty new to picbasic and have some questions which should be pretty straight forward.

I am writing a program to send data serially out using the debug command and have confirmed to be able to use 9600bps at 3.579mhz. I need to send the data in inverted form so this is the code I use to declare and invert a variable:

A4 var byte
A4=~$A4 REV 8

Is there a way to do this using constants? I have a lot of bytes I need to do this with and I don't want to manually invert them by hand because they lose their meaning to people reading the code that way.


I would like to do this for example:

A4 CON ~$A4 REV 8

The ~ inverts the bits, and the REV8 reverses it. However this does not compile. It only works when I declare it as a variable. Maybe i could use some kind of table and lookup method? Thanks!