Week 3.1
Week 3.1
Represent no is binary
If no is positive then it’s the result
If no is negative
Then take 1s complement and add 1 to LSB
Range -2N-1 to 2N-1-1, does not have two representations of zero
Addition
Add the numbers and discard the carry if
Subtraction
Take 2’s complement of the number to be subtracted
Perform addition and discard the carry if
Assignment