Added the DAKAG PDP-10 diagnostics, implemented PUSHJ and POPJ instructions, and improved the debugging of XCT sequences
This commit is contained in:
parent
c380e2cad2
commit
c045e78395
9 changed files with 6252 additions and 252 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue