BeanieBots
Moderator
PE 5.2.0
Peek and read do not give the expected result when used with a word variable.
"peek address,word wordvar" works fine.
However, "peek address,wordvar" only sets the lower byte. If wordvar previously held a value higher than 255, then the result is not what I'd expect.
The same is true for read.
I was expecting a similar result to:-
wordvar=bytevar.
Is this a bug or a way of saving program space?
Peek and read do not give the expected result when used with a word variable.
"peek address,word wordvar" works fine.
However, "peek address,wordvar" only sets the lower byte. If wordvar previously held a value higher than 255, then the result is not what I'd expect.
The same is true for read.
I was expecting a similar result to:-
wordvar=bytevar.
Is this a bug or a way of saving program space?