- //printf(" %d's color=%d\n", (*i)/3, ((*i)-(bmp->offset*3)));
- //printf(" %d's color2=%d\n", (*i)/3, ((*i)-(bmp->offset*3))-(qp*3));
- break;
+ //for(w=(*i); w<()){
+ printf(" (*i)=%d a[%d]=%d\n", (*i), qp, a[qp]);
+ printf(" %d's color=%d\n", (*i), (a[qp])*3);//+(aqoffset*3)
+ outp(PAL_DATA_REG, p[((a[qp])*3)]);// fix this shit!
+ if((*i)+1==(qp*3)+3){ w++; /*(*i)++;*/ break; }