8086 emulator in Haskell