Nand2Tetris Questions and Answers Forum
›
Hardware
›
Chapter 2
Search
everywhere
only in this topic
Advanced Search
negative values
Classic
List
Threaded
♦
♦
Locked
2 messages
yoniman
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
negative values
Hey,
I didn't find where to use the 2's complement that we learned in this chapter.
I saw that in the ALU documentation is written about x+y - "integer 2's complement addition".
What is the meaning of that? is the Add16 required?
thanks, Yoni.
cadet1620
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: negative values
Administrator
Yes, the ALU uses Add16. (Add16 works for unsigned and 2's complement numbers.)
You also need to know about 2's complement representation of numbers to implement the 'ng' status output.
--Mark
Free forum by Nabble
Edit this page