Implementation of a CHIP8 emulator