Simple operating system for HCS12 microcontroller