Lua 5.3 didn't need an x86 emulator. But now, it has one regardless.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

comms.lua 474B

123456789101112131415161718192021
  1. cpu_register_interrupt_handler(0x14, function(ax,ah,al)
  2. -- serial
  3. if (ah == 0x00) or (ah == 0x03) then
  4. CPU["regs"][1] = 0x0000
  5. emu_debug(0, "serial: get port status/init\n")
  6. return true
  7. else
  8. cpu_set_flag(0)
  9. end
  10. end)
  11. cpu_register_interrupt_handler(0x17, function(ax,ah,al)
  12. -- printer
  13. if (ah == 0x01) or (ah == 0x02) then
  14. CPU["regs"][1] = CPU["regs"][1] & 0xFF
  15. emu_debug(0, "printer: get port status/init\n")
  16. return true
  17. else
  18. cpu_set_flag(0)
  19. end
  20. end)