Emulators for computers and game consoles feel like magic. Pure software that behaves like hardware ? Understanding how they work goes a long way into lifting the veil of mystery. Let's explore what is needed to write an emulator, by looking at how one would write one for an 8bit console.