Previous 199869 Revisions Next

r19640 Tuesday 18th December, 2012 at 02:07:05 UTC by Angelo Salese
Fixed PC-9821 regression
[src/mess/drivers]pc9801.c

trunk/src/mess/drivers/pc9801.c
r19639r19640
549549   DECLARE_READ8_MEMBER(pc9821_window_bank_r);
550550   DECLARE_WRITE8_MEMBER(pc9821_window_bank_w);
551551   DECLARE_READ32_MEMBER(pc9821_timestamp_r);
552   DECLARE_READ8_MEMBER(pc9821_ext2_video_ff_r);
553   DECLARE_WRITE8_MEMBER(pc9821_ext2_video_ff_w);
552554
553555   DECLARE_FLOPPY_FORMATS( floppy_formats );
554556
r19639r19640
24132415   return m_maincpu->total_cycles();
24142416}
24152417
2418READ8_MEMBER(pc9801_state::pc9821_ext2_video_ff_r)
2419{
2420   return 0;
2421}
2422
2423WRITE8_MEMBER(pc9801_state::pc9821_ext2_video_ff_w)
2424{
2425   // ...
2426}
2427
24162428static ADDRESS_MAP_START( pc9821_map, AS_PROGRAM, 32, pc9801_state )
24172429   AM_RANGE(0x00000000, 0xffffffff) AM_READWRITE8(pc9821_memory_r,pc9821_memory_w,0xffffffff)
24182430ADDRESS_MAP_END
24192431
24202432static ADDRESS_MAP_START( pc9821_io, AS_IO, 32, pc9801_state )
2421   ADDRESS_MAP_UNMAP_HIGH
2433//   ADDRESS_MAP_UNMAP_HIGH // TODO: a read to somewhere makes this to fail at POST
24222434   AM_RANGE(0x0000, 0x001f) AM_READWRITE8(pc9801_00_r,        pc9801_00_w,        0xffffffff) // i8259 PIC (bit 3 ON slave / master) / i8237 DMA
24232435   AM_RANGE(0x0020, 0x0027) AM_READWRITE8(pc9801_20_r,        pc9801_20_w,        0xffffffff) // RTC / DMA registers (LS244)
24242436   AM_RANGE(0x0030, 0x0037) AM_READWRITE8(pc9801rs_30_r,      pc9801_30_w,        0xffffffff) //i8251 RS232c / i8255 system port
r19639r19640
24522464//  AM_RANGE(0x0642, 0x064f) IDE registers / <undefined>
24532465   AM_RANGE(0x074c, 0x074f) AM_READ8(ide_status_r, 0x000000ff) // IDE status (r) - IDE control registers (w) / <undefined>
24542466//  AM_RANGE(0x08e0, 0x08ea) <undefined> / EMM SIO registers
2455//  AM_RANGE(0x09a0, 0x09a0) GDC extended register r/w
2456//  AM_RANGE(0x09a8, 0x09a8) GDC 31KHz register r/w
2467   AM_RANGE(0x09a0, 0x09a3) AM_READWRITE8(pc9821_ext2_video_ff_r, pc9821_ext2_video_ff_w, 0xffffffff) // GDC extended register r/w
2468//   AM_RANGE(0x09a8, 0x09a8) GDC 31KHz register r/w
24572469//  AM_RANGE(0x0c07, 0x0c07) EPSON register w
24582470//  AM_RANGE(0x0c03, 0x0c03) EPSON register 0 r
24592471//  AM_RANGE(0x0c13, 0x0c14) EPSON register 1 r

Previous 199869 Revisions Next


© 1997-2024 The MAME Team