Fully solved problem book
Eight-bit addition
Set 8 of 14 · 32 worked questions. Predict your result before expanding the solution.
These worked traces are meant to build fluency through controlled variation. If several answers feel identical, try the next difficult value and look for the point where a carry, sign, branch, or selected memory address changes the outcome.
Bitwise arithmetic · Problem 0225
Add 10001000₂ and 11111110₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001000, B=11111110.
- Ordinary decimal arithmetic gives 136+254=390.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 7 (weight 128): 1+1+incoming carry 1=3; write 1, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 10000110, which is 134 unsigned.
- Check modular arithmetic: 390 modulo 256 = 134.
- Signed readings of the inputs are -120 and -2; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10000110
Bitwise arithmetic · Problem 0226
Add 10001001₂ and 10000011₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001001, B=10000011.
- Ordinary decimal arithmetic gives 137+131=268.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 2 (weight 4): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 5 (weight 32): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00001100, which is 12 unsigned.
- Check modular arithmetic: 268 modulo 256 = 12.
- Signed readings of the inputs are -119 and -125; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00001100
Bitwise arithmetic · Problem 0227
Add 10001001₂ and 11001110₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001001, B=11001110.
- Ordinary decimal arithmetic gives 137+206=343.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 01010111, which is 87 unsigned.
- Check modular arithmetic: 343 modulo 256 = 87.
- Signed readings of the inputs are -119 and -50; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01010111
Bitwise arithmetic · Problem 0228
Add 10001010₂ and 01011100₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001010, B=01011100.
- Ordinary decimal arithmetic gives 138+92=230.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11100110, which is 230 unsigned.
- Check modular arithmetic: 230 modulo 256 = 230.
- Signed readings of the inputs are -118 and 92; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11100110
Bitwise arithmetic · Problem 0229
Add 10001011₂ and 00000010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001011, B=00000010.
- Ordinary decimal arithmetic gives 139+2=141.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 2 (weight 4): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 5 (weight 32): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10001101, which is 141 unsigned.
- Check modular arithmetic: 141 modulo 256 = 141.
- Signed readings of the inputs are -117 and 2; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10001101
Bitwise arithmetic · Problem 0230
Add 10001011₂ and 00101001₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001011, B=00101001.
- Ordinary decimal arithmetic gives 139+41=180.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 2 (weight 4): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10110100, which is 180 unsigned.
- Check modular arithmetic: 180 modulo 256 = 180.
- Signed readings of the inputs are -117 and 41; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10110100
Bitwise arithmetic · Problem 0231
Add 10001011₂ and 00110110₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001011, B=00110110.
- Ordinary decimal arithmetic gives 139+54=193.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 2 (weight 4): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11000001, which is 193 unsigned.
- Check modular arithmetic: 193 modulo 256 = 193.
- Signed readings of the inputs are -117 and 54; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11000001
Bitwise arithmetic · Problem 0232
Add 10001011₂ and 01010110₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001011, B=01010110.
- Ordinary decimal arithmetic gives 139+86=225.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 2 (weight 4): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11100001, which is 225 unsigned.
- Check modular arithmetic: 225 modulo 256 = 225.
- Signed readings of the inputs are -117 and 86; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11100001
Bitwise arithmetic · Problem 0233
Add 10001011₂ and 11010111₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001011, B=11010111.
- Ordinary decimal arithmetic gives 139+215=354.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 2 (weight 4): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 01100010, which is 98 unsigned.
- Check modular arithmetic: 354 modulo 256 = 98.
- Signed readings of the inputs are -117 and -41; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01100010
Bitwise arithmetic · Problem 0234
Add 10001100₂ and 01011010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001100, B=01011010.
- Ordinary decimal arithmetic gives 140+90=230.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11100110, which is 230 unsigned.
- Check modular arithmetic: 230 modulo 256 = 230.
- Signed readings of the inputs are -116 and 90; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11100110
Bitwise arithmetic · Problem 0235
Add 10001100₂ and 10101110₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001100, B=10101110.
- Ordinary decimal arithmetic gives 140+174=314.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 4 (weight 16): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00111010, which is 58 unsigned.
- Check modular arithmetic: 314 modulo 256 = 58.
- Signed readings of the inputs are -116 and -82; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00111010
Bitwise arithmetic · Problem 0236
Add 10001101₂ and 11110101₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001101, B=11110101.
- Ordinary decimal arithmetic gives 141+245=386.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 7 (weight 128): 1+1+incoming carry 1=3; write 1, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 10000010, which is 130 unsigned.
- Check modular arithmetic: 386 modulo 256 = 130.
- Signed readings of the inputs are -115 and -11; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10000010
Bitwise arithmetic · Problem 0237
Add 10001110₂ and 00101101₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001110, B=00101101.
- Ordinary decimal arithmetic gives 142+45=187.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 4 (weight 16): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10111011, which is 187 unsigned.
- Check modular arithmetic: 187 modulo 256 = 187.
- Signed readings of the inputs are -114 and 45; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10111011
Bitwise arithmetic · Problem 0238
Add 10001110₂ and 11100010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001110, B=11100010.
- Ordinary decimal arithmetic gives 142+226=368.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 2 (weight 4): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 01110000, which is 112 unsigned.
- Check modular arithmetic: 368 modulo 256 = 112.
- Signed readings of the inputs are -114 and -30; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01110000
Bitwise arithmetic · Problem 0239
Add 10001111₂ and 00111010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001111, B=00111010.
- Ordinary decimal arithmetic gives 143+58=201.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 2 (weight 4): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 4 (weight 16): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11001001, which is 201 unsigned.
- Check modular arithmetic: 201 modulo 256 = 201.
- Signed readings of the inputs are -113 and 58; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11001001
Bitwise arithmetic · Problem 0240
Add 10001111₂ and 01100011₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001111, B=01100011.
- Ordinary decimal arithmetic gives 143+99=242.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 2 (weight 4): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 4 (weight 16): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11110010, which is 242 unsigned.
- Check modular arithmetic: 242 modulo 256 = 242.
- Signed readings of the inputs are -113 and 99; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11110010
Bitwise arithmetic · Problem 0241
Add 10001111₂ and 10101001₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10001111, B=10101001.
- Ordinary decimal arithmetic gives 143+169=312.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 2 (weight 4): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 4 (weight 16): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00111000, which is 56 unsigned.
- Check modular arithmetic: 312 modulo 256 = 56.
- Signed readings of the inputs are -113 and -87; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00111000
Bitwise arithmetic · Problem 0242
Add 10010000₂ and 00010010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010000, B=00010010.
- Ordinary decimal arithmetic gives 144+18=162.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 3 (weight 8): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 4 (weight 16): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10100010, which is 162 unsigned.
- Check modular arithmetic: 162 modulo 256 = 162.
- Signed readings of the inputs are -112 and 18; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10100010
Bitwise arithmetic · Problem 0243
Add 10010000₂ and 10100000₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010000, B=10100000.
- Ordinary decimal arithmetic gives 144+160=304.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 2 (weight 4): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 3 (weight 8): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 4 (weight 16): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00110000, which is 48 unsigned.
- Check modular arithmetic: 304 modulo 256 = 48.
- Signed readings of the inputs are -112 and -96; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00110000
Bitwise arithmetic · Problem 0244
Add 10010001₂ and 00110111₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010001, B=00110111.
- Ordinary decimal arithmetic gives 145+55=200.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 2 (weight 4): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 3 (weight 8): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 4 (weight 16): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11001000, which is 200 unsigned.
- Check modular arithmetic: 200 modulo 256 = 200.
- Signed readings of the inputs are -111 and 55; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11001000
Bitwise arithmetic · Problem 0245
Add 10010001₂ and 11011100₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010001, B=11011100.
- Ordinary decimal arithmetic gives 145+220=365.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 2 (weight 4): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 01101101, which is 109 unsigned.
- Check modular arithmetic: 365 modulo 256 = 109.
- Signed readings of the inputs are -111 and -36; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01101101
Bitwise arithmetic · Problem 0246
Add 10010010₂ and 00010001₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010010, B=00010001.
- Ordinary decimal arithmetic gives 146+17=163.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 3 (weight 8): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 4 (weight 16): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10100011, which is 163 unsigned.
- Check modular arithmetic: 163 modulo 256 = 163.
- Signed readings of the inputs are -110 and 17; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10100011
Bitwise arithmetic · Problem 0247
Add 10010010₂ and 10100001₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010010, B=10100001.
- Ordinary decimal arithmetic gives 146+161=307.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 3 (weight 8): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 4 (weight 16): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00110011, which is 51 unsigned.
- Check modular arithmetic: 307 modulo 256 = 51.
- Signed readings of the inputs are -110 and -95; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00110011
Bitwise arithmetic · Problem 0248
Add 10010011₂ and 10011100₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010011, B=10011100.
- Ordinary decimal arithmetic gives 147+156=303.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00101111, which is 47 unsigned.
- Check modular arithmetic: 303 modulo 256 = 47.
- Signed readings of the inputs are -109 and -100; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00101111
Bitwise arithmetic · Problem 0249
Add 10010100₂ and 00101010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010100, B=00101010.
- Ordinary decimal arithmetic gives 148+42=190.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10111110, which is 190 unsigned.
- Check modular arithmetic: 190 modulo 256 = 190.
- Signed readings of the inputs are -108 and 42; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10111110
Bitwise arithmetic · Problem 0250
Add 10010110₂ and 11101001₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010110, B=11101001.
- Ordinary decimal arithmetic gives 150+233=383.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+1+incoming carry 0=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 01111111, which is 127 unsigned.
- Check modular arithmetic: 383 modulo 256 = 127.
- Signed readings of the inputs are -106 and -23; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01111111
Bitwise arithmetic · Problem 0251
Add 10010110₂ and 11110000₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010110, B=11110000.
- Ordinary decimal arithmetic gives 150+240=390.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 4 (weight 16): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 7 (weight 128): 1+1+incoming carry 1=3; write 1, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 10000110, which is 134 unsigned.
- Check modular arithmetic: 390 modulo 256 = 134.
- Signed readings of the inputs are -106 and -16; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10000110
Bitwise arithmetic · Problem 0252
Add 10010111₂ and 00011000₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10010111, B=00011000.
- Ordinary decimal arithmetic gives 151+24=175.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10101111, which is 175 unsigned.
- Check modular arithmetic: 175 modulo 256 = 175.
- Signed readings of the inputs are -105 and 24; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10101111
Bitwise arithmetic · Problem 0253
Add 10011000₂ and 01011110₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10011000, B=01011110.
- Ordinary decimal arithmetic gives 152+94=246.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11110110, which is 246 unsigned.
- Check modular arithmetic: 246 modulo 256 = 246.
- Signed readings of the inputs are -104 and 94; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11110110
Bitwise arithmetic · Problem 0254
Add 10011001₂ and 00011010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10011001, B=00011010.
- Ordinary decimal arithmetic gives 153+26=179.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 5 (weight 32): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 6 (weight 64): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 10110011, which is 179 unsigned.
- Check modular arithmetic: 179 modulo 256 = 179.
- Signed readings of the inputs are -103 and 26; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10110011
Bitwise arithmetic · Problem 0255
Add 10011001₂ and 00101001₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10011001, B=00101001.
- Ordinary decimal arithmetic gives 153+41=194.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 1 (weight 2): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 2 (weight 4): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 1+0+incoming carry 1=2; write 0, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11000010, which is 194 unsigned.
- Check modular arithmetic: 194 modulo 256 = 194.
- Signed readings of the inputs are -103 and 41; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11000010
Bitwise arithmetic · Problem 0256
Add 10011101₂ and 00111010₂; keep the low eight result bits.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- Use exactly eight bits: A=10011101, B=00111010.
- Ordinary decimal arithmetic gives 157+58=215.
- We process bits from the rightmost column (bit zero) to the leftmost (bit seven).
- Bit 0 (weight 1): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 1 (weight 2): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 2 (weight 4): 1+0+incoming carry 0=1; write 1, pass carry 0.
- Bit 3 (weight 8): 1+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 4 (weight 16): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 5 (weight 32): 0+1+incoming carry 1=2; write 0, pass carry 1.
- Bit 6 (weight 64): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 7 (weight 128): 1+0+incoming carry 0=1; write 1, pass carry 0.
- The final carry-out is 0; it is outside the eight-bit result.
- The stored sum is 11010111, which is 215 unsigned.
- Check modular arithmetic: 215 modulo 256 = 215.
- Signed readings of the inputs are -99 and 58; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11010111