less space (nw)

This commit is contained in:
smf- 2018-09-14 00:48:54 +01:00
parent add2f511b8
commit d58c0abc64
13 changed files with 20 additions and 20 deletions

View File

@ -107,7 +107,7 @@ WRITE8_MEMBER(bbc_beebspch_device::pb_w)
} }
// allophone // allophone
m_nsp->ald_w(space, 0, data & 0x3f); m_nsp->ald_w(data & 0x3f);
} }
WRITE_LINE_MEMBER(bbc_beebspch_device::cb1_w) WRITE_LINE_MEMBER(bbc_beebspch_device::cb1_w)

View File

@ -234,6 +234,6 @@ void c64_currah_speech_cartridge_device::c64_cd_w(address_space &space, offs_t o
set_osc1(voice, intonation); set_osc1(voice, intonation);
m_nsp->ald_w(space, 0, data & 0x3f); m_nsp->ald_w(data & 0x3f);
} }
} }

View File

@ -448,7 +448,7 @@ WRITE8_MEMBER(coco_ssc_device::ssc_port_c_w)
if( (data & C_ALD) == 0 ) if( (data & C_ALD) == 0 )
{ {
m_spo->ald_w(space, 0, m_tms7000_portd); m_spo->ald_w(m_tms7000_portd);
} }
if( ((m_tms7000_portc & C_BSY) == 0) && ((data & C_BSY) == C_BSY) ) if( ((m_tms7000_portc & C_BSY) == 0) && ((data & C_BSY) == C_BSY) )

View File

@ -41,7 +41,7 @@ READ8_MEMBER(cpc_ssa1_device::ssa1_r)
WRITE8_MEMBER(cpc_ssa1_device::ssa1_w) WRITE8_MEMBER(cpc_ssa1_device::ssa1_w)
{ {
m_sp0256_device->ald_w(space, 0, data); m_sp0256_device->ald_w(data);
} }
READ8_MEMBER(cpc_dkspeech_device::dkspeech_r) READ8_MEMBER(cpc_dkspeech_device::dkspeech_r)
@ -58,7 +58,7 @@ READ8_MEMBER(cpc_dkspeech_device::dkspeech_r)
WRITE8_MEMBER(cpc_dkspeech_device::dkspeech_w) WRITE8_MEMBER(cpc_dkspeech_device::dkspeech_w)
{ {
m_sp0256_device->ald_w(space, 0, data & 0x3f); m_sp0256_device->ald_w(data & 0x3f);
} }
WRITE_LINE_MEMBER(cpc_ssa1_device::lrq_cb) WRITE_LINE_MEMBER(cpc_ssa1_device::lrq_cb)

View File

@ -85,5 +85,5 @@ uint8_t einstein_speech_device::read()
void einstein_speech_device::write(uint8_t data) void einstein_speech_device::write(uint8_t data)
{ {
if (BIT(data, 7) == 0) if (BIT(data, 7) == 0)
m_sp0256->ald_w(machine().dummy_space(), 0, data & 0x3f); m_sp0256->ald_w(data & 0x3f);
} }

View File

@ -98,7 +98,7 @@ const tiny_rom_entry *intv_voice_device::device_rom_region() const
READ16_MEMBER(intv_voice_device::read_speech) READ16_MEMBER(intv_voice_device::read_speech)
{ {
if (ACCESSING_BITS_0_7) if (ACCESSING_BITS_0_7)
return m_speech->spb640_r(space, offset, mem_mask); return m_speech->spb640_r(offset);
else else
return 0xff; return 0xff;
} }
@ -110,7 +110,7 @@ READ16_MEMBER(intv_voice_device::read_speech)
WRITE16_MEMBER(intv_voice_device::write_speech) WRITE16_MEMBER(intv_voice_device::write_speech)
{ {
if (ACCESSING_BITS_0_7) if (ACCESSING_BITS_0_7)
return m_speech->spb640_w(space, offset, data, mem_mask); return m_speech->spb640_w(offset, data);
} }

View File

@ -88,7 +88,7 @@ WRITE_LINE_MEMBER(o2_voice_device::lrq_callback)
WRITE8_MEMBER(o2_voice_device::io_write) WRITE8_MEMBER(o2_voice_device::io_write)
{ {
if (data & 0x20) if (data & 0x20)
m_speech->ald_w(space, 0, offset & 0x7f); m_speech->ald_w(offset & 0x7f);
else else
m_speech->reset(); m_speech->reset();
} }

View File

@ -128,7 +128,7 @@ WRITE8_MEMBER(spectrum_uspeech_device::mreq_w)
{ {
case 0x1000: case 0x1000:
// allophone // allophone
m_nsp->ald_w(space, 0, data & 0x3f); m_nsp->ald_w(data & 0x3f);
break; break;
case 0x3000: case 0x3000:

View File

@ -1141,7 +1141,7 @@ void sp0256_device::micro()
WRITE8_MEMBER( sp0256_device::ald_w ) void sp0256_device::ald_w(uint8_t data)
{ {
/* ---------------------------------------------------------------- */ /* ---------------------------------------------------------------- */
/* Drop writes to the ALD register if we're busy. */ /* Drop writes to the ALD register if we're busy. */
@ -1180,7 +1180,7 @@ READ_LINE_MEMBER( sp0256_device::sby_r )
return m_sby_line; return m_sby_line;
} }
READ16_MEMBER( sp0256_device::spb640_r ) uint16_t sp0256_device::spb640_r(offs_t offset)
{ {
/* -------------------------------------------------------------------- */ /* -------------------------------------------------------------------- */
/* Offset 0 returns the SP0256 LRQ status on bit 15. */ /* Offset 0 returns the SP0256 LRQ status on bit 15. */
@ -1204,11 +1204,11 @@ READ16_MEMBER( sp0256_device::spb640_r )
return 0x00ff; return 0x00ff;
} }
WRITE16_MEMBER( sp0256_device::spb640_w ) void sp0256_device::spb640_w(offs_t offset, uint16_t data)
{ {
if (offset == 0) if (offset == 0)
{ {
ald_w(space, 0, data & 0xff); ald_w(data & 0xff);
return; return;
} }

View File

@ -45,11 +45,11 @@ public:
auto data_request_callback() { return m_drq_cb.bind(); } auto data_request_callback() { return m_drq_cb.bind(); }
auto standby_callback() { return m_sby_cb.bind(); } auto standby_callback() { return m_sby_cb.bind(); }
DECLARE_WRITE8_MEMBER(ald_w); void ald_w(uint8_t data);
DECLARE_READ_LINE_MEMBER(lrq_r); DECLARE_READ_LINE_MEMBER(lrq_r);
DECLARE_READ_LINE_MEMBER(sby_r); DECLARE_READ_LINE_MEMBER(sby_r);
DECLARE_READ16_MEMBER(spb640_r); uint16_t spb640_r(offs_t offset);
DECLARE_WRITE16_MEMBER(spb640_w); void spb640_w(offs_t offset, uint16_t data);
TIMER_CALLBACK_MEMBER(set_lrq_timer_proc); TIMER_CALLBACK_MEMBER(set_lrq_timer_proc);
void set_clock(int clock); void set_clock(int clock);

View File

@ -233,7 +233,7 @@ INPUT_PORTS_END
// This came from pinmame, even though there's no spb640 chip // This came from pinmame, even though there's no spb640 chip
READ8_MEMBER( idsa_state::portb0_r ) READ8_MEMBER( idsa_state::portb0_r )
{ {
uint16_t data = m_speech->spb640_r(space, offset / 2); uint16_t data = m_speech->spb640_r(offset / 2);
return offset % 2 ? (uint8_t)(data >> 8) : (uint8_t)(data & 0xff); return offset % 2 ? (uint8_t)(data >> 8) : (uint8_t)(data & 0xff);
} }

View File

@ -666,7 +666,7 @@ WRITE8_MEMBER(ace_state::ald_w)
if (!BIT(data, 6)) if (!BIT(data, 6))
{ {
m_sp0256->ald_w(space, 0, data & 0x3f); m_sp0256->ald_w(data & 0x3f);
} }
} }

View File

@ -181,7 +181,7 @@ WRITE_LINE_MEMBER(sauro_state::flip_screen_w)
WRITE8_MEMBER(sauro_state::adpcm_w) WRITE8_MEMBER(sauro_state::adpcm_w)
{ {
m_sp0256->ald_w(space, 0, data); m_sp0256->ald_w(data);
} }
void sauro_state::sauro_map(address_map &map) void sauro_state::sauro_map(address_map &map)