]> git.sesse.net Git - pistorm/blobdiff - emulator.c
Fix silly RTC and emulator.c mistakes
[pistorm] / emulator.c
index a019512e2ff731fe27a3dfe6c2e7ee2561207614..a8985412fcaa20f16d0956c0f55d7a2a22e6de0f 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) {