diff options
Diffstat (limited to 'src/mess/machine/megasvp.c')
-rw-r--r-- | src/mess/machine/megasvp.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mess/machine/megasvp.c b/src/mess/machine/megasvp.c index bbe7e3c3827..2ce487dde99 100644 --- a/src/mess/machine/megasvp.c +++ b/src/mess/machine/megasvp.c @@ -60,12 +60,12 @@ static UINT32 pm_io(address_space &space, int reg, int write, UINT32 d) state->m_emu_status &= ~SSP_PMC_SET; return 0; } - + // just in case if (state->m_emu_status & SSP_PMC_HAVE_ADDR) { state->m_emu_status &= ~SSP_PMC_HAVE_ADDR; } - + if (reg == 4 || (space.device().state().state_int(SSP_ST) & 0x60)) { #define CADDR ((((mode<<16)&0x7f0000)|addr)<<1) @@ -98,7 +98,7 @@ static UINT32 pm_io(address_space &space, int reg, int write, UINT32 d) else { logerror("ssp FIXME: PM%i unhandled write mode %04x, [%06x] %04x\n", - reg, mode, CADDR, d); + reg, mode, CADDR, d); } } else @@ -120,17 +120,17 @@ static UINT32 pm_io(address_space &space, int reg, int write, UINT32 d) else { logerror("ssp FIXME: PM%i unhandled read mode %04x, [%06x]\n", - reg, mode, CADDR); + reg, mode, CADDR); d = 0; } } - + // PMC value corresponds to last PMR accessed (not sure). state->m_pmc.d = state->m_pmac_read[write ? reg + 6 : reg]; - + return d; } - + return (UINT32)-1; } @@ -187,7 +187,7 @@ static READ16_HANDLER( read_XST ) mdsvp_state *state = space.machine().driver_data<mdsvp_state>(); UINT32 d = pm_io(space, 3, 0, 0); if (d != (UINT32)-1) return d; - + return state->m_XST; } @@ -196,7 +196,7 @@ static WRITE16_HANDLER( write_XST ) mdsvp_state *state = space.machine().driver_data<mdsvp_state>(); UINT32 r = pm_io(space, 3, 1, data); if (r != (UINT32)-1) return; - + state->m_XST2 |= 1; state->m_XST = data; } @@ -326,7 +326,7 @@ void svp_init(running_machine &machine) { mdsvp_state *state = machine.driver_data<mdsvp_state>(); UINT8 *ROM = state->memregion("maincpu")->base(); - + memset(state->m_pmac_read, 0, ARRAY_LENGTH(state->m_pmac_read)); memset(state->m_pmac_write, 0, ARRAY_LENGTH(state->m_pmac_write)); state->m_pmc.d = 0; @@ -335,7 +335,7 @@ void svp_init(running_machine &machine) state->m_emu_status = 0; state->m_XST = 0; state->m_XST2 = 0; - + /* SVP stuff */ state->m_dram = auto_alloc_array(machine, UINT8, 0x20000); machine.device("maincpu")->memory().space(AS_PROGRAM).install_ram(0x300000, 0x31ffff, state->m_dram); @@ -343,7 +343,7 @@ void svp_init(running_machine &machine) // "cell arrange" 1 and 2 machine.device("maincpu")->memory().space(AS_PROGRAM).install_legacy_read_handler(0x390000, 0x39ffff, FUNC(svp_68k_cell1_r)); machine.device("maincpu")->memory().space(AS_PROGRAM).install_legacy_read_handler(0x3a0000, 0x3affff, FUNC(svp_68k_cell2_r)); - + machine.device("svp")->memory().space(AS_PROGRAM).install_legacy_read_handler(0x438, 0x438, FUNC(svp_speedup_r)); if (state->m_slotcart->m_cart->get_rom_base() != NULL) |