c8051F microcontroller routine