Updated Closure Compiler to v20160911, so now we have a version that supports ECMAScript 6, but I'm not going to go bonkers on ES6 features just yet; the first feature I'm going to use is support for octal and binary constants (of the form 0onnnn and 0bnnnn)

This commit is contained in:
Jeff 2016-09-24 16:03:57 -07:00 committed by Jeff Parsons
commit b28166f493
16 changed files with 3222 additions and 3222 deletions

View file

@ -1247,8 +1247,8 @@ if (DEBUGGER) {
{
var sLine = str.toHex(addr, 4);
var bOpCode = this.getByte(addr++);
var aOpDesc = this.aaOperations[bOpCode];
var b = (bOpCode === undefined? 0 : bOpCode);
var aOpDesc = this.aaOperations[b];
var abOperand = [];
var cb = (aOpDesc[1] === undefined? 0 : aOpDesc[1]);
do {

View file

@ -204,7 +204,7 @@ function C1PKeyboard(parmsKbd)
this.msReleaseRepeat = 100; // number of milliseconds before a held key is "forced" up (assuming auto-repeat)
this.msInjectDelay = 300; // number of milliseconds between injected keystrokes
this.aButtonCodeMap = [];
this.aButtonCodeMap = {};
this.aButtonCodeMap['break'] = this.CHARCODE_BREAK;
this.aButtonCodeMap['esc'] = this.CHARCODE_ESC;
this.aButtonCodeMap['ctrl-c'] = this.CHARCODE_CTRLC;

View file

@ -147,7 +147,7 @@ function Debugger8080(parmsDbg)
/*
* Initialize Debugger8080 message support
*/
this.afnDumpers = [];
this.afnDumpers = {};
this.messageInit(parmsDbg['messages']);
this.sInitCommands = parmsDbg['commands'];
@ -4343,7 +4343,7 @@ if (DEBUGGER) {
{
var a = this.parseCommand(sCmds, fSave);
for (var s in a) {
if (!this.doCommand(a[s])) return false;
if (!this.doCommand(a[+s])) return false;
}
return true;
};

View file

@ -146,7 +146,7 @@ function DebuggerPDP11(parmsDbg)
/*
* Initialize DebuggerPDP11 message support
*/
this.afnDumpers = [];
this.afnDumpers = {};
this.messageInit(parmsDbg['messages']);
this.sInitCommands = parmsDbg['commands'];
@ -3682,7 +3682,7 @@ if (DEBUGGER) {
{
var a = this.parseCommand(sCmds, fSave);
for (var s in a) {
if (!this.doCommand(a[s])) return false;
if (!this.doCommand(a[+s])) return false;
}
return true;
};

View file

@ -233,6 +233,12 @@ var PDP11 = {
NORMAL: 0x0, // write byte or word normally
ZERO: 0x1, // zero byte or word
SIGNEXT: 0x2 // sign-extend a byte to a word
},
/*
* Assorted special (UNIBUS) addresses
*/
UNIBUS: {
PSW: 0o177776
}
};