ncr5380: Add a function to check for DMA mode.

This commit is contained in:
Michael Zapf 2023-06-08 17:42:02 +02:00
parent 0c4122608a
commit 5c5e7badca
2 changed files with 6 additions and 0 deletions

View File

@ -585,6 +585,11 @@ void ncr5380_device::dma_w(u8 data)
}
}
bool ncr5380_device::in_dma_mode()
{
return ((m_mode & MODE_DMA) != 0);
}
u8 ncr5380_device::dma_r()
{
set_drq(false);

View File

@ -28,6 +28,7 @@ public:
void eop_w(int state);
u8 dma_r();
void dma_w(u8 val);
bool in_dma_mode();
protected:
ncr5380_device(machine_config const &mconfig, device_type type, char const *tag, device_t *owner, u32 clock, bool has_lbs = false);