
Fundamentals
(a) 1 Add base number (8, 16 etc.)
2 Convert result to binary
Example:
Single byte -97
Base of single byte is 256,
so that 256-97 =159
In binary, this is 10011111
(b)
1 Convert
2 Complement (interchange Is and 0s)
3 Add 1 to least significant digit
Example:
Single byte is -97
In binary, this is 01100001, and
the complement is 10011110
Addl to this to get 10011111
Figure 1.7 Methods for forming a negative number in binary. Method (a) is
easier if you are working in denary, but method (b) is used within the computer
Binary arithmetic
Binary arithmetic is simpler than denary arithmetic., but considerably more
tedious because of th ...