[an error occurred while processing this directive]
[an error occurred while processing this directive]
|
// Bdata[] - Буфер BCD символов.
void Bin_to_Dec (unsigned char r_poz, // правая позиия
unsigned char n_poz, // число позиций
unsigned int dnum) { // преобразуемое
do { Bdata[r_poz--]=dnum%10+'0'; dnum/=10; }
while (--n_poz!=0);
}
Немного изменено из практических соображений.
E-mail: info@telesys.ru