This commit is contained in:
DavidHaywood 2019-01-24 12:09:15 +00:00
parent 10b63ef454
commit 85ce5818c1
2 changed files with 9 additions and 19 deletions

View File

@ -513,13 +513,8 @@ void xavix_state::write_io1(uint8_t data, uint8_t direction)
uint8_t xavix_i2c_state::read_io1(uint8_t direction)
{
uint8_t ret = m_in1->read();
if (!(direction & 0x08))
{
ret &= ~0x08;
ret |= (m_i2cmem->read_sda() & 1) << 3;
}
ret &= ~0x08;
ret |= (m_i2cmem->read_sda() & 1) << 3;
return ret;
}
@ -547,13 +542,8 @@ void xavix_i2c_state::write_io1(uint8_t data, uint8_t direction)
uint8_t xavix_i2c_cart_state::read_io1(uint8_t direction)
{
uint8_t ret = m_in1->read();
if (!(direction & 0x08))
{
ret &= ~0x08;
ret |= (m_i2cmem->read_sda() & 1) << 3;
}
ret &= ~0x08;
ret |= (m_i2cmem->read_sda() & 1) << 3;
return ret;
}
@ -579,11 +569,8 @@ uint8_t xavix_i2c_lotr_state::read_io1(uint8_t direction)
ret ^= (machine().rand() & 0x02);
ret ^= (machine().rand() & 0x04);
if (!(direction & 0x08))
{
ret &= ~0x08;
ret |= (m_i2cmem->read_sda() & 1) << 3;
}
ret &= ~0x08;
ret |= (m_i2cmem->read_sda() & 1) << 3;
return ret;
}

View File

@ -1,6 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
// TODO: hook this back up, and work out why taikodp eeprom breaks when it is hooked up. epo_efdx breakage is expected because that requires an ugly hack to get to the title
// note, eeproms don't work properly in most games at the moment, but no behavioral change was expected with taikodp
#include "emu.h"
#include "xavix_io.h"