Previous 15994 Revisions Next

r6173 Friday 23rd October, 2009 at 00:28:11 UTC by Angelo Salese
[PC98] Allow the bios to test the last plain bank at 0x80000-0x9ffff, needs to work out how to implement the extended memory test
[src/mess/drivers]pc98.c

src/mess/drivers/pc98.c
r6172r6173
548548   //printf("%02x\n",wram_bank);
549549}
550550
551static READ8_HANDLER( pc98_mouse_r )
552{
553   //TODO: 0x7fd8 bit 6 controls testing of bank 3 (0x80000-0x9ffff), afaik the mouse ppi is at odd addresses...
554   return 0xff;
555}
556
551557static READ32_HANDLER( gfx_bitmap_ram_r ) { return gfx_bitmap_ram[offset+ems_bank*0x18000/4]; }
552558static WRITE32_HANDLER( gfx_bitmap_ram_w ) { COMBINE_DATA(&gfx_bitmap_ram[offset+ems_bank*0x18000/4]); }
553559
r6172r6173
569575   AM_RANGE(0xfffe0000, 0xffffffff) AM_ROMBANK(1) AM_WRITE8(rom_bank_w,0xffffffff)
570576ADDRESS_MAP_END
571577
572
573
574578static ADDRESS_MAP_START( pc9801_io, ADDRESS_SPACE_IO, 32)
575579   AM_RANGE(0x0000, 0x001f) AM_READWRITE8(port_00_r,port_00_w,0xffffffff) // pic8259 (even ports) / dma (odd ports)
576580//   AM_RANGE(0x0020, 0x0020) rtc
r6172r6173
596600   AM_RANGE(0x00f0, 0x00ff) AM_READWRITE8(port_f0_r,port_f0_w,0xffffffff)
597601   AM_RANGE(0x043c, 0x043f) AM_WRITE8(ems_sel_w,0xffffffff)
598602   AM_RANGE(0x0460, 0x0463) AM_READWRITE8(wram_sel_r,wram_sel_w,0xffffffff)
603   AM_RANGE(0x7fd8, 0x7fdf) AM_READ8(pc98_mouse_r,0xffffffff)
599604
600605//   (and many more...)
601606ADDRESS_MAP_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team