summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Dirk Best <mail@dirk-best.de>2017-03-05 18:55:30 +0100
committer Dirk Best <mail@dirk-best.de>2017-03-05 18:55:30 +0100
commit7a2c159724e7696c42b0480bf6b1e7bdd20a8e05 (patch)
tree26e25f9b9e7b9662bf1cb9a7b2cf46069966d3d5 /src
parent74a20c57bd302094e66f866eadb8085451380be6 (diff)
ay8910: Rename write handler, as it's not that most common setup
Diffstat (limited to 'src')
-rw-r--r--src/devices/sound/ay8910.cpp3
-rw-r--r--src/devices/sound/ay8910.h6
-rw-r--r--src/mame/drivers/popper.cpp4
3 files changed, 7 insertions, 6 deletions
diff --git a/src/devices/sound/ay8910.cpp b/src/devices/sound/ay8910.cpp
index 4da686b0cb4..e2e620ac4f1 100644
--- a/src/devices/sound/ay8910.cpp
+++ b/src/devices/sound/ay8910.cpp
@@ -1119,7 +1119,8 @@ WRITE8_MEMBER( ay8910_device::data_w )
#endif
}
-WRITE8_MEMBER( ay8910_device::write )
+// here, BC1 is hooked up to A0 on the host and BC2 is hooked up to A1
+WRITE8_MEMBER( ay8910_device::write_bc1_bc2 )
{
switch (offset & 3)
{
diff --git a/src/devices/sound/ay8910.h b/src/devices/sound/ay8910.h
index bc970338385..0592d6c6cfa 100644
--- a/src/devices/sound/ay8910.h
+++ b/src/devices/sound/ay8910.h
@@ -1,4 +1,4 @@
- // license:BSD-3-Clause
+// license:BSD-3-Clause
// copyright-holders:Couriersud
#pragma once
@@ -127,7 +127,7 @@ public:
DECLARE_WRITE8_MEMBER( address_data_w );
// bc1=a0, bc2=a1
- virtual DECLARE_WRITE8_MEMBER(write);
+ DECLARE_WRITE8_MEMBER(write_bc1_bc2);
void set_volume(int channel,int volume);
void ay_set_clock(int clock);
@@ -230,7 +230,7 @@ public:
/* AY8914 handlers needed due to different register map */
DECLARE_READ8_MEMBER( read );
- virtual DECLARE_WRITE8_MEMBER( write ) override;
+ DECLARE_WRITE8_MEMBER( write );
};
extern const device_type AY8914;
diff --git a/src/mame/drivers/popper.cpp b/src/mame/drivers/popper.cpp
index 75d58cd3c21..1db84d15cf7 100644
--- a/src/mame/drivers/popper.cpp
+++ b/src/mame/drivers/popper.cpp
@@ -128,7 +128,7 @@ static ADDRESS_MAP_START( sub_map, AS_PROGRAM, 8, popper_state )
AM_RANGE(0x0000, 0x1fff) AM_ROM
AM_RANGE(0x2000, 0x7fff) AM_NOP
AM_RANGE(0x8000, 0x8003) AM_MIRROR(0x1ffc) AM_WRITE(ay1_w)
- AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1ffc) AM_DEVWRITE("ay2", ay8910_device, write)
+ AM_RANGE(0xa000, 0xa003) AM_MIRROR(0x1ffc) AM_DEVWRITE("ay2", ay8910_device, write_bc1_bc2)
AM_RANGE(0xc000, 0xdfff) AM_RAM AM_SHARE("ram")
AM_RANGE(0xe000, 0xffff) AM_NOP
ADDRESS_MAP_END
@@ -380,7 +380,7 @@ WRITE8_MEMBER( popper_state::ay1_w )
m_ay[1]->reset();
}
- m_ay[0]->write(space, offset, data);
+ m_ay[0]->write_bc1_bc2(space, offset, data);
}