Improved code style as well as fixed the video memory size on the ht216-32 (pb410a).

This commit is contained in:
TC1995
2021-02-18 19:07:57 +01:00
parent ad70b5c6ee
commit fb167f6f98

View File

@@ -1016,12 +1016,11 @@ ht216_write(uint32_t addr, uint8_t val, void *p)
addr &= svga->banked_mask;
addr = (addr & 0x7fff) + ht216->write_banks[(addr >> 15) & 1];
if (!ht216->ht_regs[0xcd] && !ht216->ht_regs[0xfe] && !ht216->ht_regs[0xf3]) {
if (!ht216->ht_regs[0xcd] && !ht216->ht_regs[0xfe] && !ht216->ht_regs[0xf3])
svga_write_linear(addr, val, svga);
} else {
else
ht216_write_common(ht216, addr, val);
}
}
static void