rework sr
[picodrive.git] / pico / state.c
index 8a2f2aa..69e8be0 100644 (file)
@@ -564,6 +564,8 @@ readend:
 \r
   Pico.m.dirtyPal = 1;\r
   Pico.video.status &= ~(SR_VB | SR_F);\r
+  Pico.video.status |= ((Pico.video.reg[1] >> 3) ^ SR_VB) & SR_VB;\r
+  Pico.video.status |= (Pico.video.pending_ints << 2) & SR_F;\r
 \r
   retval = 0;\r
 \r