if (tmp == 0) /* If overflow set TF0 */
cpu8051_WriteD(_TCON_, cpu8051_ReadD(_TCON_) | tf_mask);
- cpu8051_WriteD(_TH0_, tmp / 0x100);
- cpu8051_WriteD(_TL0_, tmp & 0xFF);
+ cpu8051_WriteD(th, tmp / 0x100);
+ cpu8051_WriteD(tl, tmp & 0xFF);
break;
case 1:
/* Mode 1, 16-bits counter */
tmp &= 0xFFFF; /* We keep only 16 bits */
if (tmp == 0) /* If overflow set TF0 */
cpu8051_WriteD(_TCON_, cpu8051_ReadD(_TCON_) | tf_mask);
- cpu8051_WriteD(_TH0_, (tmp / 0x100));
- cpu8051_WriteD(_TL0_, (tmp & 0xFF));
+ cpu8051_WriteD(th, (tmp / 0x100));
+ cpu8051_WriteD(tl, (tmp & 0xFF));
break;
case 2:
/* Mode 2, 8-bits counter with Auto-Reload */