A simple CPU simulator.