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:
parent
19761fa199
commit
1711393755
5 changed files with 99 additions and 62 deletions
|
|
@ -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)
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue