mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
wiggie, thunderlbl: Soundlatch modernization (nw)
This commit is contained in:
parent
09d92d8fab
commit
15e071c47b
@ -2875,7 +2875,7 @@ static ADDRESS_MAP_START( thunderlbl_map, AS_PROGRAM, 16, seta_state )
|
||||
AM_RANGE(0xb00002, 0xb00003) AM_READ_PORT("P2") // P2
|
||||
AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("COINS") // Coins
|
||||
// AM_RANGE(0xb0000c, 0xb0000d) AM_READ(thunderl_protection_r ) // Protection (not in wits)
|
||||
AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3") AM_WRITE(wiggie_soundlatch_w) // P3 (wits)
|
||||
AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3") AM_DEVWRITE8("soundlatch", generic_latch_8_device, write, 0xff00) // P3 (wits)
|
||||
AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4") // P4 (wits)
|
||||
/**/AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? 0x4000
|
||||
/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", seta001_device, spriteylow_r16, spriteylow_w16) // Sprites Y
|
||||
@ -2888,18 +2888,6 @@ ADDRESS_MAP_END
|
||||
Wiggie Waggie
|
||||
***************************************************************************/
|
||||
|
||||
READ8_MEMBER(seta_state::wiggie_soundlatch_r)
|
||||
{
|
||||
return m_wiggie_soundlatch;
|
||||
}
|
||||
|
||||
WRITE16_MEMBER(seta_state::wiggie_soundlatch_w)
|
||||
{
|
||||
m_wiggie_soundlatch = data >> 8;
|
||||
m_audiocpu->set_input_line(0, HOLD_LINE);
|
||||
}
|
||||
|
||||
|
||||
static ADDRESS_MAP_START( wiggie_map, AS_PROGRAM, 16, seta_state )
|
||||
AM_RANGE(0x000000, 0x01ffff) AM_ROM // ROM
|
||||
AM_RANGE(0xffc000, 0xffffff) AM_RAM // RAM
|
||||
@ -2915,7 +2903,7 @@ static ADDRESS_MAP_START( wiggie_map, AS_PROGRAM, 16, seta_state )
|
||||
AM_RANGE(0xb00004, 0xb00005) AM_READ_PORT("COINS") // Coins
|
||||
AM_RANGE(0xb0000c, 0xb0000d) AM_READ(thunderl_protection_r) // Protection (not in wits)
|
||||
AM_RANGE(0xb00008, 0xb00009) AM_READ_PORT("P3") // P3 (wits)
|
||||
AM_RANGE(0xb00008, 0xb00009) AM_WRITE(wiggie_soundlatch_w)
|
||||
AM_RANGE(0xb00008, 0xb00009) AM_DEVWRITE8("soundlatch", generic_latch_8_device, write, 0xff00)
|
||||
AM_RANGE(0xb0000a, 0xb0000b) AM_READ_PORT("P4") // P4 (wits)
|
||||
/**/AM_RANGE(0xc00000, 0xc00001) AM_RAM // ? 0x4000
|
||||
/**/AM_RANGE(0xd00000, 0xd005ff) AM_RAM AM_DEVREADWRITE("spritegen", seta001_device, spriteylow_r16, spriteylow_w16) // Sprites Y
|
||||
@ -2928,7 +2916,7 @@ static ADDRESS_MAP_START( wiggie_sound_map, AS_PROGRAM, 8, seta_state )
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||
AM_RANGE(0x8000, 0x87ff) AM_RAM
|
||||
AM_RANGE(0x9800, 0x9800) AM_DEVREADWRITE("oki", okim6295_device, read, write)
|
||||
AM_RANGE(0xa000, 0xa000) AM_READ(wiggie_soundlatch_r)
|
||||
AM_RANGE(0xa000, 0xa000) AM_DEVREAD("soundlatch", generic_latch_8_device, read)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -8274,7 +8262,7 @@ static ADDRESS_MAP_START( blockcarb_sound_portmap, AS_IO, 8, seta_state )
|
||||
ADDRESS_MAP_UNMAP_HIGH
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
// AM_RANGE(0x00, 0x01) AM_MIRROR(0x3e) AM_DEVREADWRITE("ymsnd", ym2151_device, read, write)
|
||||
// AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x3f) AM_READ(wiggie_soundlatch_r)
|
||||
// AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x3f) AM_DEVREAD("soundlatch", generic_latch_8_device, read)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( blockcarb, blockcar )
|
||||
@ -9276,7 +9264,6 @@ static ADDRESS_MAP_START( thunderlbl_sound_map, AS_PROGRAM, 8, seta_state )
|
||||
ADDRESS_MAP_UNMAP_HIGH
|
||||
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||
AM_RANGE(0x8000, 0xdfff) AM_ROM
|
||||
AM_RANGE(0xe800, 0xe800) AM_READ(wiggie_soundlatch_r)
|
||||
AM_RANGE(0xf800, 0xffff) AM_RAM
|
||||
ADDRESS_MAP_END
|
||||
|
||||
@ -9284,7 +9271,7 @@ static ADDRESS_MAP_START( thunderlbl_sound_portmap, AS_IO, 8, seta_state )
|
||||
ADDRESS_MAP_UNMAP_HIGH
|
||||
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||
AM_RANGE(0x00, 0x01) AM_MIRROR(0x3e) AM_DEVREADWRITE("ymsnd", ym2151_device, read, write)
|
||||
AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x3f) AM_READ(wiggie_soundlatch_r)
|
||||
AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x3f) AM_DEVREAD("soundlatch", generic_latch_8_device, read)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
@ -9304,6 +9291,9 @@ static MACHINE_CONFIG_DERIVED( thunderlbl, thunderl )
|
||||
|
||||
MCFG_YM2151_ADD("ymsnd", 10000000/2)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
|
||||
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0))
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -9340,6 +9330,9 @@ static MACHINE_CONFIG_START( wiggie )
|
||||
|
||||
MCFG_OKIM6295_ADD("oki", 1000000, PIN7_HIGH)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
|
||||
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0))
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( superbar, wiggie )
|
||||
|
@ -129,8 +129,6 @@ public:
|
||||
int m_keroppi_prize_hop;
|
||||
int m_keroppi_protection_count;
|
||||
|
||||
int m_wiggie_soundlatch;
|
||||
|
||||
uint8_t m_twineagl_xram[8];
|
||||
int m_twineagl_tilebank[4];
|
||||
|
||||
@ -168,8 +166,6 @@ public:
|
||||
DECLARE_READ16_MEMBER(kiwame_input_r);
|
||||
DECLARE_READ16_MEMBER(thunderl_protection_r);
|
||||
DECLARE_WRITE16_MEMBER(thunderl_protection_w);
|
||||
DECLARE_READ8_MEMBER(wiggie_soundlatch_r);
|
||||
DECLARE_WRITE16_MEMBER(wiggie_soundlatch_w);
|
||||
DECLARE_WRITE8_MEMBER(utoukond_sound_control_w);
|
||||
DECLARE_READ16_MEMBER(pairlove_prot_r);
|
||||
DECLARE_WRITE16_MEMBER(pairlove_prot_w);
|
||||
|
Loading…
Reference in New Issue
Block a user