I'm running the latest PE 6.1.0.0. The following code snippet (part of modified firmware for the AXE131Y) appears not to alter pinsb in the simulator. Looking at Code Explorer/System or hovering the cursor over pinsb in the code insist on showing it as 0 all the time.
Is this a flaw in the simulator or am I doing something wrong?
Derek
Code:
#picaxe 18M2
symbol enable = C.6 ; LCD enable
symbol rs = C.7 ; LCD RS
symbol hr = b5 ; Hour counter
symbol mn = b6 ; Mins counter
hr = 0
mn = 2
Distime: ;Show current hour, mins
LOW RS
pinsB = 130
pulsout enable,1
HIGH RS
pinsb = "0" + hr
pulsout enable,1
pinsb = ":"
pulsout enable,1
pinsb = mn / 10 + "0" ; Tens of minutes
pulsout enable,1
pinsb = mn // 10 + "0" ; Units of minutes
pulsout enable,1
END
Derek