Abstract
Given that quantities may be represented as bit patterns within the computer, how may these patterns be manipulated to achieve useful results? We look first at the "basic" operations of addition and subtraction in the various binary number representations, extending to addition of multiple-precision values and decimal addition. Then we examine the logical operations, where the bits are "bits", with no numerical significance. Operations here include AND, OR, NOT, XOR, shifting of various types, bit-field operations and, finally, parity.
Keywords: Binary addition of signed values, subtraction by complement addition, multiple precision addition, decimal addition, logical operations, shift operations, bit-field operations, parity.
About this chapter
Cite this chapter as:
Peter Fenwick ;Basic Arithmetic and Logic, Introduction to Computer Data Representation (2014) 1: 45. https://doi.org/10.2174/9781608058822114010007
DOI https://doi.org/10.2174/9781608058822114010007 |
Publisher Name Bentham Science Publisher |