I just reread this carefully. Does it mean that TOGGLE can be used for indirect addressing of output ports?'toggle bit3' is valid syntax, but won't do what you want.
If bit3 is currently high, it will 'toggle 1' and if low it will 'toggle 0'. So output pin B.1 or B.0 would change!
Yes, you can toggle a physical pin which is identified by a pin value within a variable. For example to effect a "TOGGLE C.3" ...I just reread this carefully. Does it mean that TOGGLE can be used for indirect addressing of output ports?
b1 = C.3
Toggle b1
For b1 = B.0 To B.7
High b1
Next
bit0 = NOT bit0
#MACRO ToggleBit(parm)
parm = NOT parm
#ENDMACRO
ToggleBit(bit0)
It varies a little because of code alignment, and one never knows how code is aligned, but usually the less memory used the faster it will execute as the interpreter has less to read before acting upon what it has read.For the X2 chips you can also consider the INV command.
As pointed out in <PICAXE Program size Optimisation and Speed - Rev D.pdf> the X2 INV uses less code space than NOT but I don't know whether it is any faster.