Some minor Debugger tweaks and other improvements

If a Markdown document contains an embedded machine that specifies a version number (eg, "1.15.6"), then the web server will switch to serving a compiled version, since that's the only way it can guarantee the requested version
This commit is contained in:
Jeff Parsons 2014-10-31 17:44:34 -07:00 • committed by jeffpar
commit 905a30017e
9 changed files with 911 additions and 889 deletions

View file

@ -202,7 +202,7 @@ if (DEBUGGER) {
'?': "help",
'a [#]': "assemble",
'b [#]': "breakpoint",
'c': "clear window",
'c': "clear output",
'd [#]': "dump memory",
'e [#]': "edit memory",
'f': "frequencies",
@ -216,7 +216,9 @@ if (DEBUGGER) {
'r': "dump/edit registers",
't [#]': "step instruction(s)",
'u [#]': "unassemble",
'x': "execution options"
'x': "execution options",
'reset': "reset computer",
'ver': "display version"
};
/*
@ -4188,7 +4190,7 @@ if (DEBUGGER) {
fUnknown = false;
switch(sReg){
case "MS":
X86Help.opHelpLMSW(w);
X86Help.opHelpLMSW.call(this.cpu, w);
break;
case "TR":
this.cpu.segTSS.load(w);
@ -4530,6 +4532,9 @@ if (DEBUGGER) {
case "reset":
if (this.cmp) this.cmp.reset();
return true;
case "ver":
this.println((APPNAME || "PCjs") + " version " + APPVERSION + " (" + (COMPILED? "release" : (DEBUG? "debug" : "nodebug")) + (PREFETCH? ",prefetch" : "") + (TYPEDARRAYS? ",typedarrays" : (FATARRAYS? ",fatarrays" : "")) + ")");
return true;
default:
ch0 = sCmd.charAt(0);
for (i = 1; i < sCmd.length; i++) {