Added code to help identify instances where multiplication constants should be checked against other sources for accuracy
This commit is contained in:
parent
1711393755
commit
46ed7c77e8
4 changed files with 386 additions and 3 deletions
|
|
@ -519,7 +519,16 @@ class DebuggerPDP10 extends Debugger {
|
|||
*/
|
||||
evalMUL(dst, src)
|
||||
{
|
||||
return PDP10.doMUL.call(this.cpu, dst, src, false, true);
|
||||
var result = PDP10.doMUL.call(this.cpu, dst, src, false, true);
|
||||
if (MAXDEBUG) {
|
||||
var resultJS = this.truncate(dst * src);
|
||||
if (resultJS !== result) {
|
||||
var sReference = this.macro10? (" @" + this.toStrBase(this.macro10.nLocation)) : "";
|
||||
var sResults = "PDP-10: " + this.toStrBase(result, 36) + " JavaScript: " + this.toStrBase(resultJS, 36);
|
||||
this.println("MUL(" + this.toStrBase(dst, 36) + "," + this.toStrBase(src, 36) + ") " + sResults + sReference);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue