magic mirror...

this fixes MT00785: omegrace: Corrupted music after completing first several levels.
This commit is contained in:
Michaël Banaan Ananas 2013-12-02 20:24:00 +00:00
parent ec9a6f4d52
commit 97ea1a5f3c

View File

@ -379,16 +379,16 @@ ADDRESS_MAP_END
*************************************/
static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, omegrace_state )
AM_RANGE(0x0000, 0x07ff) AM_ROM
AM_RANGE(0x0000, 0x07ff) AM_ROM AM_MIRROR(0x800)
AM_RANGE(0x1000, 0x13ff) AM_RAM
ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_port, AS_IO, 8, omegrace_state )
ADDRESS_MAP_GLOBAL_MASK(0xff)
AM_RANGE(0x00, 0x00) AM_READ(soundlatch_byte_r) /* likely ay8910 input port, not direct */
AM_RANGE(0x00, 0x01) AM_DEVWRITE("ay1", ay8910_device, address_data_w)
AM_RANGE(0x02, 0x03) AM_DEVWRITE("ay2", ay8910_device, address_data_w)
AM_RANGE(0x00, 0x00) AM_READ(soundlatch_byte_r) // the game reads from ay1 port b, but ay8912 only has port a
AM_RANGE(0x00, 0x01) AM_DEVWRITE("ay1", ay8912_device, address_data_w)
AM_RANGE(0x02, 0x03) AM_DEVWRITE("ay2", ay8912_device, address_data_w)
ADDRESS_MAP_END