Previous 199869 Revisions Next

r21428 Sunday 24th February, 2013 at 21:11:52 UTC by Angelo Salese
Fixed sound mirror
[src/mame/drivers]coolridr.c

trunk/src/mame/drivers/coolridr.c
r21427r21428
426426   bitmap_rgb32 m_screen2_bitmap;
427427   int m_scsp_last_line;
428428   UINT8 an_mux_data;
429   UINT8 sound_data, sound_fifo_full;
429   UINT8 sound_data, sound_fifo;
430430
431431   UINT8* m_compressedgfx;
432432   UINT16* m_expanded_10bit_gfx;
r21427r21428
21012101         UINT32 dst = m_sound_dma[1];
21022102         UINT32 size = (m_sound_dma[2]>>16)*0x40;
21032103
2104         //printf("%08x %08x %08x %02x\n",src,dst,size,sound_fifo);
2105
21042106         for(int i = 0;i < size; i+=2)
21052107         {
21062108            sound_space.write_word(dst,main_space.read_word(src));
r21427r21428
21182120         UINT32 dst = m_sound_dma[5];
21192121         UINT32 size = (m_sound_dma[6]>>16)*0x40;
21202122
2121         //printf("%08x %08x %08x %02x\n",src,dst,size,sound_data);
2123         //printf("%08x %08x %08x %02x\n",src,dst,size,sound_fifo);
21222124
21232125         for(int i = 0;i < size; i+=2)
21242126         {
r21427r21428
21692171/* TODO: what is this for, volume mixing? MIDI? */
21702172WRITE8_MEMBER(coolridr_state::sound_to_sh1_w)
21712173{
2172   sound_fifo_full = data & 0x80;
2174   sound_fifo = data;
21732175//   sound_data = data;
21742176//   printf("%02x sound\n",data);
21752177}
r21427r21428
21792181   AM_RANGE(0x100000, 0x100fff) AM_DEVREADWRITE_LEGACY("scsp1", scsp_r, scsp_w)
21802182   AM_RANGE(0x200000, 0x27ffff) AM_RAM AM_REGION("scsp2",0) AM_SHARE("soundram2")
21812183   AM_RANGE(0x300000, 0x300fff) AM_DEVREADWRITE_LEGACY("scsp2", scsp_r, scsp_w)
2182   AM_RANGE(0x800000, 0x80ffff) AM_RAM
2184   AM_RANGE(0x800000, 0x80ffff) AM_MIRROR(0x200000) AM_RAM
21832185   AM_RANGE(0x900000, 0x900001) AM_WRITE8(sound_to_sh1_w,0x00ff)
21842186ADDRESS_MAP_END
21852187

Previous 199869 Revisions Next


© 1997-2024 The MAME Team