/* This is for converting the hex codes displayed by the Motorola 
Cellular Phone when in test mode and monitoring the FOVC to the correct 
channel number that the call is being transferred to. See 
http://www.l0pht.com/radiophone/motorola/fovchack.html for more info. 
         --Doctor Who                                                */


#include <stdio.h>
main()
{
int st;
while(1)
 {
  printf("\n XXXXNNNXXX\n Enter digits hex digits NNN: ");
  scanf("%x",&st);
  printf("Channel: %d\n",st & 1023);
 }
}
