Only return will interrupt continue; version now 0.72

Change-Id: I6fc1fb0b268facf1fe80dd9f45f1790a53dd33e9
This commit is contained in:
David Banks 2015-11-15 13:42:47 +00:00
parent a785d7e73f
commit d70c378245
2 changed files with 9 additions and 8 deletions

Binary file not shown.

View File

@ -10,7 +10,7 @@
* VERSION and NAME are used in the start-up message * VERSION and NAME are used in the start-up message
********************************************************/ ********************************************************/
#define VERSION "0.71" #define VERSION "0.72"
#if (CPU == Z80) #if (CPU == Z80)
#define NAME "ICE-T80" #define NAME "ICE-T80"
@ -1208,17 +1208,18 @@ void doCmdContinue(char *params) {
cont = logDetails(); cont = logDetails();
hwCmd(CMD_WATCH_READ, 0); hwCmd(CMD_WATCH_READ, 0);
} }
if (status & INTERRUPTED_MASK || Serial_ByteRecieved0()) { if (status & INTERRUPTED_MASK) {
log0("Interrupted\n");
cont = 0; cont = 0;
} }
if (Serial_ByteRecieved0()) {
// Interrupt on a return, ignore other characters
if (Serial_RxByte0() == 13) {
cont = 0;
}
}
Delay_us(10); Delay_us(10);
} while (cont); } while (cont);
log0("Interrupted\n");
// Junk the interrupt character
if (Serial_ByteRecieved0()) {
Serial_RxByte0();
}
// Enable single stepping // Enable single stepping
setSingle(1); setSingle(1);