When BIT variables are created, PBP must reserve full BYTEs of RAM and then
assign variable names to each bit within the BYTE containers. This is fine in most
cases, but you may wish to control this yourself. To create a bit variable and
control the BYTE it's assigned to, you can use aliasing to do it manually:
my_flags VAR BYTE 'Create a container for bits
flag0 VAR my_flags.0 'Assign an alias to bit-0
flag1 VAR my_flags.1 'Assign an alias to bit-1
This is exactly what PBP would do in the background, but it will assign its own
name to the "container" BYTE variable. It's useful to take control and assign this
name manually, especially when debugging in an environment that won't show
individual bits in a watch window.
Bookmarks