//请大家批评 //愚人白沙虚心接收教育 void DataAddup(unsigned char *DataDptr,unsigned char DataLend) { unsigned char i; *DataDptr=BcdToHex(*DataDptr); *DataDptr=*DataDptr+1; for(i=0;i<DataLend;i++) { if(*DataDptr>=0x99) { *DataDptr=0; DataDptr++; *DataDptr=*DataDptr+1; } else { *DataDptr=HexToBcd(*DataDptr); break; } } } |