A simple NES emulator