sum of videoROM modules 256 = 0 in VGA mode. Fixes a few koei games.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2212
This commit is contained in:
parent
d23d71add8
commit
719d57bea9
1 changed files with 9 additions and 0 deletions
|
@ -108,6 +108,15 @@ void INT10_SetupRomMemory(void) {
|
|||
phys_writeb(PhysMake(0xf000,0xfa6e)+i,int10_font_08[i]);
|
||||
}
|
||||
RealSetVec(0x1F,int10.rom.font_8_second);
|
||||
|
||||
if (machine == MCH_VGA) { //EGA/VGA. Just to be safe
|
||||
/* Sum of all bytes in rom module 256 should be 0 */
|
||||
Bit8u sum = 0;
|
||||
for (i = 0;i < 32 * 1024;i++) //32 KB romsize
|
||||
sum += phys_readb(rom_base + i); //OVERFLOW IS OKAY
|
||||
sum = 256 - sum;
|
||||
phys_writeb(rom_base+int10.rom.used++,sum);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue