Implemented the "Parallel port FIFO" mode of ECP, made config.c sanitize the jumpered DMA on load and save, and made the PC87306 no longer able set the ECP dma if one is jumpered.

This commit is contained in:
OBattler
2025-08-31 23:33:42 +02:00
parent de64f74c30
commit 6f71e92385
3 changed files with 15 additions and 5 deletions

View File

@@ -174,7 +174,8 @@ lpt_handler(pc87306_t *dev)
lpt_port_irq(dev->lpt, lpt_irq);
if ((dev->regs[0x18] & 0x06) != 0x00)
if (((jumpered_internal_ecp_dma < 0) || (jumpered_internal_ecp_dma == 4)) &&
((dev->regs[0x18] & 0x06) != 0x00))
lpt_port_dma(dev->lpt, (dev->regs[0x18] & 0x08) ? 3 : 1);
}