lbenson
Senior Member
"put" and "get" using, for example, "s_w0", compile but execute incorrectly in simulation.
The result, for PE5, is "257 = 1?" and "257 = 0?"
In PE6, the result is different: "257 = 1?" and "513 = 1?"
In PE6, "put 0, word s_w0" results in nothing being put in the scratchpad at location 0. "get 0, word s_w1" results in only the least significant byte being retrieved.
I understand that the system variables, e.g., "s_w0" are pretty much used at the programmers risk, but one would hope that they would either work or not pass the syntax check.
peek and poke fail in the same manner.
Code:
w0 = 257
put 0, word w0
get 0, word s_w1
sertxd(#w0," = ",#s_w1,"?",cr,lf)
w0 = 0
put 0, word w0
s_w0 = 257
put 0, word s_w0
get 0, word s_w1
sertxd(#s_w0," = ",#s_w1,"?",cr,lf)
In PE6, the result is different: "257 = 1?" and "513 = 1?"
In PE6, "put 0, word s_w0" results in nothing being put in the scratchpad at location 0. "get 0, word s_w1" results in only the least significant byte being retrieved.
I understand that the system variables, e.g., "s_w0" are pretty much used at the programmers risk, but one would hope that they would either work or not pass the syntax check.
peek and poke fail in the same manner.