shithub: sms

Download patch

ref: e04e599b91b9d242a5346794015c1f37541b838f
parent: c78365a41e097b366719e21e743ac7cdc3b8261b
author: Jean-André Santoni <jean.andre.santoni@gmail.com>
date: Fri Jul 4 19:52:49 EDT 2025

Keep only the status flags of the sms

--- a/dat.h
+++ b/dat.h
@@ -35,8 +35,6 @@
 	IE0     = 0x20,
 	IE1     = 0x10,
 
-	STATVBL = 0x08,
-	STATFR  = 0x10,
 	STATCOLL= 0x20,
 	STATOVR = 0x40,
 	STATINT = 0x80,
--- a/vdp.c
+++ b/vdp.c
@@ -244,8 +244,7 @@
 		if(++vdpy >= ymax){
 			vdpy = 0;
 			irq &= ~INTVBL;
-			vdpstat ^= STATFR;
-			vdpstat &= ~(STATINT | STATVBL | STATOVR | STATCOLL);
+			vdpstat &= ~(STATINT | STATOVR | STATCOLL);
 			flush();
 		}
 		if(intla)
@@ -259,7 +258,7 @@
 				hctr = reg[HORCTR];
 			}
 		if(vdpy == yvbl){
-			vdpstat |= STATVBL | STATINT;
+			vdpstat |= STATINT;
 			frame ^= 1;
 			z80irq = 1;
 			if((reg[MODE2] & IE0) != 0)
--