A basic NES emulator written in C