Skip to content

Commit

Permalink
sn76496.cpp : Remove unnecessary handler, Remove unnecessary argument…
Browse files Browse the repository at this point in the history
…s in stereo_w

write8smo handler is already exists (write)
  • Loading branch information
cam900 committed Feb 2, 2019
1 parent e6a5262 commit 0d914e1
Show file tree
Hide file tree
Showing 70 changed files with 181 additions and 182 deletions.
4 changes: 2 additions & 2 deletions src/devices/sound/sn76496.cpp
Expand Up @@ -290,14 +290,14 @@ void sn76496_base_device::device_clock_changed()
m_sound->set_sample_rate(clock()/2);
}

WRITE8_MEMBER( sn76496_base_device::stereo_w )
void sn76496_base_device::stereo_w(u8 data)
{
m_sound->update();
if (m_stereo) m_stereo_mask = data;
else fatalerror("sn76496_base_device: Call to stereo write with mono chip!\n");
}

void sn76496_base_device::write(uint8_t data)
void sn76496_base_device::write(u8 data)
{
int n, r, c;

Expand Down
5 changes: 2 additions & 3 deletions src/devices/sound/sn76496.h
Expand Up @@ -24,9 +24,8 @@ class sn76496_base_device : public device_t, public device_sound_interface
public:
auto ready_cb() { return m_ready_handler.bind(); }

DECLARE_WRITE8_MEMBER( stereo_w );
void write(uint8_t data);
DECLARE_WRITE8_MEMBER( command_w ) { write(data); }
void stereo_w(u8 data);
void write(u8 data);
DECLARE_READ_LINE_MEMBER( ready_r ) { return m_ready_state ? 1 : 0; }

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/amusco.cpp
Expand Up @@ -372,7 +372,7 @@ void amusco_state::io_map(address_map &map)
map(0x0020, 0x0023).w(m_pit, FUNC(pit8253_device::write));
map(0x0030, 0x0033).rw("ppi_outputs", FUNC(i8255_device::read), FUNC(i8255_device::write));
map(0x0040, 0x0043).rw("ppi_inputs", FUNC(i8255_device::read), FUNC(i8255_device::write));
map(0x0060, 0x0060).w("sn", FUNC(sn76489a_device::command_w));
map(0x0060, 0x0060).w("sn", FUNC(sn76489a_device::write));
map(0x0070, 0x0071).w(FUNC(amusco_state::vram_w));
map(0x0280, 0x0283).rw("lpt_interface", FUNC(i8155_device::io_r), FUNC(i8155_device::io_w));
map(0x0380, 0x0383).rw("rtc_interface", FUNC(i8155_device::io_r), FUNC(i8155_device::io_w));
Expand Down
6 changes: 3 additions & 3 deletions src/mame/drivers/appoooh.cpp
Expand Up @@ -240,9 +240,9 @@ void appoooh_state::decrypted_opcodes_map(address_map &map)
void appoooh_state::main_portmap(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x00).portr("P1").w("sn1", FUNC(sn76489_device::command_w));
map(0x01, 0x01).portr("P2").w("sn2", FUNC(sn76489_device::command_w));
map(0x02, 0x02).w("sn3", FUNC(sn76489_device::command_w));
map(0x00, 0x00).portr("P1").w("sn1", FUNC(sn76489_device::write));
map(0x01, 0x01).portr("P2").w("sn2", FUNC(sn76489_device::write));
map(0x02, 0x02).w("sn3", FUNC(sn76489_device::write));
map(0x03, 0x03).portr("DSW1").w(FUNC(appoooh_state::adpcm_w));
map(0x04, 0x04).portr("BUTTON3").w(FUNC(appoooh_state::out_w));
map(0x05, 0x05).w(FUNC(appoooh_state::scroll_w)); /* unknown */
Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/apricot.cpp
Expand Up @@ -339,7 +339,7 @@ void apricot_state::apricot_io(address_map &map)
map(0x00, 0x03).rw(m_pic, FUNC(pic8259_device::read), FUNC(pic8259_device::write)).umask16(0x00ff);
map(0x40, 0x47).rw(m_fdc, FUNC(wd2797_device::read), FUNC(wd2797_device::write)).umask16(0x00ff);
map(0x48, 0x4f).rw(m_ppi, FUNC(i8255_device::read), FUNC(i8255_device::write)).umask16(0x00ff);
map(0x50, 0x50).mirror(0x06).w("ic7", FUNC(sn76489_device::command_w));
map(0x50, 0x50).mirror(0x06).w("ic7", FUNC(sn76489_device::write));
map(0x58, 0x5f).rw(m_pit, FUNC(pit8253_device::read), FUNC(pit8253_device::write)).umask16(0x00ff);
map(0x60, 0x60).r(FUNC(apricot_state::sio_da_r)).w(m_sio, FUNC(z80sio_device::da_w)).umask16(0x00ff);
map(0x62, 0x62).r(FUNC(apricot_state::sio_ca_r)).w(m_sio, FUNC(z80sio_device::ca_w)).umask16(0x00ff);
Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/apricotp.cpp
Expand Up @@ -446,7 +446,7 @@ void fp_state::fp_io(address_map &map)
map(0x020, 0x020).w("cent_data_out", FUNC(output_latch_device::bus_w));
map(0x022, 0x022).w(FUNC(fp_state::pint_clr_w));
map(0x024, 0x024).r(FUNC(fp_state::prtr_snd_r));
map(0x026, 0x026).w(SN76489AN_TAG, FUNC(sn76489a_device::command_w));
map(0x026, 0x026).w(SN76489AN_TAG, FUNC(sn76489a_device::write));
map(0x028, 0x028).w(FUNC(fp_state::contrast_w));
map(0x02a, 0x02a).w(FUNC(fp_state::palette_w));
map(0x02e, 0x02f).w(FUNC(fp_state::video_w));
Expand Down
6 changes: 3 additions & 3 deletions src/mame/drivers/atetris.cpp
Expand Up @@ -195,9 +195,9 @@ void atetris_state::atetrisb2_map(address_map &map)
map(0x1000, 0x1fff).ram().w(FUNC(atetris_state::videoram_w)).share("videoram");
map(0x2000, 0x20ff).ram().w("palette", FUNC(palette_device::write8)).share("palette");
map(0x2400, 0x25ff).rw("eeprom", FUNC(eeprom_parallel_28xx_device::read), FUNC(eeprom_parallel_28xx_device::write));
map(0x2802, 0x2802).w("sn1", FUNC(sn76496_device::command_w));
map(0x2804, 0x2804).w("sn2", FUNC(sn76496_device::command_w));
map(0x2806, 0x2806).w("sn3", FUNC(sn76496_device::command_w));
map(0x2802, 0x2802).w("sn1", FUNC(sn76496_device::write));
map(0x2804, 0x2804).w("sn2", FUNC(sn76496_device::write));
map(0x2806, 0x2806).w("sn3", FUNC(sn76496_device::write));
map(0x2808, 0x2808).portr("IN0");
map(0x2808, 0x280f).nopw();
map(0x2818, 0x2818).portr("IN1");
Expand Down
6 changes: 3 additions & 3 deletions src/mame/drivers/bankp.cpp
Expand Up @@ -137,9 +137,9 @@ void bankp_state::bankp_map(address_map &map)
void bankp_state::bankp_io_map(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x00).portr("IN0").w("sn1", FUNC(sn76489_device::command_w));
map(0x01, 0x01).portr("IN1").w("sn2", FUNC(sn76489_device::command_w));
map(0x02, 0x02).portr("IN2").w("sn3", FUNC(sn76489_device::command_w));
map(0x00, 0x00).portr("IN0").w("sn1", FUNC(sn76489_device::write));
map(0x01, 0x01).portr("IN1").w("sn2", FUNC(sn76489_device::write));
map(0x02, 0x02).portr("IN2").w("sn3", FUNC(sn76489_device::write));
map(0x04, 0x04).portr("DSW1");
map(0x05, 0x05).w(FUNC(bankp_state::scroll_w));
map(0x07, 0x07).w(FUNC(bankp_state::out_w));
Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/centiped.cpp
Expand Up @@ -985,7 +985,7 @@ void centiped_state::bullsdrt_port_map(address_map &map)

void centiped_state::bullsdrt_data_map(address_map &map)
{
map(S2650_DATA_PORT, S2650_DATA_PORT).r(FUNC(centiped_state::bullsdrt_data_port_r)).w("snsnd", FUNC(sn76496_device::command_w));
map(S2650_DATA_PORT, S2650_DATA_PORT).r(FUNC(centiped_state::bullsdrt_data_port_r)).w("snsnd", FUNC(sn76496_device::write));
}


Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/coleco.cpp
Expand Up @@ -108,7 +108,7 @@ void coleco_state::coleco_io_map(address_map &map)
map(0xa0, 0xa0).mirror(0x1e).rw("tms9928a", FUNC(tms9928a_device::vram_r), FUNC(tms9928a_device::vram_w));
map(0xa1, 0xa1).mirror(0x1e).rw("tms9928a", FUNC(tms9928a_device::register_r), FUNC(tms9928a_device::register_w));
map(0xc0, 0xc0).mirror(0x1f).w(FUNC(coleco_state::paddle_on_w));
map(0xe0, 0xe0).mirror(0x1f).w("sn76489a", FUNC(sn76489a_device::command_w));
map(0xe0, 0xe0).mirror(0x1f).w("sn76489a", FUNC(sn76489a_device::write));
map(0xe0, 0xe0).mirror(0x1d).r(FUNC(coleco_state::paddle_1_r));
map(0xe2, 0xe2).mirror(0x1d).r(FUNC(coleco_state::paddle_2_r));
}
Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/crvision.cpp
Expand Up @@ -748,7 +748,7 @@ void crvision_state::creativision(machine_config &config)
m_pia->readpa_handler().set(FUNC(crvision_state::pia_pa_r));
m_pia->readpb_handler().set(FUNC(crvision_state::pia_pb_r));
m_pia->writepa_handler().set(FUNC(crvision_state::pia_pa_w));
m_pia->writepb_handler().set(SN76489_TAG, FUNC(sn76496_base_device::command_w));
m_pia->writepb_handler().set(SN76489_TAG, FUNC(sn76496_base_device::write));

CASSETTE(config, m_cassette);
m_cassette->set_default_state((cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED));
Expand Down
12 changes: 6 additions & 6 deletions src/mame/drivers/divebomb.cpp
Expand Up @@ -114,12 +114,12 @@ void divebomb_state::divebomb_fgcpu_map(address_map &map)
void divebomb_state::divebomb_fgcpu_iomap(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x00).w("sn0", FUNC(sn76489_device::command_w));
map(0x01, 0x01).w("sn1", FUNC(sn76489_device::command_w));
map(0x02, 0x02).w("sn2", FUNC(sn76489_device::command_w));
map(0x03, 0x03).w("sn3", FUNC(sn76489_device::command_w));
map(0x04, 0x04).w("sn4", FUNC(sn76489_device::command_w));
map(0x05, 0x05).w("sn5", FUNC(sn76489_device::command_w));
map(0x00, 0x00).w("sn0", FUNC(sn76489_device::write));
map(0x01, 0x01).w("sn1", FUNC(sn76489_device::write));
map(0x02, 0x02).w("sn2", FUNC(sn76489_device::write));
map(0x03, 0x03).w("sn3", FUNC(sn76489_device::write));
map(0x04, 0x04).w("sn4", FUNC(sn76489_device::write));
map(0x05, 0x05).w("sn5", FUNC(sn76489_device::write));
map(0x10, 0x10).r(m_roz2fg_latch, FUNC(generic_latch_8_device::read)).w("fg2roz", FUNC(generic_latch_8_device::write));
map(0x20, 0x20).r(m_spr2fg_latch, FUNC(generic_latch_8_device::read)).w("fg2spr", FUNC(generic_latch_8_device::write));
map(0x30, 0x30).portr("IN0");
Expand Down
16 changes: 8 additions & 8 deletions src/mame/drivers/docastle.cpp
Expand Up @@ -240,10 +240,10 @@ void docastle_state::docastle_map2(address_map &map)
map(0x8000, 0x87ff).ram();
map(0xa000, 0xa008).rw(FUNC(docastle_state::docastle_shared1_r), FUNC(docastle_state::docastle_shared0_w));
map(0xc000, 0xc007).select(0x0080).rw(FUNC(docastle_state::inputs_flipscreen_r), FUNC(docastle_state::flipscreen_w));
map(0xe000, 0xe000).w("sn1", FUNC(sn76489a_device::command_w));
map(0xe400, 0xe400).w("sn2", FUNC(sn76489a_device::command_w));
map(0xe800, 0xe800).w("sn3", FUNC(sn76489a_device::command_w));
map(0xec00, 0xec00).w("sn4", FUNC(sn76489a_device::command_w));
map(0xe000, 0xe000).w("sn1", FUNC(sn76489a_device::write));
map(0xe400, 0xe400).w("sn2", FUNC(sn76489a_device::write));
map(0xe800, 0xe800).w("sn3", FUNC(sn76489a_device::write));
map(0xec00, 0xec00).w("sn4", FUNC(sn76489a_device::write));
}

void docastle_state::docastle_map3(address_map &map)
Expand Down Expand Up @@ -280,10 +280,10 @@ void docastle_state::dorunrun_map2(address_map &map)
{
map(0x0000, 0x3fff).rom();
map(0x8000, 0x87ff).ram();
map(0xa000, 0xa000).w("sn1", FUNC(sn76489a_device::command_w));
map(0xa400, 0xa400).w("sn2", FUNC(sn76489a_device::command_w));
map(0xa800, 0xa800).w("sn3", FUNC(sn76489a_device::command_w));
map(0xac00, 0xac00).w("sn4", FUNC(sn76489a_device::command_w));
map(0xa000, 0xa000).w("sn1", FUNC(sn76489a_device::write));
map(0xa400, 0xa400).w("sn2", FUNC(sn76489a_device::write));
map(0xa800, 0xa800).w("sn3", FUNC(sn76489a_device::write));
map(0xac00, 0xac00).w("sn4", FUNC(sn76489a_device::write));
map(0xc000, 0xc007).select(0x0080).rw(FUNC(docastle_state::inputs_flipscreen_r), FUNC(docastle_state::flipscreen_w));
map(0xe000, 0xe008).rw(FUNC(docastle_state::docastle_shared1_r), FUNC(docastle_state::docastle_shared0_w));
}
Expand Down
6 changes: 3 additions & 3 deletions src/mame/drivers/drmicro.cpp
Expand Up @@ -87,9 +87,9 @@ void drmicro_state::drmicro_map(address_map &map)
void drmicro_state::io_map(address_map &map)
{
map.global_mask(0xff);
map(0x00, 0x00).portr("P1").w("sn1", FUNC(sn76496_device::command_w));
map(0x01, 0x01).portr("P2").w("sn2", FUNC(sn76496_device::command_w));
map(0x02, 0x02).w("sn3", FUNC(sn76496_device::command_w));
map(0x00, 0x00).portr("P1").w("sn1", FUNC(sn76496_device::write));
map(0x01, 0x01).portr("P2").w("sn2", FUNC(sn76496_device::write));
map(0x02, 0x02).w("sn3", FUNC(sn76496_device::write));
map(0x03, 0x03).portr("DSW1").w(FUNC(drmicro_state::pcm_set_w));
map(0x04, 0x04).portr("DSW2").w(FUNC(drmicro_state::nmi_enable_w));
map(0x05, 0x05).noprw(); // unused? / watchdog?
Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/ecoinf3.cpp
Expand Up @@ -446,7 +446,7 @@ void ecoinf3_state::pyramid_portmap(address_map &map)
map(0x58, 0x5b).rw("ppi8255_g", FUNC(i8255_device::read), FUNC(i8255_device::write));
map(0x5c, 0x5f).rw("ppi8255_h", FUNC(i8255_device::read), FUNC(i8255_device::write));
// frequently accesses DB after 5B, mirror? bug?
map(0xDB, 0xDB).w("sn1", FUNC(sn76489_device::command_w)); // no idea what the sound chip is, this sounds terrible
map(0xDB, 0xDB).w("sn1", FUNC(sn76489_device::write)); // no idea what the sound chip is, this sounds terrible


}
Expand Down
4 changes: 2 additions & 2 deletions src/mame/drivers/exedexes.cpp
Expand Up @@ -63,8 +63,8 @@ void exedexes_state::sound_map(address_map &map)
map(0x4000, 0x47ff).ram();
map(0x6000, 0x6000).r("soundlatch", FUNC(generic_latch_8_device::read));
map(0x8000, 0x8001).w("aysnd", FUNC(ay8910_device::address_data_w));
map(0x8002, 0x8002).w("sn1", FUNC(sn76489_device::command_w));
map(0x8003, 0x8003).w("sn2", FUNC(sn76489_device::command_w));
map(0x8002, 0x8002).w("sn1", FUNC(sn76489_device::write));
map(0x8003, 0x8003).w("sn2", FUNC(sn76489_device::write));
}


Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/finalizr.cpp
Expand Up @@ -117,7 +117,7 @@ void finalizr_state::main_map(address_map &map)
map(0x0813, 0x0813).portr("DSW1");
map(0x0818, 0x0818).w("watchdog", FUNC(watchdog_timer_device::reset_w));
map(0x0819, 0x0819).w(FUNC(finalizr_state::finalizr_coin_w));
map(0x081a, 0x081a).w("snsnd", FUNC(sn76489a_device::command_w)); /* This address triggers the SN chip to read the data port. */
map(0x081a, 0x081a).w("snsnd", FUNC(sn76489a_device::write)); /* This address triggers the SN chip to read the data port. */
map(0x081b, 0x081b).nopw(); /* Loads the snd command into the snd latch */
map(0x081c, 0x081c).w(FUNC(finalizr_state::finalizr_i8039_irq_w)); /* custom sound chip */
map(0x081d, 0x081d).w("soundlatch", FUNC(generic_latch_8_device::write)); /* custom sound chip */
Expand Down
32 changes: 16 additions & 16 deletions src/mame/drivers/freekick.cpp
Expand Up @@ -206,10 +206,10 @@ void freekick_state::omega_map(address_map &map)
map(0xe800, 0xe800).portr("IN1");
map(0xf000, 0xf000).portr("DSW1").nopw(); //bankswitch ?
map(0xf800, 0xf800).portr("DSW2");
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::command_w));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::command_w));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::command_w));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::command_w));
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::write));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::write));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::write));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::write));
}

void freekick_state::pbillrd_map(address_map &map)
Expand All @@ -225,10 +225,10 @@ void freekick_state::pbillrd_map(address_map &map)
map(0xe800, 0xe800).portr("IN1");
map(0xf000, 0xf000).portr("DSW1").w(FUNC(freekick_state::pbillrd_bankswitch_w));
map(0xf800, 0xf800).portr("DSW2");
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::command_w));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::command_w));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::command_w));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::command_w));
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::write));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::write));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::write));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::write));
}

void freekick_state::decrypted_opcodes_map(address_map &map)
Expand All @@ -250,10 +250,10 @@ void freekick_state::freekick_map(address_map &map)
map(0xf802, 0xf802).nopr(); //MUST return bit 0 = 0, otherwise game resets
map(0xf803, 0xf803).r(FUNC(freekick_state::spinner_r));
map(0xf800, 0xf807).w(m_outlatch, FUNC(ls259_device::write_d0));
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::command_w));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::command_w));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::command_w));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::command_w));
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::write));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::write));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::write));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::write));
}

void freekick_state::gigas_map(address_map &map)
Expand All @@ -268,10 +268,10 @@ void freekick_state::gigas_map(address_map &map)
map(0xe800, 0xe800).portr("IN1");
map(0xf000, 0xf000).portr("DSW1").nopw(); //bankswitch ?
map(0xf800, 0xf800).portr("DSW2");
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::command_w));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::command_w));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::command_w));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::command_w));
map(0xfc00, 0xfc00).w("sn1", FUNC(sn76489a_device::write));
map(0xfc01, 0xfc01).w("sn2", FUNC(sn76489a_device::write));
map(0xfc02, 0xfc02).w("sn3", FUNC(sn76489a_device::write));
map(0xfc03, 0xfc03).w("sn4", FUNC(sn76489a_device::write));
}

void freekick_state::omega_io_map(address_map &map)
Expand Down
6 changes: 3 additions & 3 deletions src/mame/drivers/galaxold.cpp
Expand Up @@ -780,7 +780,7 @@ void galaxold_state::racknrol_map(address_map &map)

void galaxold_state::racknrol_io(address_map &map)
{
map(0x1d, 0x1d).w("snsnd", FUNC(sn76489a_device::command_w));
map(0x1d, 0x1d).w("snsnd", FUNC(sn76489a_device::write));
// AM_RANGE(0x1e, 0x1e) AM_WRITENOP
// AM_RANGE(0x1f, 0x1f) AM_WRITENOP
map(0x20, 0x3f).w(FUNC(galaxold_state::racknrol_tiles_bank_w)).share("racknrol_tbank");
Expand Down Expand Up @@ -808,7 +808,7 @@ void galaxold_state::hexpoola_io(address_map &map)

void galaxold_state::hexpoola_data(address_map &map)
{
map(S2650_DATA_PORT, S2650_DATA_PORT).r(FUNC(galaxold_state::hexpoola_data_port_r)).w("snsnd", FUNC(sn76496_device::command_w));
map(S2650_DATA_PORT, S2650_DATA_PORT).r(FUNC(galaxold_state::hexpoola_data_port_r)).w("snsnd", FUNC(sn76496_device::write));
}

READ8_MEMBER(galaxold_state::bullsdrtg_data_port_r)
Expand All @@ -834,7 +834,7 @@ READ8_MEMBER(galaxold_state::bullsdrtg_data_port_r)

void galaxold_state::bullsdrtg_data_map(address_map &map)
{
map(S2650_DATA_PORT, S2650_DATA_PORT).r(FUNC(galaxold_state::bullsdrtg_data_port_r)).w("snsnd", FUNC(sn76496_device::command_w));
map(S2650_DATA_PORT, S2650_DATA_PORT).r(FUNC(galaxold_state::bullsdrtg_data_port_r)).w("snsnd", FUNC(sn76496_device::write));
}

/* Lives Dips are spread across two input ports */
Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/gatron.cpp
Expand Up @@ -450,7 +450,7 @@ void gatron_state::gat_map(address_map &map)
map(0x0000, 0x5fff).rom();
map(0x6000, 0x63ff).ram().w(FUNC(gatron_state::videoram_w)).share("videoram");
map(0x8000, 0x87ff).ram().share("nvram"); /* battery backed RAM */
map(0xa000, 0xa000).w("snsnd", FUNC(sn76489_device::command_w)); /* PSG */
map(0xa000, 0xa000).w("snsnd", FUNC(sn76489_device::write)); /* PSG */
map(0xe000, 0xe000).w(FUNC(gatron_state::output_port_0_w)); /* lamps */
}

Expand Down
2 changes: 1 addition & 1 deletion src/mame/drivers/gberet.cpp
Expand Up @@ -227,7 +227,7 @@ void gberet_state::gberetb_map(address_map &map)
map(0xe900, 0xe9ff).ram().share("spriteram");
map(0xf000, 0xf000).nopw(); // coin counter not supported
map(0xf200, 0xf200).portr("DSW2");
map(0xf400, 0xf400).w(m_sn, FUNC(sn76489a_device::command_w));
map(0xf400, 0xf400).w(m_sn, FUNC(sn76489a_device::write));
map(0xf600, 0xf600).portr("P2");
map(0xf601, 0xf601).portr("DSW1");
map(0xf602, 0xf602).portr("P1");
Expand Down

0 comments on commit 0d914e1

Please sign in to comment.