Dick M,All you need to do is setup an INDEX counter as I have done here. The counter can count from 0 to a maximum of 255 so to use this type of indexing your array of bits can not be any bigger than 255 which equals 32 BYTES or 16 WORDS. You then index into the array of BYTES or WORDS like so:
INDEX VAR BYTE
ARRAYBYTE VAR BYTE[2] 'USE BYTE ARRAY IF CONVIENIENT or
ARRAYBYTE VAR WORD 'THIS WILL ALLOW 2 BYTES or 16 BITS OF DATA
FOR INDEX = 0 TO 15 'INCREMENT THRU ALL 16 BITS
ARRAYBYTE.0(INDEX) = 1 'GIVE BIT SOME VALUE
NEXT 'INCREMENT INDEX
Dave Purola,
N8NTA




Bookmarks