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:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user