moejoe125 wrote
Ok, I think I've worked out the writeM part.
So based up on the internal pin read-outs, the ALU is getting the correct inputs from the DRegister and the ARegister. i.e 0 from D register and 12345 from the A register.
But for some reason, outM is outputting -12346.
Check the overall order of the ALU command bits. If you have them backwards, the ALU will be computing ~(x plus y).
--Mark