Video and emulator GUI changes of the day (October 28th, 2024)

IBM 8514/A (MCA/ISA).
Added a configure button to the QT frontend for the amount of memory used by said add-on chips.

XGA:
Forgot a change about the 4mb aperture.
This commit is contained in:
TC1995
2024-10-28 22:14:58 +01:00
parent b170886599
commit 4f472445f2
6 changed files with 59 additions and 6 deletions

View File

@@ -35,6 +35,7 @@
#include <86box/thread.h>
#include <86box/video.h>
#include <86box/vid_8514a.h>
#include <86box/vid_8514a_device.h>
#include <86box/vid_xga.h>
#include <86box/vid_svga.h>
#include <86box/vid_svga_render.h>

View File

@@ -3487,15 +3487,13 @@ xga_init(const device_t *info)
xga->rom_addr = 0xc0000 + (((xga->pos_regs[2] & 0xf0) >> 4) * 0x2000);
xga->instance = (xga->pos_regs[2] & 0x0e) >> 1;
xga->pos_regs[2] |= 0x01;
if (mem_size >= 15360) {
xga->pos_regs[4] |= 0x01;
xga->pos_regs[4] |= 0x01;
if (mem_size >= 15360)
xga->pos_regs[5] = 0;
} else {
else {
xga->pos_regs[5] = ((mem_size * 64) >> 0x10) + 1;
if (xga->pos_regs[5] == 0x10) {
if (xga->pos_regs[5] == 0x10)
xga->pos_regs[5] = 0x00;
xga->pos_regs[4] |= 0x01;
}
}
xga->base_addr_1mb = (xga->pos_regs[5] & 0x0f) << 20;
xga->linear_base = ((xga->pos_regs[4] & 0xfe) * 0x1000000) + (xga->instance << 22);