1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

krnl386: Emulate the VGA status register.

Sega Bug uses it as a timer.
This commit is contained in:
Alex Henrie 2024-01-28 00:16:14 -07:00 committed by Alexandre Julliard
parent fe1f3e277d
commit b87bd5e9b0

View file

@ -316,6 +316,9 @@ DWORD DOSVM_inport( int port, int size )
case 0x201:
res = ~0U; /* no joystick */
break;
case 0x3da:
res = GetTickCount() % 17 == 0 ? 0x4 : 0; /* report vblank about 60 times per second */
break;
default:
WARN("Direct I/O read attempted from port %x\n", port);
break;