unsigned char a, i;

  for (i = 0; i < 8; i++)
  {
    if ((a & 0x01) == 0x00)
      some_routine();
    a >>= 1;
  }