Fixed 36-bit multiplication in the expression parser so that, within the PDP-10 environment, it produces the same 36-bit results that a PDP-10 would produce (important for MACRO-10 compatibility)

This commit is contained in:
Jeff 2017-04-01 00:43:44 -07:00 committed by Jeff Parsons
commit 1711393755
5 changed files with 99 additions and 62 deletions

View file

@ -507,6 +507,21 @@ class DebuggerPDP10 extends Debugger {
}
}
/**
* evalMUL(dst, src)
*
* Overrides the standard multiplication function with one that honors PDP-10 semantics and precision.
*
* @this {DebuggerPDP10}
* @param {number} dst
* @param {number} src
* @return {number} (dst * src)
*/
evalMUL(dst, src)
{
return PDP10.doMUL.call(this.cpu, dst, src, false, true);
}
/**
* parseAddr(sAddr, dbgAddr)
*