An emulator for the CHIP-8 architecture