Two's Complement: Encode a Negative Decimal
Modern processors use two's complement to represent signed integers because it allows addition and subtraction to be performed by the same arithmetic logic unit. The target value is the decimal integer -108 represented in an 8-bit system. The conversion requires finding the positive binary representation, inverting all bits, and adding 1 to the least significant bit.
Determine the exact 8-bit sequence for -108. Trace the carry propagation during the final addition step to ensure the correct final bit pattern.
Constraints
- All binary answers must be exactly 8 bits long, including leading zeros.
- Use standard two's complement arithmetic rules.
Topics
Solve this problem
Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.
This problem is part of Codiode Pro. The statement above is free to read.
The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.