]> git.sesse.net Git - pistorm/blobdiff - emulator.c
Fix a bunch of stuff, add working RICOH RTC emulation.
[pistorm] / emulator.c
index a019512e2ff731fe27a3dfe6c2e7ee2561207614..d2d3eabfd5e6f65568c021ac572c6accc0250718 100644 (file)
@@ -566,8 +566,10 @@ void m68k_write_memory_8(unsigned int address, unsigned int value) {
   PLATFORM_CHECK_WRITE(OP_TYPE_BYTE);
 
   if (address == 0xbfe001) {
-    ovl = (value & (1 << 0));
-    printf("OVL:%x\n", ovl);
+    if (ovl != (value & (1 << 0)) {
+      ovl = (value & (1 << 0));
+      printf("OVL:%x\n", ovl);
+    }
   }
 
 //  if (address < 0xffffff) {