Merge pull request #4902 from cam900/es5503_args

es5503.cpp : Simplify handlers
This commit is contained in:
R. Belmont 2019-04-19 16:16:36 -04:00 committed by GitHub
commit acbe86d7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -270,7 +270,7 @@ void es5503_device::device_reset()
output_rate = (clock()/8)/34; // (input clock / 8) / # of oscs. enabled + 2
}
READ8_MEMBER( es5503_device::read )
u8 es5503_device::read(offs_t offset)
{
uint8_t retval;
int i;
@ -361,7 +361,7 @@ READ8_MEMBER( es5503_device::read )
return 0;
}
WRITE8_MEMBER( es5503_device::write )
void es5503_device::write(offs_t offset, u8 data)
{
m_stream->update();

View File

@ -23,8 +23,8 @@ public:
auto irq_func() { return m_irq_func.bind(); }
auto adc_func() { return m_adc_func.bind(); }
DECLARE_READ8_MEMBER(read);
DECLARE_WRITE8_MEMBER(write);
u8 read(offs_t offset);
void write(offs_t offset, u8 data);
uint8_t get_channel_strobe() { return m_channel_strobe; }

View File

@ -2262,7 +2262,7 @@ READ8_MEMBER(apple2gs_state::c000_r)
}
else
{
m_sndglu_dummy_read = m_doc->read(space, m_sndglu_addr);
m_sndglu_dummy_read = m_doc->read(m_sndglu_addr);
}
if (m_sndglu_ctrl & 0x20) // auto-increment
@ -2591,7 +2591,7 @@ WRITE8_MEMBER(apple2gs_state::c000_w)
}
else
{
m_doc->write(space, m_sndglu_addr, data);
m_doc->write(m_sndglu_addr, data);
}
if (m_sndglu_ctrl & 0x20) // auto-increment