summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/namcos2.cpp
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2020-05-06 15:51:18 -0400
committer GitHub <noreply@github.com>2020-05-06 15:51:18 -0400
commit4ae2e0f48715fe4192a7d402955775856dab26f4 (patch)
treee3a93b3f6d03e922465f0c90b9102c1246a192eb /src/mame/machine/namcos2.cpp
parent06ec9d15ea9ea15de5788e5ce8c8e67ed2b470b7 (diff)
Revert "c140.cpp updates [cam900, superctr]"
This reverts commit 5852df508676e7976234956434cad2905a7cf8e5.
Diffstat (limited to 'src/mame/machine/namcos2.cpp')
-rw-r--r--src/mame/machine/namcos2.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/mame/machine/namcos2.cpp b/src/mame/machine/namcos2.cpp
index f0d3dba8133..4014dd4bd16 100644
--- a/src/mame/machine/namcos2.cpp
+++ b/src/mame/machine/namcos2.cpp
@@ -397,34 +397,3 @@ WRITE8_MEMBER( namcos2_state::sound_bankselect_w )
{
m_audiobank->set_entry(data>>4);
}
-
-READ16_MEMBER( namcos2_state::c140_rom_r )
-{
- /*
- Verified from schematics:
- MD0-MD3 : Connected in 3N "voice0" D0-D3 or D4-D7, Nibble changeable with 74LS157
- MD4-MD11 : Connected in 3M "voice1" or 3L "voice2" D0-D7
- MA0-MA18 : Connected in Address bus of ROMs
- MA19 : Connected in 74LS157 Select Pin
- MA20 : Connected in 74LS157 Strobe(Enable) Pin
- MA21 : ROM select in MD4-MD11 area
- */
- if (m_c140_region != nullptr)
- {
- bool romsel = BIT(offset, 21);
- bool lsb_en = BIT(~offset, 20);
- bool lsb_swap = BIT(~offset, 19);
- offset &= 0x7ffff;
- u16 ret = m_c140_region[(romsel << 19) | offset] & 0xff00; // voice1 or voice2
- if (lsb_en)
- {
- u8 lsb = m_c140_region[offset] & 0xff; // voice0
- if (lsb_swap)
- lsb <<= 4; // D0-D3
-
- ret |= (lsb & 0xf0);
- }
- return ret;
- }
- return 0;
-}