Tandy and CGA: Implement the VSync interrupt, fixes Ghostbusters freezing.

This commit is contained in:
OBattler
2024-08-23 06:21:27 +02:00
parent f9e457f3e8
commit 7a965efd90
2 changed files with 4 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
#include <86box/86box.h>
#include <86box/timer.h>
#include <86box/io.h>
#include <86box/pic.h>
#include <86box/pit.h>
#include <86box/nmi.h>
#include <86box/mem.h>
@@ -1215,6 +1216,7 @@ vid_poll(void *priv)
vid->dispon = 0;
vid->displine = 0;
vid->vsynctime = 16;
picint(1 << 5);
if (vid->crtc[7]) {
if (vid->mode & 1)
x = (vid->crtc[1] << 3) + 16;

View File

@@ -28,6 +28,7 @@
#include "cpu.h"
#include <86box/io.h>
#include <86box/timer.h>
#include <86box/pic.h>
#include <86box/pit.h>
#include <86box/mem.h>
#include <86box/rom.h>
@@ -607,6 +608,7 @@ cga_poll(void *priv)
cga->cgadispon = 0;
cga->displine = 0;
cga->vsynctime = 16;
picint(1 << 5);
if (cga->crtc[7]) {
if (cga->cgamode & 1)
x = (cga->crtc[1] << 3) + 16;