LPT: Function to read register in preparation for the WD76C10 rewrite.

This commit is contained in:
OBattler
2024-02-02 05:29:34 +01:00
parent 9d3c7eaad8
commit a8f250b6c9
2 changed files with 11 additions and 0 deletions

View File

@@ -165,6 +165,15 @@ lpt_read(uint16_t port, void *priv)
return ret;
}
uint8_t
lpt_read_port(int port, uint16_t reg)
{
lpt_port_t *dev = &(lpt_ports[port]);
uint8_t ret = lpt_read(reg, dev);
return ret;
}
uint8_t
lpt_read_status(int port)
{