Google-Apps
Hauptmenü

Post a Comment On: Ken Shirriff's blog

"Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor"

6 Comments -

1 – 6 of 6
Blogger Dogzilla said...

Thanks, just what we expect, an incredible research and writing effort.

February 9, 2017 at 10:53 AM

Blogger JSL said...

You mention that subtraction is done with two's complement, but your description says the bits are simply inverted (one's complement). Is there an increment operation that you did not mention?

February 9, 2017 at 4:43 PM

Blogger Ken Shirriff said...

JSL: you caught me - I skipped over the details for subtraction. :-) The carry-in to the addition provides the increment needed for two's complement. Specifically, if there is no borrow (carry flag clear), the carry-in is set, providing the +1 needed for two's complement subtraction. If there's a borrow (carry flag set), the carry-in is 0, and the lack of +1 means the result is one lower (i.e. the borrow takes place).

February 9, 2017 at 5:08 PM

Anonymous CrazyCatMan said...

Thanks for another great article.
Here's a question: Given the horribly inefficient multiplexed bus and the fact that the ALU is only 8 bits deep, would the carry-lookahead circuitry provide any significant performance boost over a typical adder circuit?

April 8, 2017 at 5:32 PM

Blogger Unknown said...

I google some random keywords time to time. And more often than not exactly matching words pop up from your posts. Like when I was looking into reliability of eBay chargers and reverse engineering integrated circuits. Thank you for your time and sharing exciting articles with the world!

June 23, 2017 at 9:44 PM

Blogger Unknown said...

You mention that the 4004 supported subtraction, and that the 8008 used two's complement. Can you confirm that the 4004 also used two's complement? If not, do you know of any 4-bit CPU that implemented two's complement and could deal with signed integers from -8 through 7?

October 11, 2021 at 11:46 AM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot