本帖最后由 icmap 于 2010-2-10 13:39 编辑
,dTime0<br /> mov dTimeA1,dTime1<br /> mov dTimeA2,dTime2<br /><br /> mov dCountA1,th0 ;读 Count<br /> mov dCountA0,tl0<br /> mov a,th0<br /> xrl a,dCountA1<br /> jz a_T1Int01<br /> mov dCountA0,tl0<br />a_T1Int01:<br /><br /> mov a,dCountA1<br /> clr c<br /> subb a,dCountA1Old<br /> jnc a_T1Int02<br /> inc dCountA2<br />a_T1Int02:<br /> mov dCountA1Old,dCountA1<br /><br /> setb bDataReady<br /><br />a_T1Int90:<br /> pop b<br /> pop acc<br /> pop psw<br />a_T1IntEnd:<br /> reti<br /><br /> END<br /> |