If you're really using constants as shown, then you can alias the location and access the individual bitBut you probably want variables for both the byte and bit index's ...Code:TheByte VAR array(7) TheByte.4 = 1Code:ByteIDX VAR BYTE BitIDX VAR BYTE ByteIDX = 7 BitIDX = 4 array.0((ByteIDX<<3)+BitIDX) = 1





Bookmarks