X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fstargem2.cpp;fp=src%2Fstargem2.cpp;h=4f3e50952d0dcf646cdc5976d29d7d62295f0fd5;hb=05e3af22c4bd3c40744505a52bbdb24a13fab694;hp=d1b7431a5bd092e45230c190f6d8c6dbee176f4f;hpb=0cb2826bf02b98a5527d04cda97e35b18493cf6c;p=stargem2 diff --git a/src/stargem2.cpp b/src/stargem2.cpp index d1b7431..4f3e509 100755 --- a/src/stargem2.cpp +++ b/src/stargem2.cpp @@ -350,7 +350,7 @@ uint8 RdMem6809(uint16 addr) // More kludge... if ((addr == 0xC80C) && (gram[0xC80D] & 0x04)) // Read PORTA and DDR is set to Output { - ClearLine(V6809_ASSERT_LINE_IRQ); // Then clear the IRQ + ClearLineOfCurrentV6809(V6809_ASSERT_LINE_IRQ); // Then clear the IRQ //OK, this ALSO fucks up the execution of the demo... // Which means that the timing is still off. :-/ // mainCPU.cpuFlags &= ~V6809_ASSERT_LINE_IRQ; // Then clear the IRQ @@ -358,7 +358,7 @@ uint8 RdMem6809(uint16 addr) if ((addr == 0xC80E) && (gram[0xC80F] & 0x04)) // Read PORTB and DDR is set to Output { - ClearLine(V6809_ASSERT_LINE_IRQ); // Then clear the IRQ + ClearLineOfCurrentV6809(V6809_ASSERT_LINE_IRQ); // Then clear the IRQ //OK, this ALSO fucks up the execution of the demo... // mainCPU.cpuFlags &= ~V6809_ASSERT_LINE_IRQ; // Then clear the IRQ } @@ -471,6 +471,11 @@ static void FrameCallback(void) soundCPU.cpuFlags |= V6808_ASSERT_LINE_NMI; if (keys[SDLK_F6]) // Reset the 6808 (F6) soundCPU.cpuFlags |= V6808_ASSERT_LINE_RESET; +//Temp, for testing... +extern bool disasm; +//disasm = true; + if (keys[SDLK_F9]) + disasm = true; if (paletteDirty) {