8080 emulator in Swift