Multi-task implementation of single chip microcomputer