Previous 199869 Revisions Next

r32561 Monday 6th October, 2014 at 03:13:57 UTC by Carl
(mess) pc9801: sigh (nw)
[src/mess/drivers]pc9801.c

trunk/src/mess/drivers/pc9801.c
r32560r32561
599599   DECLARE_WRITE8_MEMBER(pc9801ux_gvram0_w);
600600   UINT32 pc9801_286_a20(bool state);
601601
602   DECLARE_READ8_MEMBER(ide_hack_r);
602603   DECLARE_WRITE8_MEMBER(sasi_data_w);
603604   DECLARE_READ8_MEMBER(sasi_data_r);
604605   DECLARE_WRITE_LINE_MEMBER(write_sasi_io);
r32560r32561
17251726   }
17261727}
17271728
1729READ8_MEMBER(pc9801_state::ide_hack_r)
1730{
1731   // this makes the ide driver not do 512 to 256 byte sector translation, the 9821 looks for bit 6 of offset 0xac403 of the kanji ram to set this, the rs unknown
1732   m_work_ram[0x457] |= 0xc0;
1733   return 0xff;
1734}
1735
17281736READ8_MEMBER( pc9801_state::sasi_data_r )
17291737{
17301738   UINT8 data = m_sasi_data_in->read();
r32560r32561
23272335//  AM_RANGE(0x00ec, 0x00ef) PC-9801-86 sound board
23282336   AM_RANGE(0x00f0, 0x00ff) AM_READWRITE8(pc9801rs_f0_r,      pc9801rs_f0_w,      0xffffffff)
23292337//  AM_RANGE(0x0188, 0x018f) AM_READWRITE8(pc9801_opn_r,       pc9801_opn_w,       0xffffffff) //ym2203 opn / <undefined>
2338   AM_RANGE(0x0430, 0x0433) AM_READ8(ide_hack_r, 0x000000ff)
23302339
23312340   AM_RANGE(0x0438, 0x043b) AM_READWRITE8(pc9801rs_access_ctrl_r,pc9801rs_access_ctrl_w,0xffffffff)
23322341   AM_RANGE(0x043c, 0x043f) AM_WRITE8(pc9801rs_bank_w,    0xffffffff) //ROM/RAM bank
r32560r32561
26962705   AM_RANGE(0x00f0, 0x00ff) AM_READWRITE8(pc9801rs_f0_r,      pc9801rs_f0_w,      0xffffffff)
26972706//  AM_RANGE(0x0188, 0x018f) AM_READWRITE8(pc9801_opn_r,       pc9801_opn_w,       0xffffffff) //ym2203 opn / <undefined>
26982707//  AM_RANGE(0x018c, 0x018f) YM2203 OPN extended ports / <undefined>
2708   AM_RANGE(0x0430, 0x0433) AM_READ8(ide_hack_r, 0x000000ff)
26992709   AM_RANGE(0x0438, 0x043b) AM_READWRITE8(pc9801rs_access_ctrl_r,pc9801rs_access_ctrl_w,0xffffffff)
27002710//  AM_RANGE(0x043d, 0x043d) ROM/RAM bank (NEC)
27012711   AM_RANGE(0x043c, 0x043f) AM_WRITE8(pc9801rs_bank_w,    0xffffffff) //ROM/RAM bank (EPSON)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team