



/*

//bad code doesn't die, its just cast into...
void junk(void ) {

  char got;
  int E, t, t2, t3; //temps
  unsigned char phc;

   /*
   // this scans for possible stop nibbles, reports bit counts between
   // remember that it doesn't account of byte aligned data
   t = getBits(1);
   t3++;
   
   if (t) {
      t2++;
   } else {
      t2 = 0;
   }
   
   if (t2 == 4) {
     printf(".[%d]\nHit\n", t3-4);
     t2 = 0;
     t3 = 0;
   } else {
     printf(" ");
   }
   */
   
   
   /* 
    // this one reverses 8 bits at a time looking for ascii strings.    
    t = getBits(8);
//    printf("%c", t);
    if (t > 0x0C) {
     printf("%c", (t>0x1F?(t<0x7B?t:'.'):'.'));
    } else {
     printf("\n");
    }
    */
    
    
    
    
    // this one decodes a filter stream
    printf(" Address: 0x%04X.%d\n", addr+0xE000, WordDataBit);
    printf("  Energy: 0x%X\n", E = getBits(4));
    if ((E != 0) && (E != 0x0F)) {
      printf("  Repeat: 0x%X\n", t = getBits(1));
      printf("  Freq  : 0x%X\n", t2 = getBits(6));
      if (!t) {
        printf("  K1    : 0x%X\n", getBits(5));
        printf("  K2    : 0x%X\n", getBits(5));
        printf("  K3    : 0x%X\n", getBits(4));
        printf("  K4    : 0x%X\n", getBits(4));
        if ( t2 ) {
          printf("  K5    : 0x%X\n", getBits(4));
          printf("  K6    : 0x%X\n", getBits(4));
          printf("  K7    : 0x%X\n", getBits(4));
          printf("  K8    : 0x%X\n", getBits(3));
          printf("  K9    : 0x%X\n", getBits(3));
          printf("  K10   : 0x%X\n", getBits(3)); 
        }
      }
    }    
    
    if (E == 0x0F) {
  //  if (E == 0x00) {
      WordDataBit = 0;  /// no, think on it, its not a bug.
      printf("-------------------- \n");
      
      phc++;
      fseek(input, PHLOOKUP[phc]-0xE000, SEEK_SET); addr = PHLOOKUP[phc]-0xE000;
      printf("Discarding %X\n", fgetc(input));
      if (phc == 128)   FSMok = 0;
      
    } else {
      printf("       --------       \n");
    }
   // FSMok--;
    
 
  }


}
*/
