Here's comes the stupid question. Which bit of code should be faster:
BitOp_Flip_CTRLPF{2} = !BitOp_Flip_CTRLPF{2}
CTRLPF = $01
if BitOp_Flip_CTRLPF{2} then CTRLPF = $05
BitOp_Flip_CTRLPF{2} = !BitOp_Flip_CTRLPF{2}
if !BitOp_Flip_CTRLPF{2} then CTRLPF = $01
if BitOp_Flip_CTRLPF{2} then CTRLPF = $05
My guess is the first one, but I don't know if an if-then is faster than "CTRLPF = $01".
Or maybe there is a faster, better way than either one of those, such as getting XOR to work with the bB version of CTRLPF.
Edited by Random Terrain, Sun May 29, 2011 12:53 PM.














