#include void main(void) { far unsigned char mydata[100]; unsigned char x, z = 0; TRISB = 0; for(x=0;x<100;x++) { z--; mydata[x] = z; PORTB = z; } }