Previous 199869 Revisions Next

r17644 Tuesday 4th September, 2012 at 19:15:17 UTC by Angelo Salese
Moved MEMSEL as well
[src/emu/cpu/g65816]g65816.c
[src/mame/includes]snes.h
[src/mame/machine]snes.c

trunk/src/mame/machine/snes.c
r17643r17644
725725         if (data) //if a HDMA is enabled, data is inited at the next scanline
726726            space->machine().scheduler().timer_set(space->machine().primary_screen->time_until_pos(snes_ppu.beam.current_vert + 1), FUNC(snes_reset_hdma));
727727         break;
728      case MEMSEL:   /* Access cycle designation in memory (2) area */
729         cpu_set_reg(state->m_maincpu, _5A22_FASTROM, data & 1);
730         break;
731728      case TIMEUP:   // IRQ Flag is cleared on both read and write
732729         device_set_input_line(state->m_maincpu, G65816_LINE_IRQ, CLEAR_LINE );
733730         snes_ram[TIMEUP] = 0;
trunk/src/mame/includes/snes.h
r17643r17644
157157#define VTIMEH         0x420A
158158#define MDMAEN         0x420B
159159#define HDMAEN         0x420C
160#define MEMSEL         0x420D
160//#define MEMSEL         0x420D
161161#define RDNMI          0x4210
162162#define TIMEUP         0x4211
163163#define HVBJOY         0x4212
trunk/src/emu/cpu/g65816/g65816.c
r17643r17644
627627   cpustate->rdmpy = remainder;
628628}
629629
630static WRITE8_HANDLER( memsel_w )
631{
632   g65816i_cpu_struct *cpustate = get_safe_token(&space->device());
633   cpustate->fastROM = data & 1;
634}
635
630636static READ8_HANDLER( rddivl_r )
631637{
632638   g65816i_cpu_struct *cpustate = get_safe_token(&space->device());
r17643r17644
659665   AM_RANGE(0x4205, 0x4205) AM_MIRROR(0x3f0000) AM_WRITE_LEGACY(wrdivh_w)
660666   AM_RANGE(0x4206, 0x4206) AM_MIRROR(0x3f0000) AM_WRITE_LEGACY(wrdvdd_w)
661667
668   AM_RANGE(0x420d, 0x420d) AM_MIRROR(0x3f0000) AM_WRITE_LEGACY(memsel_w)
669
662670   AM_RANGE(0x4214, 0x4214) AM_MIRROR(0x3f0000) AM_READ_LEGACY(rddivl_r)
663671   AM_RANGE(0x4215, 0x4215) AM_MIRROR(0x3f0000) AM_READ_LEGACY(rddivh_r)
664672   AM_RANGE(0x4216, 0x4216) AM_MIRROR(0x3f0000) AM_READ_LEGACY(rdmpyl_r)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team