I simulated a short program to try to find what I can do with pinsB:
At first I was disappointed to see that pinsB stayed=0 according to the view in Code Explorer/System Variables but b1 and b2 came out as expected, 5 and 8. However, watching pinsB while stepping through the simulation showed that pinsB changes as expected but reverts to 0 when the program finishes. But dirsB retains its value after the program has completed.
However, my initial question seems to be answered: I can use pinsB on either side of an assignment. Is that going to hold true in hardware?
Code:
#picaxe 18m2
dirsb=255
pinsb = 5
b1=pinsb
pinsb= pinsb+1
pinsb=pinsb+2
b2=pinsb
However, my initial question seems to be answered: I can use pinsB on either side of an assignment. Is that going to hold true in hardware?