yes its hard to remember wether the data statement saves words as highbyte first or not
and then does the write word do the same ?, to read them back properly you must get it right.
but write 1 ,word wordvar and read 1, wordvar is the way to go if you can't be bothered understanding what happens
data @1 ,1,2 ; (wordvar.highbyte),( wordvar.lowbyte) $0102 =258 the question is ,is data @1,word 258 is it the same thing try it and see
the easy way out if your not sure about data is to :-
write 1, wordvar.highbyte, wordvar.lowbyte
read 1 , wordvar.highbyte,wordvar.lowbyte
its less efficient but it leaves no doubt.
you could always read the manual or just experiment to find out , the trick is though to be able to remember it
for next time
Bookmarks