src/mess/drivers/fmtowns.c
| r8405 | r8406 | |
| 271 | 271 | |
| 272 | 272 | switch(offset) |
| 273 | 273 | { |
| 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); |
| 275 | 276 | logerror("SYS: port 0x20 write %02x\n",data); |
| 276 | 277 | break; |
| 277 | 278 | case 0x02: |
| r8405 | r8406 | |
| 1846 | 1847 | AM_RANGE(0xc2000000, 0xc207ffff) AM_ROM AM_REGION("user",0x000000) // OS ROM |
| 1847 | 1848 | AM_RANGE(0xc2080000, 0xc20fffff) AM_ROM AM_REGION("user",0x100000) // DIC ROM |
| 1848 | 1849 | 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?) |
| 1850 | 1851 | AM_RANGE(0xc2180000, 0xc21fffff) AM_ROM AM_REGION("user",0x080000) // F20 ROM |
| 1851 | 1852 | AM_RANGE(0xc2200000, 0xc220ffff) AM_DEVREADWRITE8("pcm",rf5c68_mem_r,rf5c68_mem_w,0xffffffff) // WAVE RAM |
| 1852 | 1853 | AM_RANGE(0xfffc0000, 0xffffffff) AM_ROM AM_REGION("user",0x200000) // SYSTEM ROM |
| r8405 | r8406 | |
| 2147 | 2148 | state->pic_master = devtag_get_device(machine,"pic8259_master"); |
| 2148 | 2149 | state->pic_slave = devtag_get_device(machine,"pic8259_slave"); |
| 2149 | 2150 | 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; |
| 2151 | 2152 | state->towns_gfxvram = auto_alloc_array(machine,UINT8,0x80000); |
| 2152 | 2153 | state->towns_txtvram = auto_alloc_array(machine,UINT8,0x20000); |
| 2153 | 2154 | //towns_sprram = auto_alloc_array(machine,UINT8,0x20000); |
| r8405 | r8406 | |
| 2354 | 2355 | MDRV_UPD71071_ADD("dma_1",towns_dma_config) |
| 2355 | 2356 | MDRV_UPD71071_ADD("dma_2",towns_dma_config) |
| 2356 | 2357 | |
| 2358 | MDRV_NVRAM_HANDLER( generic_0fill ) |
| 2359 | |
| 2357 | 2360 | MDRV_VIDEO_START(towns) |
| 2358 | 2361 | MDRV_VIDEO_UPDATE(towns) |
| 2359 | 2362 | |