A simple x86 CPU simulator