Nintendo Entertainment System (NES) emulator in C