I *think* all the PDP-10 DAKAL multiplication tests pass now. Division tests, alas, are a different story.

This commit is contained in:
Jeff 2017-04-01 23:06:41 -07:00 • committed by Jeff Parsons
commit 493ae6c310
5 changed files with 121 additions and 95 deletions

View file

@ -510,7 +510,7 @@ class CPUStatePDP10 extends CPUPDP10 {
*/
getXC()
{
return this.regXC >= 0? this.regXC : this.regPC;
return this.regXC >= 0? this.regXC : ((this.regRA & PDP10.OPCODE.I_FIELD)? this.lastPC : this.regPC);
}
/**
@ -546,8 +546,9 @@ class CPUStatePDP10 extends CPUPDP10 {
*/
setPC(addr)
{
this.regPC = addr % PDP10.ADDR_LIMIT;
this.regRA = 0;
this.regXC = -1;
this.regPC = addr % PDP10.ADDR_LIMIT;
}
/**