]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Add DEBUGGER
authorToni Wilen <twilen@winuae.net>
Sat, 11 Mar 2023 17:53:17 +0000 (19:53 +0200)
committerToni Wilen <twilen@winuae.net>
Sat, 11 Mar 2023 17:53:17 +0000 (19:53 +0200)
custom.cpp

index 47dc02554819d55e799bcc190b5010a5da8cabb5..fd48da2e969b72a706974f3b4340c2a7462daee2 100644 (file)
@@ -1021,6 +1021,7 @@ static void addccmp(int pos, int reg, int v, int chpos)
        }
 }
 
+#ifdef DEBUGGER
 static void syncdebugmarkers(int chpos)
 {
        bool pal = (beamcon0 & BEAMCON0_PAL) != 0;
@@ -1238,6 +1239,7 @@ static void syncdebugmarkers(int chpos)
                addccmp(hbstop_v2, RECORDED_REGISTER_CHANGE_OFFSET + 0x204, 0, chpos);
        }
 }
+#endif
 
 static void record_color_change2(int hpos, int regno, uae_u32 value)
 {
@@ -1364,10 +1366,12 @@ static void record_color_change2(int hpos, int regno, uae_u32 value)
                }
        }
 
+#ifdef DEBUGGER
        // inject hsync and end in color changes (ultra mode debug)
        if (hsyncdebug) {
                syncdebugmarkers(pos);
        }
+#endif
 
        if (regno != 0xffff) {
                addcc(pos, regno, value);
@@ -1377,6 +1381,7 @@ static void record_color_change2(int hpos, int regno, uae_u32 value)
                last_recorded_diw_hpos = pos;
        }
 
+#ifdef DEBUGGER
        int cchanges = next_color_change - start_color_change;
        if (cchanges > 1 && hsyncdebug) {
                if (cchanges == 2) {
@@ -1402,6 +1407,7 @@ static void record_color_change2(int hpos, int regno, uae_u32 value)
                        }
                }
        }
+#endif
 }
 
 static void sync_color_changes(int hpos)