mirror of
https://github.com/holub/mame
synced 2025-05-11 08:38:47 +03:00
dinohunt: working sound (MT05805) [darq]
if someone owns the PCB of this particular bootleg, please verify if there's a YM2151
This commit is contained in:
parent
4a22c103dd
commit
00180d3f67
@ -11518,12 +11518,21 @@ DRIVER_INIT_MEMBER(cps_state, ganbare)
|
|||||||
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0xff0000, 0xffffff, read16_delegate(FUNC(cps_state::ganbare_ram_r),this), write16_delegate(FUNC(cps_state::ganbare_ram_w),this));
|
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0xff0000, 0xffffff, read16_delegate(FUNC(cps_state::ganbare_ram_r),this), write16_delegate(FUNC(cps_state::ganbare_ram_w),this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
READ16_MEMBER(cps_state::dinohunt_sound_r)
|
||||||
|
{
|
||||||
|
/*TODO: understand what's really going on here. According to MT05805;
|
||||||
|
"I think that the values written are only qsound leftovers (after a lot of 0xFF values,
|
||||||
|
there is the same qsound starting sequence, eg: 0x88, 0xFF, 0x0B, 0x00, 0x00, 0x00, ...)."*/
|
||||||
|
return 0xff;
|
||||||
|
}
|
||||||
|
|
||||||
DRIVER_INIT_MEMBER(cps_state,dinohunt)
|
DRIVER_INIT_MEMBER(cps_state,dinohunt)
|
||||||
{
|
{
|
||||||
// is this shared with the new sound hw?
|
// is this shared with the new sound hw?
|
||||||
UINT8* ram = (UINT8*)m_maincpu->space(AS_PROGRAM).install_ram(0xf18000, 0xf19fff);
|
m_maincpu->space(AS_PROGRAM).install_read_handler(0xf18000, 0xf19fff, read16_delegate(FUNC(cps_state::dinohunt_sound_r), this));
|
||||||
memset(ram,0xff,0x2000);
|
m_maincpu->space(AS_PROGRAM).install_read_port(0xfc0000, 0xfc0001, "IN2"); ;
|
||||||
m_maincpu->space(AS_PROGRAM).install_read_handler(0xfc0000, 0xfc0001, read16_delegate(FUNC(cps_state::cps1_in2_r), this));
|
// the ym2151 doesn't seem to be used. Is it actually on the PCB?
|
||||||
|
|
||||||
DRIVER_INIT_CALL(cps1);
|
DRIVER_INIT_CALL(cps1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,6 +242,7 @@ public:
|
|||||||
DECLARE_WRITE8_MEMBER(cps1_oki_pin7_w);
|
DECLARE_WRITE8_MEMBER(cps1_oki_pin7_w);
|
||||||
DECLARE_WRITE16_MEMBER(sf2m1_layer_w);
|
DECLARE_WRITE16_MEMBER(sf2m1_layer_w);
|
||||||
DECLARE_WRITE16_MEMBER(sf2m3_layer_w);
|
DECLARE_WRITE16_MEMBER(sf2m3_layer_w);
|
||||||
|
DECLARE_READ16_MEMBER(dinohunt_sound_r);
|
||||||
DECLARE_DRIVER_INIT(sf2rb);
|
DECLARE_DRIVER_INIT(sf2rb);
|
||||||
DECLARE_DRIVER_INIT(sf2rb2);
|
DECLARE_DRIVER_INIT(sf2rb2);
|
||||||
DECLARE_DRIVER_INIT(sf2thndr);
|
DECLARE_DRIVER_INIT(sf2thndr);
|
||||||
|
Loading…
Reference in New Issue
Block a user