Added the DAKAG PDP-10 diagnostics, implemented PUSHJ and POPJ instructions, and improved the debugging of XCT sequences

This commit is contained in:
Jeff 2017-03-29 13:26:23 -07:00 • committed by Jeff Parsons
commit c045e78395
9 changed files with 6252 additions and 252 deletions

View file

@ -500,6 +500,19 @@ class CPUStatePDP10 extends CPUPDP10 {
return this.regPC;
}
/**
* getXC()
*
* NOTE: This function is nothing more than a convenience, and we fully expect it to be inlined at runtime.
*
* @this {CPUStatePDP10}
* @return {number}
*/
getXC()
{
return this.regXC >= 0? this.regXC : this.regPC;
}
/**
* getLastAddr()
*
@ -534,6 +547,7 @@ class CPUStatePDP10 extends CPUPDP10 {
setPC(addr)
{
this.regPC = addr % PDP10.ADDR_LIMIT;
this.regXC = -1;
}
/**