void wait(int timesec) { volatile i; for(i=0;i