All PDP-10 MOVN (Move Negative) opcodes implemented

This commit is contained in:
Jeff 2017-03-02 10:19:37 -08:00 • committed by Jeff Parsons
commit 84f8cece67
4 changed files with 692 additions and 364 deletions

View file

@ -443,12 +443,12 @@ class CPUStatePDP10 extends CPUPDP10 {
*
* @this {CPUStatePDP10}
* @param {number} src (36-bit)
* @return {number} (negated 36-bit src)
* @return {number} (negated, but as an unsigned 36-bit result)
*/
negate(src)
{
if (!src) {
this.fCarry = this.fCarry1 = true;
this.fCarry0 = this.fCarry1 = true;
}
else {
/*