mirror of
https://github.com/holub/mame
synced 2025-05-29 09:03:08 +03:00
Fixed problems with i2cmem. Cubo CD32 games now save and load settings properly. [Mariusz Wojcieszek]
This commit is contained in:
parent
92b3dd111f
commit
522819b0f4
@ -367,7 +367,6 @@ void i2cmem_device::set_sda_line( int state )
|
||||
{
|
||||
verboselog( this, 1, "stop\n" );
|
||||
m_state = STATE_IDLE;
|
||||
m_byteaddr = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -570,7 +569,7 @@ READ_LINE_DEVICE_HANDLER( i2cmem_sda_read )
|
||||
|
||||
int i2cmem_device::read_sda_line()
|
||||
{
|
||||
int res = m_sdar & m_sdaw & 1;
|
||||
int res = m_sdar & 1;
|
||||
|
||||
verboselog( this, 2, "read sda %d\n", res );
|
||||
|
||||
@ -584,7 +583,7 @@ int i2cmem_device::read_sda_line()
|
||||
|
||||
int i2cmem_device::address_mask()
|
||||
{
|
||||
return ( 1 << m_config.m_address_bits ) - 1;
|
||||
return (m_config.m_data_size - 1);
|
||||
}
|
||||
|
||||
int i2cmem_device::select_device()
|
||||
|
@ -41,7 +41,6 @@
|
||||
|
||||
ToDo:
|
||||
- remove the hack needed to make inputs working
|
||||
- settings are not saved
|
||||
|
||||
|
||||
Stephh's notes (based on the game M68EC020 code and some tests) :
|
||||
|
Loading…
Reference in New Issue
Block a user