A machine emulation based on an abstract transistor and crystal oscillator