2, calculate binary addition, subtraction, multiplication, (binary division will be indivisible, doesn't require us to do division) logic and arithmetic (1 & amp; 1=1, 1 & amp; 0=0, 0 & amp; 1=0, 0 & amp; Logic or of 0=0), (0 | 0=0, 0 | 1=1, 1, 1 | | 0=1 1=1) logical not operation (1 (-)=0, 0) (-)=1
3, don't be converted to a decimal calculation, if use converted to decimal calculation, digits, and six times in 48 bit binary number, that is, to do, because going to study for the electric principle similar to the adder, so we mainly examine lies in the algorithm,
This how do
CodePudding user response:
Similar to assemble this thing:Addition: each addition, consider carry,
Subtraction: to add do,
Method: to the above method and shift operation,
Division: to the above method, even if can't, also can get the quotient and remainder,