•
Negative Numbers
–
Two’s complement of a
positive integer a relative to a fixed bit length n is the binary
representation of 2^n – a
–
To find an 8-bit
complement:
•
Write 8-bit binary
representation of the number
•
Flip all bits (one’s
complement)
•
Add 1 to the obtained
binary
–
Addition of negative
numbers
No comments:
Post a Comment