Previous 199869 Revisions Next

r19461 Tuesday 11th December, 2012 at 01:29:08 UTC by Angelo Salese
Even more fixes, targeted at Block Quest V
[src/mess/drivers]pc9801.c

trunk/src/mess/drivers/pc9801.c
r19460r19461
4242   - Quarth: fails loading in PC-9801RS only ("packed file is corrupt"). Maybe a 386 core bug?
4343
4444   List of per-game TODO:
45   - 31 - Iwayuru Hitotsu no Chou Lovely na Bouken Katsugeki: missing text? (it appears if you press a button)
4645   - 4D Boxing: inputs are unresponsive
4746   - Absolutely Mahjong: Kanji data doesn't appear at the Epson logo. Transitions are too fast.
4847   - Brandish 2: Intro needs some window masking effects;
r19460r19461
11721171   }
11731172}
11741173
1174
11751175READ8_MEMBER(pc9801_state::pc9801_a0_r)
11761176{
11771177
r19460r19461
12171217            if(pcg_offset >= 0x80000)
12181218               return 0;
12191219
1220            return m_kanji_rom[pcg_offset]; // TODO, kanji ROM
1220            return m_kanji_rom[pcg_offset];
12211221         }
12221222      }
12231223
r19460r19461
16091609/* TODO: having this non-linear makes the system to boot in BASIC for PC-9821. Perhaps it stores settings? How to change these? */
16101610READ8_MEMBER(pc9801_state::pc9801rs_knjram_r)
16111611{
1612   UINT32 pcg_offset;
1613
1614   pcg_offset = m_font_addr << 5;
1615   pcg_offset|= offset & 0x1e;
1616   pcg_offset|= m_font_lr;
1617
16121618   if((m_font_addr & 0xff00) == 0x5600 || (m_font_addr & 0xff00) == 0x5700)
1613      return m_pcg_ram[((m_font_addr & 0x7f7f) << 5) | m_font_lr | ((offset >> 1) & 0x0f)];
1619      return m_pcg_ram[pcg_offset];
16141620
1615   printf("RS knjram %08x\n",offset);
1616
1617   return machine().rand();
1621   return m_kanji_rom[pcg_offset];
16181622}
16191623
16201624WRITE8_MEMBER(pc9801_state::pc9801rs_knjram_w)
16211625{
1626   UINT32 pcg_offset;
1627
1628   pcg_offset = m_font_addr << 5;
1629   pcg_offset|= offset & 0x1e;
1630   pcg_offset|= m_font_lr;
1631
16221632   if((m_font_addr & 0xff00) == 0x5600 || (m_font_addr & 0xff00) == 0x5700)
1623      m_pcg_ram[((m_font_addr & 0x7f7f) << 5) | m_font_lr | ((offset >> 1) & 0x0f)] = data;
1633      m_pcg_ram[pcg_offset] = data;
16241634}
16251635
16261636/* FF-based */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team