It appears that NOT in Blitzplus does not do a bitwise not. It does a boolean NOT.
Try this:
TCS_HOTTRACK = $40
Print Not TCS_HOTTRACK
Waitkey()
Your result will be 0, which is clearly wrong for a bitwise NOT, and correct for a boolean NOT. Any value other than 0 in boolean is TRUE, so here the boolean not sees Print NOT TRUE, which is FALSE, which is 0.
Is there any way to do a bitwise NOT in Blitzplus?
If not, then you could just do this:
TCS_HOTTRACK = %00000000000000000000000001000000
NOT_TCS_HOTTRACK = %11111111111111111111111110111111
Which comes out to -65 in decimal, which is $FFFFFFFFFFFFFF6F in hexadecimal.
Gonna test this now....
Try this:
TCS_HOTTRACK = $40
Print Not TCS_HOTTRACK
Waitkey()
Your result will be 0, which is clearly wrong for a bitwise NOT, and correct for a boolean NOT. Any value other than 0 in boolean is TRUE, so here the boolean not sees Print NOT TRUE, which is FALSE, which is 0.
Is there any way to do a bitwise NOT in Blitzplus?
If not, then you could just do this:
TCS_HOTTRACK = %00000000000000000000000001000000
NOT_TCS_HOTTRACK = %11111111111111111111111110111111
Which comes out to -65 in decimal, which is $FFFFFFFFFFFFFF6F in hexadecimal.
Gonna test this now....