Previous 15994 Revisions Next

r8406 Tuesday 6th July, 2010 at 20:51:07 UTC by Barry Rodewald
[FMTOWNS] Added saving of CMOS RAM to NVRAM file.
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r8405r8406
271271
272272   switch(offset)
273273   {
274      case 0x00:  // bit 7 = NMI vector protect, bit 6 = power off, bit 0 = software reset
274      case 0x00:  // bit 7 = NMI vector protect, bit 6 = power off, bit 0 = software reset, bit 3 = A20 line?
275//         cputag_set_input_line(space->machine,"maincpu",INPUT_LINE_A20,(data & 0x08) ? CLEAR_LINE : ASSERT_LINE);
275276         logerror("SYS: port 0x20 write %02x\n",data);
276277         break;
277278      case 0x02:
r8405r8406
18461847  AM_RANGE(0xc2000000, 0xc207ffff) AM_ROM AM_REGION("user",0x000000)  // OS ROM
18471848  AM_RANGE(0xc2080000, 0xc20fffff) AM_ROM AM_REGION("user",0x100000)  // DIC ROM
18481849  AM_RANGE(0xc2100000, 0xc213ffff) AM_ROM AM_REGION("user",0x180000)  // FONT ROM
1849  AM_RANGE(0xc2140000, 0xc2141fff) AM_READWRITE8(towns_cmos_r,towns_cmos_w,0xffffffff) // CMOS (mirror?)
1850  AM_RANGE(0xc2140000, 0xc2141fff) AM_READWRITE8(towns_cmos_r,towns_cmos_w,0xffffffff) AM_BASE_SIZE_GENERIC(nvram) // CMOS (mirror?)
18501851  AM_RANGE(0xc2180000, 0xc21fffff) AM_ROM AM_REGION("user",0x080000)  // F20 ROM
18511852  AM_RANGE(0xc2200000, 0xc220ffff) AM_DEVREADWRITE8("pcm",rf5c68_mem_r,rf5c68_mem_w,0xffffffff)  // WAVE RAM
18521853  AM_RANGE(0xfffc0000, 0xffffffff) AM_ROM AM_REGION("user",0x200000)  // SYSTEM ROM
r8405r8406
21472148   state->pic_master = devtag_get_device(machine,"pic8259_master");
21482149   state->pic_slave = devtag_get_device(machine,"pic8259_slave");
21492150   state->towns_vram = auto_alloc_array(machine,UINT32,0x20000);
2150   state->towns_cmos = auto_alloc_array(machine,UINT8,0x2000);
2151   state->towns_cmos = machine->generic.nvram.u8;
21512152   state->towns_gfxvram = auto_alloc_array(machine,UINT8,0x80000);
21522153   state->towns_txtvram = auto_alloc_array(machine,UINT8,0x20000);
21532154   //towns_sprram = auto_alloc_array(machine,UINT8,0x20000);
r8405r8406
23542355   MDRV_UPD71071_ADD("dma_1",towns_dma_config)
23552356   MDRV_UPD71071_ADD("dma_2",towns_dma_config)
23562357
2358   MDRV_NVRAM_HANDLER( generic_0fill )
2359
23572360    MDRV_VIDEO_START(towns)
23582361    MDRV_VIDEO_UPDATE(towns)
23592362

Previous 15994 Revisions Next


© 1998-2018 The MESS Team