Uncompressed sectors from an IMD image now get their actual image buffer passed rather than the temporary buffer, fixes writing to IMD images;

SVGA memory address is now latched with the mask divided by 2 in text mode, fixes OS/2 1.1 crashing the emulator.
This commit is contained in:
OBattler
2016-10-05 15:41:51 +02:00
parent d8c9b7ab76
commit ecd4c8934d
3 changed files with 24 additions and 4 deletions

View File

@@ -587,13 +587,18 @@ void svga_recalctimings(svga_t *svga)
extern int cyc_total;
uint32_t svga_mask_addr(uint32_t addr, svga_t *svga)
{
uint32_t limit_shift = 0;
if (!(svga->gdcreg[6] & 1))
{
limit_shift = 1;
}
if (svga->vrammask == (svga->vram_limit - 1))
{
return addr % svga->vram_limit;
return addr % (svga->vram_limit >> limit_shift);
}
else
{
return addr & svga->vrammask;
return addr & (svga->vrammask >> limit_shift);
}
}