mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
ncr5380: Add a function to check for DMA mode.
This commit is contained in:
parent
0c4122608a
commit
5c5e7badca
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user