

const char bit_masks[]={1,2,4,8,16,32,64,128};

void setCacheFlag(unsigned char position)//takes position of bit to set, from 0 to 7
{
cacheUsed[position>>3] |= bit_masks[position & 0x07];
}
