Port from MESS, nw

This commit is contained in:
Angelo Salese 2011-07-21 14:47:47 +00:00
parent 6ca8f8a8c3
commit a9e30eccc8
2 changed files with 9 additions and 2 deletions

View File

@ -576,7 +576,7 @@ static WRITE32_HANDLER( saturn_scu_w )
case 0x14/4: case 0x34/4: case 0x54/4: case 0x14/4: case 0x34/4: case 0x54/4:
if(INDIRECT_MODE(DMA_CH)) if(INDIRECT_MODE(DMA_CH))
{ {
if(LOG_SCU) logerror("Indirect Mode DMA lv %d set\n",DMA_CH); //if(LOG_SCU) logerror("Indirect Mode DMA lv %d set\n",DMA_CH);
if(!DWUP(DMA_CH)) state->m_scu.index[DMA_CH] = state->m_scu.dst[DMA_CH]; if(!DWUP(DMA_CH)) state->m_scu.index[DMA_CH] = state->m_scu.dst[DMA_CH];
} }

View File

@ -26,6 +26,7 @@
#include "cdrom.h" #include "cdrom.h"
#include "stvcd.h" #include "stvcd.h"
#include "sound/cdda.h" #include "sound/cdda.h"
#include "debugger.h"
// super-verbose // super-verbose
#if 0 #if 0
@ -892,6 +893,11 @@ static void cd_writeWord(running_machine &machine, UINT32 addr, UINT16 data)
hirqreg |= CMOK|DRDY; hirqreg |= CMOK|DRDY;
break; break;
/* these are ERRORS from our core and mustn't happen! */
case 0x2100:
case 0x2300:
debugger_break(machine);
break;
case 0x3000: // Set CD Device connection case 0x3000: // Set CD Device connection
{ {
@ -1301,8 +1307,9 @@ static void cd_writeWord(running_machine &machine, UINT32 addr, UINT16 data)
break; break;
case 0x6400: // put sector data case 0x6400: // put sector data
/* TODO: Dungeon Master Nexus trips this */ /* TODO: After Burner 2 and Dungeon Master Nexus trips this */
// ... // ...
hirqreg |= (CMOK|EHST); hirqreg |= (CMOK|EHST);
break; break;