diff options
author | 2012-09-04 19:15:17 +0000 | |
---|---|---|
committer | 2012-09-04 19:15:17 +0000 | |
commit | 5e9c0a958435d38ea992f0a1fe0aef1e62d1d931 (patch) | |
tree | d34affb91eb6fadc38766eb6250ae44702b149a7 /src | |
parent | 1d16e70191fb358d51da792f4cd100aec9fc139b (diff) |
Moved MEMSEL as well
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/cpu/g65816/g65816.c | 8 | ||||
-rw-r--r-- | src/mame/includes/snes.h | 2 | ||||
-rw-r--r-- | src/mame/machine/snes.c | 3 |
3 files changed, 9 insertions, 4 deletions
diff --git a/src/emu/cpu/g65816/g65816.c b/src/emu/cpu/g65816/g65816.c index c7e5dcdcf5f..8cb5856c58f 100644 --- a/src/emu/cpu/g65816/g65816.c +++ b/src/emu/cpu/g65816/g65816.c @@ -627,6 +627,12 @@ static WRITE8_HANDLER( wrdvdd_w ) cpustate->rdmpy = remainder; } +static WRITE8_HANDLER( memsel_w ) +{ + g65816i_cpu_struct *cpustate = get_safe_token(&space->device()); + cpustate->fastROM = data & 1; +} + static READ8_HANDLER( rddivl_r ) { g65816i_cpu_struct *cpustate = get_safe_token(&space->device()); @@ -659,6 +665,8 @@ static ADDRESS_MAP_START(_5a22_map, AS_PROGRAM, 8, legacy_cpu_device) AM_RANGE(0x4205, 0x4205) AM_MIRROR(0x3f0000) AM_WRITE_LEGACY(wrdivh_w) AM_RANGE(0x4206, 0x4206) AM_MIRROR(0x3f0000) AM_WRITE_LEGACY(wrdvdd_w) + AM_RANGE(0x420d, 0x420d) AM_MIRROR(0x3f0000) AM_WRITE_LEGACY(memsel_w) + AM_RANGE(0x4214, 0x4214) AM_MIRROR(0x3f0000) AM_READ_LEGACY(rddivl_r) AM_RANGE(0x4215, 0x4215) AM_MIRROR(0x3f0000) AM_READ_LEGACY(rddivh_r) AM_RANGE(0x4216, 0x4216) AM_MIRROR(0x3f0000) AM_READ_LEGACY(rdmpyl_r) diff --git a/src/mame/includes/snes.h b/src/mame/includes/snes.h index 6488cc91697..6a6d662e298 100644 --- a/src/mame/includes/snes.h +++ b/src/mame/includes/snes.h @@ -157,7 +157,7 @@ #define VTIMEH 0x420A #define MDMAEN 0x420B #define HDMAEN 0x420C -#define MEMSEL 0x420D +//#define MEMSEL 0x420D #define RDNMI 0x4210 #define TIMEUP 0x4211 #define HVBJOY 0x4212 diff --git a/src/mame/machine/snes.c b/src/mame/machine/snes.c index 7ab8aadbef4..f2c3bcdb7df 100644 --- a/src/mame/machine/snes.c +++ b/src/mame/machine/snes.c @@ -725,9 +725,6 @@ WRITE8_HANDLER( snes_w_io ) if (data) //if a HDMA is enabled, data is inited at the next scanline space->machine().scheduler().timer_set(space->machine().primary_screen->time_until_pos(snes_ppu.beam.current_vert + 1), FUNC(snes_reset_hdma)); break; - case MEMSEL: /* Access cycle designation in memory (2) area */ - cpu_set_reg(state->m_maincpu, _5A22_FASTROM, data & 1); - break; case TIMEUP: // IRQ Flag is cleared on both read and write device_set_input_line(state->m_maincpu, G65816_LINE_IRQ, CLEAR_LINE ); snes_ram[TIMEUP] = 0; |