I think it's because WRITE defaults to BYTE variables. Sine you're using WORDs you need to tell it to write WORDs. Same thing with READ.
/Henrik.
I think it's because WRITE defaults to BYTE variables. Sine you're using WORDs you need to tell it to write WORDs. Same thing with READ.
/Henrik.
That's correct Henrik.
WRITE Address,{WORD}{LONG}Value
WRITE mem_index, WORD temp
Regards,
TABSoft
Hmm, OK, it was in front of me... Reading again and again...
I was sure that my var's were WORD sized so I felt OK.
Have not tried it yet, but seems obvious now.
Thanks a lot.
Ioannis
Well I for one don't see where mem_index is being set. Also the commands
write mem_index,temp
write 0,mem_index
would by default be writing over the contents of memory location 0 if mem_index is not set.
Dave Purola,
N8NTA
EN82fn
Dave thanks for the reply. It is been set previously, I just did not paste that part too.
Ioannis
Bookmarks