X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Main.cpp;h=b6f49c3b2f532098e5a975b046a247d3b955c60b;hb=355815ebb5b1c60916f66d043a43f3af7839589f;hp=13efac2344971f9857e26c834bfb224c5ff3d5b9;hpb=fd7e3e40f6a25dd5b5a2ad60a82b9b0af72139a2;p=cyclone68000.git diff --git a/Main.cpp b/Main.cpp index 13efac2..b6f49c3 100644 --- a/Main.cpp +++ b/Main.cpp @@ -169,13 +169,14 @@ static void AddressErrorWrapper(char rw, const char *dataprg, int iw) } #endif -void FlushPC(void) +void FlushPC(int force) { #if MEMHANDLERS_NEED_PC - if (pc_dirty) - ot(" str r4,[r7,#0x40] ;@ Save PC\n"); -#endif + force |= pc_dirty; pc_dirty = 0; +#endif + if (force) + ot(" str r4,[r7,#0x40] ;@ Save PC\n"); } static void PrintFramework()