Previous 15994 Revisions Next

r6168 Thursday 22nd October, 2009 at 08:36:13 UTC by Barry Rodewald
[FMTOWNS] Hooked up linear VRAM access at 0x80000000.
[docs]messnew.txt
[src/mess/drivers]fmtowns.c

src/mess/drivers/fmtowns.c
r6167r6168
828828   }
829829}
830830
831static READ8_HANDLER( towns_gfx_high_r )
832{
833   return towns_gfxvram[offset];
834}
835
836static WRITE8_HANDLER( towns_gfx_high_w )
837{
838   towns_gfxvram[offset] = data;
839}
840
831841static READ8_HANDLER( towns_sys480_r )
832842{
833843   if(towns_system_port & 0x02)
r6167r6168
10531063  AM_RANGE(0x000f0000, 0x000f7fff) AM_RAM //READWRITE(SMH_BANK(12),SMH_BANK(12))
10541064  AM_RANGE(0x000f8000, 0x000fffff) AM_READWRITE(SMH_BANK(11),SMH_BANK(12))
10551065  AM_RANGE(0x00100000, 0x005fffff) AM_RAM  // some extra RAM - seems to be needed to boot
1056  AM_RANGE(0x80000000, 0x8003ffff) AM_RAM AM_MIRROR(0x1c0000) AM_BASE(&towns_vram) // VRAM
1066  AM_RANGE(0x80000000, 0x8003ffff) AM_READWRITE8(towns_gfx_high_r,towns_gfx_high_w,0xffffffff) AM_MIRROR(0x1c0000) // VRAM
10571067  AM_RANGE(0x81000000, 0x8101ffff) AM_RAM  // Sprite RAM
10581068  AM_RANGE(0xc2000000, 0xc207ffff) AM_ROM AM_REGION("user",0x000000)  // OS ROM
10591069  AM_RANGE(0xc2080000, 0xc20fffff) AM_ROM AM_REGION("user",0x100000)  // DIC ROM
r6167r6168
11261136{
11271137   towns_vram = auto_alloc_array(machine,UINT32,0x20000);
11281138   towns_cmos = auto_alloc_array(machine,UINT8,0x2000);
1129   towns_gfxvram = auto_alloc_array(machine,UINT8,0x200000);
1139   towns_gfxvram = auto_alloc_array(machine,UINT8,0x40000);
11301140   towns_txtvram = auto_alloc_array(machine,UINT8,0x8000);
11311141   towns_serial_rom = auto_alloc_array(machine,UINT8,256/8);
11321142   towns_init_serial_rom(machine);
docs/messnew.txt
r6167r6168
9292  * Hooked up PIT timer 0 interrupt
9393  * Added simple RTC
9494  * Hooked up slave PIC
95  * Hooked up linear VRAM access at 0x80000000
9596
9697- [GAMECOM] Fixed error and crashes when loading a cart: you can now
9798  reach title screens in some 1MB and 2MB carts. [Robbbert]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team