Atari 2600 emulator in Haskell