求教大佬,下面的Mileage=Mileage+Velocity*500/36; Velocity=count/5 怎么用汇编表示出来呢? void EXINT0() interrupt 0 { count++; }
void time0() interrupt 1 { uchar m; TH0=0x3c; TL0=0xb0; //50ms m++; if(m>=10) { m=0; Mileage=Mileage+Velocity*500/36; //里程m=速度km/h*1000*5/3.6 Velocity=count/5;//将100ms内的脉冲数 count=0; } }
|