summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2020-03-01 22:45:21 +0100
committer Olivier Galibert <galibert@pobox.com>2020-03-01 22:45:21 +0100
commit84626917fe3ae02b35e9d461d8dc32c22585707e (patch)
tree76ba1a6a4f7a8a0553e2a14ce462f1b33bd89084 /src/devices
parent0e448ba32a4e8bf0873ab390b38dfb30fdbc5fdc (diff)
Revert "Possibly controversial i2cmem change, please lemme know if something breaks (nw)"
Not to smf's standards, and I that point I just can't be bothered anymore.
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/machine/i2cmem.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/devices/machine/i2cmem.cpp b/src/devices/machine/i2cmem.cpp
index c32bd578ff3..f7ab143d5b9 100644
--- a/src/devices/machine/i2cmem.cpp
+++ b/src/devices/machine/i2cmem.cpp
@@ -344,13 +344,7 @@ WRITE_LINE_MEMBER( i2cmem_device::write_scl )
switch( m_state )
{
case STATE_DEVSEL:
- if( m_shift & 1 )
- {
- verboselog( this, 1, "switching to read\n");
- m_devsel &= 0x0e;
- m_devsel |= (m_shift & 0xf1);
- }
- else m_devsel = m_shift;
+ m_devsel = m_shift;
if( !select_device() )
{
@@ -513,13 +507,6 @@ int i2cmem_device::select_device()
int device = ( m_slave_address & 0xf0 ) | ( m_e2 << 3 ) | ( m_e1 << 2 ) | ( m_e0 << 1 );
int mask = DEVSEL_ADDRESS & ~( address_mask() >> 7 );
- if( m_devsel == 0 )
- {
- verboselog( this, 2, "acknowledging global call\n");
- m_sdar = 0;
- return 1;
- }
-
if( ( m_devsel & mask ) == ( device & mask ) )
{
return 1;