Alu arithmetic not adding up

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

Alu arithmetic not adding up

ikanhear
i do not understand how the alu line x-y works.

example, x=5, y=3

5=0101
3=0011

negate x = 1010
1010 = -6

-6+3=-3
-3 flipped=3

5-3 dosent=3

surely a arithmatic negation should be used instead of an boolean one to make this work?

someone please point out what iam missing :(

thankyou in advance.

Reply | Threaded
Open this post in threaded view
|

Re: Alu arithmetic not adding up

ikanhear
i have figured it out, i flipped the -3 to be 3 when it should in fact be 2, sorry for posting such a stupid question XD