Previous 15994 Revisions Next

r11036 Friday 1st April, 2011 at 22:02:47 UTC by Barry Rodewald
[FMTOWNS] Fixed crash, added documentation of IC Memory Card I/O ports.
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r11035r11036
5454 * 0x0404   : Disable VRAM, CMOS, memory-mapped I/O (everything in low memory except the BIOS)
5555 * 0x0440-5f: Video / CRTC
5656 * 0x0480 RW: bit 1 = disable BIOS ROM
57 * 0x048a RW: JEIDA v3/v4(?) IC Memory card status
58 * 0x0490 RW: JEIDA v4 IC Memory card page select
59 * 0x0491 RW: JEIDA v4 IC Memory card
5760 * 0x04c0-cf: CD-ROM controller
5861 * 0x04d5   : Sound mute
5962 * 0x04d8   : YM3438 control port A / status
r11035r11036
12481251   state->m_towns_cd.status |= 0x02;  // status read request
12491252   state->m_towns_cd.status |= 0x01;  // ready
12501253   state->m_towns_cd.cmd_status_ptr = 0;
1251   towns_cdrom_set_irq((running_machine&)ptr,TOWNS_CD_IRQ_MPU,1);
1254   towns_cdrom_set_irq((running_machine&)machine,TOWNS_CD_IRQ_MPU,1);
12521255}
12531256
12541257static void towns_cd_set_status(running_machine &machine, UINT8 st0, UINT8 st1, UINT8 st2, UINT8 st3)
r11035r11036
19831986
19841987   if(tstate->m_towns_timer_mask & 0x02)
19851988   {
1986   //  pic8259_ir0_w(dev, state);
1989      //pic8259_ir0_w(dev, state);
19871990   }
19881991}
19891992
r11035r11036
20092012//  AM_RANGE(0x00100000, 0x005fffff) AM_RAM  // some extra RAM
20102013  AM_RANGE(0x80000000, 0x8007ffff) AM_READWRITE8(towns_gfx_high_r,towns_gfx_high_w,0xffffffff) AM_MIRROR(0x180000) // VRAM
20112014  AM_RANGE(0x81000000, 0x8101ffff) AM_READWRITE8(towns_spriteram_r,towns_spriteram_w,0xffffffff) // Sprite RAM
2015  // 0xc0000000 - 0xc0ffffff  // IC Memory Card (static, first 16MB only)
2016  // 0xc1000000 - 0xc1ffffff  // IC Memory Card (banked, can show any of 4 banks), JEIDA v4 only (UX and later)
20122017  AM_RANGE(0xc2000000, 0xc207ffff) AM_ROM AM_REGION("user",0x000000)  // OS ROM
20132018  AM_RANGE(0xc2080000, 0xc20fffff) AM_ROM AM_REGION("user",0x100000)  // DIC ROM
20142019  AM_RANGE(0xc2100000, 0xc213ffff) AM_ROM AM_REGION("user",0x180000)  // FONT ROM
r11035r11036
20372042  AM_RANGE(0x00a00000, 0x00a7ffff) AM_READWRITE8(towns_gfx_high_r,towns_gfx_high_w,0xffffffff) AM_MIRROR(0x180000) // VRAM
20382043  AM_RANGE(0x00b00000, 0x00b7ffff) AM_ROM AM_REGION("user",0x180000)  // FONT
20392044  AM_RANGE(0x00c00000, 0x00c1ffff) AM_READWRITE8(towns_spriteram_r,towns_spriteram_w,0xffffffff) // Sprite RAM
2040  AM_RANGE(0x00d00000, 0x00dfffff) AM_RAM // ?? - used by ssf2
2045  AM_RANGE(0x00d00000, 0x00dfffff) AM_RAM // IC Memory Card (is this usable on the Marty?)
20412046  AM_RANGE(0x00e80000, 0x00efffff) AM_ROM AM_REGION("user",0x100000)  // DIC ROM
20422047  AM_RANGE(0x00f00000, 0x00f7ffff) AM_ROM AM_REGION("user",0x180000)  // FONT
20432048  AM_RANGE(0x00f80000, 0x00f8ffff) AM_DEVREADWRITE8("pcm",rf5c68_mem_r,rf5c68_mem_w,0xffffffff)  // WAVE RAM
r11035r11036
20632068  AM_RANGE(0x00a00000, 0x00a7ffff) AM_READWRITE8(towns_gfx_high_r,towns_gfx_high_w,0xffffffff) AM_MIRROR(0x180000) // VRAM
20642069  AM_RANGE(0x00b00000, 0x00b7ffff) AM_ROM AM_REGION("user",0x180000)  // FONT
20652070  AM_RANGE(0x00c00000, 0x00c1ffff) AM_READWRITE8(towns_spriteram_r,towns_spriteram_w,0xffffffff) // Sprite RAM
2066  AM_RANGE(0x00d00000, 0x00dfffff) AM_RAM // ?? - used by ssf2
2071  AM_RANGE(0x00d00000, 0x00dfffff) AM_RAM // IC Memory Card
20672072  AM_RANGE(0x00e00000, 0x00e7ffff) AM_ROM AM_REGION("user",0x000000)  // OS
20682073  AM_RANGE(0x00e80000, 0x00efffff) AM_ROM AM_REGION("user",0x100000)  // DIC ROM
20692074  AM_RANGE(0x00f00000, 0x00f7ffff) AM_ROM AM_REGION("user",0x180000)  // FONT

Previous 15994 Revisions Next


© 1998-2018 The MESS Team