Added sound comms in Raiden 2, giving working sound to it [Angelo Salese]

This commit is contained in:
Angelo Salese 2010-12-20 16:12:07 +00:00
parent 7c2a83e1ef
commit 300a85baae
2 changed files with 27 additions and 0 deletions

View File

@ -795,6 +795,28 @@ static MACHINE_RESET(raiden2)
//cop_init(); //cop_init();
} }
READ16_MEMBER(raiden2_state::raiden2_sound_comms_r)
{
switch(offset)
{
case (0x008/2): return seibu_main_word_r(&space,2,0xffff);
case (0x00c/2): return seibu_main_word_r(&space,3,0xffff);
case (0x014/2): return seibu_main_word_r(&space,5,0xffff);
}
return 0xffff;
}
WRITE16_MEMBER(raiden2_state::raiden2_sound_comms_w)
{
switch(offset)
{
case (0x000/2): { seibu_main_word_w(&space,0,data,0x00ff); break; }
case (0x004/2): { seibu_main_word_w(&space,1,data,0x00ff); break; }
case (0x010/2): { seibu_main_word_w(&space,4,data,0x00ff); break; }
case (0x018/2): { seibu_main_word_w(&space,6,data,0x00ff); break; }
}
}
/* MEMORY MAPS */ /* MEMORY MAPS */
@ -839,6 +861,8 @@ static ADDRESS_MAP_START( raiden2_mem, ADDRESS_SPACE_PROGRAM, 16, raiden2_state
AM_RANGE(0x006ce, 0x006cf) AM_WRITE(sprcpt_flags_2_w) AM_RANGE(0x006ce, 0x006cf) AM_WRITE(sprcpt_flags_2_w)
AM_RANGE(0x006fc, 0x006fd) AM_WRITE(cop_dma_trigger_w) AM_RANGE(0x006fc, 0x006fd) AM_WRITE(cop_dma_trigger_w)
AM_RANGE(0x00700, 0x0071f) AM_READWRITE(raiden2_sound_comms_r,raiden2_sound_comms_w)
AM_RANGE(0x00740, 0x00741) AM_READ_PORT("DSW") AM_RANGE(0x00740, 0x00741) AM_READ_PORT("DSW")
AM_RANGE(0x00744, 0x00745) AM_READ_PORT("CONTROLS") AM_RANGE(0x00744, 0x00745) AM_READ_PORT("CONTROLS")
AM_RANGE(0x0074c, 0x0074d) AM_READ_PORT("SYSTEM") AM_RANGE(0x0074c, 0x0074d) AM_READ_PORT("SYSTEM")

View File

@ -56,6 +56,9 @@ public:
DECLARE_READ16_MEMBER( rdx_v33_unknown2_r ); DECLARE_READ16_MEMBER( rdx_v33_unknown2_r );
DECLARE_READ16_MEMBER( nzerotea_unknown_r ); DECLARE_READ16_MEMBER( nzerotea_unknown_r );
DECLARE_READ16_MEMBER( raiden2_sound_comms_r );
DECLARE_WRITE16_MEMBER( raiden2_sound_comms_w );
void common_reset(); void common_reset();
tilemap_t *background_layer,*midground_layer,*foreground_layer,*text_layer; tilemap_t *background_layer,*midground_layer,*foreground_layer,*text_layer;