shawn
- 7th November 2010, 18:51
Hello,
Question that I cannot find an answer for. If I have an array like this.
Memory VAR WORD[7]
B0 VAR BYTE
B1 VAR BYTE
And I want to take 1 element out and break it into 2 byte what is the proper syntex.
This
B0 = Memory[1.highbyte]
B1 = Memory[1.lowbyte]
Or This
B0 = Memory.highbyte[1]
B1 = Memory.lowbyte[1]
both examples compile
Thanks
Shawn
Question that I cannot find an answer for. If I have an array like this.
Memory VAR WORD[7]
B0 VAR BYTE
B1 VAR BYTE
And I want to take 1 element out and break it into 2 byte what is the proper syntex.
This
B0 = Memory[1.highbyte]
B1 = Memory[1.lowbyte]
Or This
B0 = Memory.highbyte[1]
B1 = Memory.lowbyte[1]
both examples compile
Thanks
Shawn