mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
Fixed Brandish 2 crash
This commit is contained in:
parent
d058c98797
commit
d4d7df9833
@ -1209,12 +1209,9 @@ READ8_MEMBER(pc9801_state::pc9801_a0_r)
|
|||||||
return m_pcg_ram[pcg_offset];
|
return m_pcg_ram[pcg_offset];
|
||||||
}
|
}
|
||||||
|
|
||||||
//printf("%08x = %04x %04x %04x\n",pcg_offset,m_font_addr,m_font_line,m_font_lr);
|
/* TODO: Brandish 2 accesses a 0008a561 kanji address, obviously causing a crash. */
|
||||||
|
if(pcg_offset >= 0x80000)
|
||||||
// pcg_offset = BITSWAP16(m_font_addr,15,7,14,13,12,11,6,5,10,9,8,4,3,2,1,0) << 5; // TODO
|
return 0;
|
||||||
pcg_offset = m_font_addr << 5;
|
|
||||||
pcg_offset|= m_font_line;
|
|
||||||
pcg_offset|= m_font_lr;
|
|
||||||
|
|
||||||
return m_kanji_rom[pcg_offset]; // TODO, kanji ROM
|
return m_kanji_rom[pcg_offset]; // TODO, kanji ROM
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user