Hi Larry,
To access the individual bytes in an array you do:
Note that the array is zero-indexed, first byte is Position[0], last byte is Position[2].Code:Position VAR BYTE [3] For i = 0 to 2 SERIN PORTA.1, 84, [POSITION[i]] SEROUT PORTA.0, 84, [POSITION[i]] Next
The Position.0[i] thing you have in your notes is used when you want to access the individual bits in something not specifically declared as an array an of bits. For example Position.0[8] will access the least significant bit Position[1].
Hope that makes sense.
/Henrik.




Bookmarks