useful function library for STC51 MCU