I think I found what my problem is although I don't understand why...
Taking everything out I just wrote a smple code where I store the 16bit value 1234 in a word variable and then I hserout the .byte1 and .byte0 of the variable...
================================================== ======
test var word
MAIN:
pause 1000
test = 1234
hserout [#test,13]
hserout [#test.Byte1,13,#test.Byte0,13]
goto main
================================================== =====
I get:
1234 (which is the value of test and is correct)
4 (this is test.byte1 which should be 12)
210 (this is test.byte0 which should be 34)
What am I doing wrong here??
Bookmarks