Settings

Theme

Show HN: I wrote a blog post about the Two's Complement

hadjian.com

12 points by hadjian 3 years ago · 2 comments · 1 min read

Reader

Hi folks,

I wrote a blog post about the two's complement. I always scratched my head about some details:

- "Take the ones' complement and add one" - "Half of the range are negative numbers" - etc.

Now I think I understand these details, but had to piece it together from some sources. I'd love to get your feedback on this post. Looking forward.

BR,

Pedram

z3ugma 3 years ago

More two’s complement fun from Ben Eater: https://youtu.be/4qH4unVtJkE

  • hadjianOP 3 years ago

    This was also my first visit in trying to fill my gaps. He has a very nice practical approach, but the difference between the ones’ complement and the two’s complement was missing.

    Also the encoding was just given, so the “subtraction by addition” part was missing.

    I wonder if I will find the time to build his CPU. One of the best resources on YouTube, really.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection