MT 07792: quartet, quarteta, quartet2, quartet2a: The moving floors that appear after the 15th stage are not displayed.

This commit is contained in:
David Haywood 2020-11-19 23:38:35 +00:00 committed by GitHub
parent b3c4e02d7c
commit 65238350c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -490,7 +490,9 @@ void segas16a_state::mcu_io_w(offs_t offset, uint8_t data)
// access text RAM
case 1:
if (offset >= 0x8000 && offset < 0x9000)
if (offset < 0x8000)
m_maincpu->space(AS_PROGRAM).write_byte(0x400001 ^ (offset & 0x7fff), data);
else if (offset < 0x9000)
m_maincpu->space(AS_PROGRAM).write_byte(0x410001 ^ (offset & 0xfff), data);
else
logerror("%03X: MCU movx write mode %02X offset %04X = %02X\n", m_mcu->pc(), m_mcu_control, offset, data);
@ -540,8 +542,11 @@ uint8_t segas16a_state::mcu_io_r(address_space &space, offs_t offset)
// access text RAM
case 1:
if (offset >= 0x8000 && offset < 0x9000)
if (offset < 0x8000)
return m_maincpu->space(AS_PROGRAM).read_byte(0x400001 ^ (offset & 0x7fff));
else if (offset < 0x9000)
return m_maincpu->space(AS_PROGRAM).read_byte(0x410001 ^ (offset & 0xfff));
logerror("%03X: MCU movx read mode %02X offset %04X\n", m_mcu->pc(), m_mcu_control, offset);
return 0xff;