CPU – Time 9 set inM 11111; D=D-M

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

CPU – Time 9 set inM 11111; D=D-M

gs99
My pin values for ALU are correct:
inALUx[15]: 11110    // D
inALUy[15]: 11111   // M

But outALU[15] is:  32767
The cmp file calls for -1 in DRegister.

Without seeing all the hdl, is there an easy answer to:
Since 32767 = 11111111111 which is -1, why does it show as 32767, not -1?

I tried the same instruction with separate built-in ALU chip, it gives -1.
Reply | Threaded
Open this post in threaded view
|

Re: CPU – Time 9 set inM 11111; D=D-M

cadet1620
Administrator
[Responded via email.]

--Mark