#include <REGX51.H>
 sbit sw1=P1^0;
bit inp(void)
{ bit sw;
  sw=sw1;return sw;
}
