Perhaps I misunderstood your inquiry; it is difficult with so little explanation...
Perhaps you mean:
'DEFINE ARRAY
AC var bit[7]
'ASSIGN ALIAS
SYMBOL AC[5] = PORTC.5
SYMBOL AC[4] = PORTC.4
.
SYMBOL AC[1] = PORTB.5
'LOOP THRU VALUES
FOR LOOP = 5 to 1 STEP -1
AC[LOOP] = Some assigned bit value
Next LOOP
Of course, the bit array may be expanded to include as many elements as you need and you may SYMBOL each element to any port or single bit variable you like to access them through a loop - which need not begin at the first element nor continue through the last.
You mention ARRAYWRITE, but if the answer was there you would certainly have seen that in the manual, yes?




Bookmarks