initial 8086 emulator code