Added rudimentary PDP-10 assembler capability to the built-in debugger

This commit is contained in:
Jeff Parsons 2017-02-27 18:06:08 -08:00 • committed by Jeff Parsons
commit 8863f1127c
14 changed files with 501 additions and 262 deletions

View file

@ -337,10 +337,14 @@ class CPUStatePDP10 extends CPUPDP10 {
*/
getOpcode()
{
/*
* Technically, we don't REALLY need to mask regRA with R_MASK, because all regRA accesses
* ignore any higher opcode bits, but let's keep things tidy.
*/
if ((this.regRA & PDP10.OPCODE.I_BIT)) {
this.regRA = this.readWord(this.regEA);
this.regRA = this.readWord(this.regEA) & PDP10.OPCODE.R_MASK;
} else {
this.regRA = this.regOP = this.readWord(this.lastPC = this.regPC);
this.regRA = (this.regOP = this.readWord(this.lastPC = this.regPC)) & PDP10.OPCODE.R_MASK;
}
/*