]> Shamusworld >> Repos - apple2/blobdiff - src/v65c02.cpp
Misc. cleanups, incl. cleanup up Makefile.
[apple2] / src / v65c02.cpp
index e33c6541c0e493d76eb7e737eb215497316f3fc8..015fe6ea281dbdc53e47ba0f6a7e4cc163300b0a 100644 (file)
@@ -3051,11 +3051,13 @@ if (regs.pc == 0xFBD8)
                {
                        // Not sure about this...
                        regs.sp = 0xFF;
-                       regs.cc = FLAG_B | FLAG_I;                                      // Reset the CC register
-                       regs.pc = RdMemW(0xFFFC);                                       // And load PC with the RESET vector
+                       regs.cc = FLAG_B | FLAG_I;              // Reset the CC register
+                       regs.pc = RdMemW(0xFFFC);               // And load PC with the RESET vector
 
-                       context->cpuFlags &= ~V65C02_ASSERT_LINE_RESET;
-                       regs.cpuFlags &= ~V65C02_ASSERT_LINE_RESET;
+//                     context->cpuFlags &= ~V65C02_ASSERT_LINE_RESET;
+//                     regs.cpuFlags &= ~V65C02_ASSERT_LINE_RESET;
+                       context->cpuFlags = 0;                  // Clear CPU flags...
+                       regs.cpuFlags = 0;
 #ifdef __DEBUG__
 WriteLog("\n*** RESET *** (PC = $%04X)\n\n", regs.pc);
 #endif