Fully solved problem book
Eight-bit addition
Set 9 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 0257
Add 10011110₂ and 00111100₂; 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=10011110, B=00111100.
- Ordinary decimal arithmetic gives 158+60=218.
- 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+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): 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 11011010, which is 218 unsigned.
- Check modular arithmetic: 218 modulo 256 = 218.
- Signed readings of the inputs are -98 and 60; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11011010
Bitwise arithmetic · Problem 0258
Add 10011111₂ and 10001001₂; 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=10011111, B=10001001.
- Ordinary decimal arithmetic gives 159+137=296.
- 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): 1+0+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+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 00101000, which is 40 unsigned.
- Check modular arithmetic: 296 modulo 256 = 40.
- Signed readings of the inputs are -97 and -119; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00101000
Bitwise arithmetic · Problem 0259
Add 10011111₂ and 10010110₂; 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=10011111, B=10010110.
- Ordinary decimal arithmetic gives 159+150=309.
- 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+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 3 (weight 8): 1+0+incoming carry 1=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+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 00110101, which is 53 unsigned.
- Check modular arithmetic: 309 modulo 256 = 53.
- Signed readings of the inputs are -97 and -106; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00110101
Bitwise arithmetic · Problem 0260
Add 10011111₂ and 10110000₂; 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=10011111, B=10110000.
- Ordinary decimal arithmetic gives 159+176=335.
- 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): 1+0+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+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+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 01001111, which is 79 unsigned.
- Check modular arithmetic: 335 modulo 256 = 79.
- Signed readings of the inputs are -97 and -80; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01001111
Bitwise arithmetic · Problem 0261
Add 10011111₂ 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=10011111, B=11101001.
- Ordinary decimal arithmetic gives 159+233=392.
- 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): 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+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 10001000, which is 136 unsigned.
- Check modular arithmetic: 392 modulo 256 = 136.
- Signed readings of the inputs are -97 and -23; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10001000
Bitwise arithmetic · Problem 0262
Add 10100000₂ and 00010000₂; 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=10100000, B=00010000.
- Ordinary decimal arithmetic gives 160+16=176.
- 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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+0+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 10110000, which is 176 unsigned.
- Check modular arithmetic: 176 modulo 256 = 176.
- Signed readings of the inputs are -96 and 16; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10110000
Bitwise arithmetic · Problem 0263
Add 10100000₂ 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=10100000, B=01011110.
- Ordinary decimal arithmetic gives 160+94=254.
- 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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+0+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 11111110, which is 254 unsigned.
- Check modular arithmetic: 254 modulo 256 = 254.
- Signed readings of the inputs are -96 and 94; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11111110
Bitwise arithmetic · Problem 0264
Add 10100001₂ and 00111011₂; 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=10100001, B=00111011.
- Ordinary decimal arithmetic gives 161+59=220.
- 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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+1+incoming carry 0=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 11011100, which is 220 unsigned.
- Check modular arithmetic: 220 modulo 256 = 220.
- Signed readings of the inputs are -95 and 59; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11011100
Bitwise arithmetic · Problem 0265
Add 10100001₂ and 11011010₂; 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=10100001, B=11011010.
- Ordinary decimal arithmetic gives 161+218=379.
- 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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+0+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 01111011, which is 123 unsigned.
- Check modular arithmetic: 379 modulo 256 = 123.
- Signed readings of the inputs are -95 and -38; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01111011
Bitwise arithmetic · Problem 0266
Add 10100001₂ and 11111001₂; 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=10100001, B=11111001.
- Ordinary decimal arithmetic gives 161+249=410.
- 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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 4 (weight 16): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+1+incoming carry 0=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 10011010, which is 154 unsigned.
- Check modular arithmetic: 410 modulo 256 = 154.
- Signed readings of the inputs are -95 and -7; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10011010
Bitwise arithmetic · Problem 0267
Add 10100011₂ and 00111011₂; 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=10100011, B=00111011.
- Ordinary decimal arithmetic gives 163+59=222.
- 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+0+incoming carry 1=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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+1+incoming carry 0=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 11011110, which is 222 unsigned.
- Check modular arithmetic: 222 modulo 256 = 222.
- Signed readings of the inputs are -93 and 59; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11011110
Bitwise arithmetic · Problem 0268
Add 10100011₂ and 11010000₂; 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=10100011, B=11010000.
- Ordinary decimal arithmetic gives 163+208=371.
- 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+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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+0+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 01110011, which is 115 unsigned.
- Check modular arithmetic: 371 modulo 256 = 115.
- Signed readings of the inputs are -93 and -48; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01110011
Bitwise arithmetic · Problem 0269
Add 10100100₂ and 11010001₂; 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=10100100, B=11010001.
- Ordinary decimal arithmetic gives 164+209=373.
- 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): 0+0+incoming carry 0=0; write 0, 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): 0+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+0+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 01110101, which is 117 unsigned.
- Check modular arithmetic: 373 modulo 256 = 117.
- Signed readings of the inputs are -92 and -47; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01110101
Bitwise arithmetic · Problem 0270
Add 10100101₂ and 01100100₂; 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=10100101, B=01100100.
- Ordinary decimal arithmetic gives 165+100=265.
- 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): 1+1+incoming carry 0=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): 0+0+incoming carry 0=0; write 0, pass carry 0.
- Bit 5 (weight 32): 1+1+incoming carry 0=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+0+incoming carry 1=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00001001, which is 9 unsigned.
- Check modular arithmetic: 265 modulo 256 = 9.
- Signed readings of the inputs are -91 and 100; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00001001
Bitwise arithmetic · Problem 0271
Add 10100110₂ and 10101111₂; 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=10100110, B=10101111.
- Ordinary decimal arithmetic gives 166+175=341.
- 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+1+incoming carry 0=2; write 0, pass carry 1.
- Bit 2 (weight 4): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 3 (weight 8): 0+1+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): 1+1+incoming carry 0=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+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 01010101, which is 85 unsigned.
- Check modular arithmetic: 341 modulo 256 = 85.
- Signed readings of the inputs are -90 and -81; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01010101
Bitwise arithmetic · Problem 0272
Add 10100111₂ and 00001111₂; 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=10100111, B=00001111.
- Ordinary decimal arithmetic gives 167+15=182.
- 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+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 3 (weight 8): 0+1+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): 1+0+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 10110110, which is 182 unsigned.
- Check modular arithmetic: 182 modulo 256 = 182.
- Signed readings of the inputs are -89 and 15; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10110110
Bitwise arithmetic · Problem 0273
Add 10100111₂ and 11001011₂; 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=10100111, B=11001011.
- Ordinary decimal arithmetic gives 167+203=370.
- 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): 0+1+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): 1+0+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 01110010, which is 114 unsigned.
- Check modular arithmetic: 370 modulo 256 = 114.
- Signed readings of the inputs are -89 and -53; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01110010
Bitwise arithmetic · Problem 0274
Add 10101000₂ and 01001000₂; 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=10101000, B=01001000.
- Ordinary decimal arithmetic gives 168+72=240.
- 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): 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): 1+0+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 11110000, which is 240 unsigned.
- Check modular arithmetic: 240 modulo 256 = 240.
- Signed readings of the inputs are -88 and 72; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11110000
Bitwise arithmetic · Problem 0275
Add 10101000₂ and 01001011₂; 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=10101000, B=01001011.
- Ordinary decimal arithmetic gives 168+75=243.
- 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): 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): 0+0+incoming carry 1=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+0+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 11110011, which is 243 unsigned.
- Check modular arithmetic: 243 modulo 256 = 243.
- Signed readings of the inputs are -88 and 75; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11110011
Bitwise arithmetic · Problem 0276
Add 10101000₂ 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=10101000, B=01100011.
- Ordinary decimal arithmetic gives 168+99=267.
- 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): 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+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): 1+1+incoming carry 0=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+0+incoming carry 1=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00001011, which is 11 unsigned.
- Check modular arithmetic: 267 modulo 256 = 11.
- Signed readings of the inputs are -88 and 99; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00001011
Bitwise arithmetic · Problem 0277
Add 10101001₂ and 01000001₂; 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=10101001, B=01000001.
- Ordinary decimal arithmetic gives 169+65=234.
- 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+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): 1+0+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 11101010, which is 234 unsigned.
- Check modular arithmetic: 234 modulo 256 = 234.
- Signed readings of the inputs are -87 and 65; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11101010
Bitwise arithmetic · Problem 0278
Add 10101001₂ and 01011011₂; 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=10101001, B=01011011.
- Ordinary decimal arithmetic gives 169+91=260.
- 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+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): 1+0+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+0+incoming carry 1=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00000100, which is 4 unsigned.
- Check modular arithmetic: 260 modulo 256 = 4.
- Signed readings of the inputs are -87 and 91; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00000100
Bitwise arithmetic · Problem 0279
Add 10101010₂ 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=10101010, B=11011100.
- Ordinary decimal arithmetic gives 170+220=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): 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): 1+0+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 -86 and -36; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10000110
Bitwise arithmetic · Problem 0280
Add 10101011₂ and 00010011₂; 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=10101011, B=00010011.
- Ordinary decimal arithmetic gives 171+19=190.
- 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+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+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+0+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 -85 and 19; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10111110
Bitwise arithmetic · Problem 0281
Add 10101011₂ and 00110010₂; 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=10101011, B=00110010.
- Ordinary decimal arithmetic gives 171+50=221.
- 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+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+1+incoming carry 0=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 11011101, which is 221 unsigned.
- Check modular arithmetic: 221 modulo 256 = 221.
- Signed readings of the inputs are -85 and 50; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11011101
Bitwise arithmetic · Problem 0282
Add 10101100₂ and 10011001₂; 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=10101100, B=10011001.
- Ordinary decimal arithmetic gives 172+153=325.
- 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): 0+0+incoming carry 0=0; write 0, 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): 1+0+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+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 01000101, which is 69 unsigned.
- Check modular arithmetic: 325 modulo 256 = 69.
- Signed readings of the inputs are -84 and -103; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01000101
Bitwise arithmetic · Problem 0283
Add 10101101₂ and 00001011₂; 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=10101101, B=00001011.
- Ordinary decimal arithmetic gives 173+11=184.
- 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): 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): 1+0+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 10111000, which is 184 unsigned.
- Check modular arithmetic: 184 modulo 256 = 184.
- Signed readings of the inputs are -83 and 11; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 10111000
Bitwise arithmetic · Problem 0284
Add 10101101₂ and 00101011₂; 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=10101101, B=00101011.
- Ordinary decimal arithmetic gives 173+43=216.
- 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): 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): 1+1+incoming carry 0=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 11011000, which is 216 unsigned.
- Check modular arithmetic: 216 modulo 256 = 216.
- Signed readings of the inputs are -83 and 43; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11011000
Bitwise arithmetic · Problem 0285
Add 10101101₂ and 01001110₂; 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=10101101, B=01001110.
- Ordinary decimal arithmetic gives 173+78=251.
- 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+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): 1+0+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 11111011, which is 251 unsigned.
- Check modular arithmetic: 251 modulo 256 = 251.
- Signed readings of the inputs are -83 and 78; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 11111011
Bitwise arithmetic · Problem 0286
Add 10101101₂ and 01110001₂; 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=10101101, B=01110001.
- Ordinary decimal arithmetic gives 173+113=286.
- 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+0+incoming carry 0=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+1+incoming carry 0=1; write 1, pass carry 0.
- Bit 5 (weight 32): 1+1+incoming carry 0=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+0+incoming carry 1=2; write 0, pass carry 1.
- The final carry-out is 1; it is outside the eight-bit result.
- The stored sum is 00011110, which is 30 unsigned.
- Check modular arithmetic: 286 modulo 256 = 30.
- Signed readings of the inputs are -83 and 113; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 00011110
Bitwise arithmetic · Problem 0287
Add 10101101₂ and 10111101₂; 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=10101101, B=10111101.
- Ordinary decimal arithmetic gives 173+189=362.
- 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+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): 1+1+incoming carry 1=3; write 1, pass carry 1.
- Bit 6 (weight 64): 0+0+incoming carry 1=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 01101010, which is 106 unsigned.
- Check modular arithmetic: 362 modulo 256 = 106.
- Signed readings of the inputs are -83 and -67; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01101010
Bitwise arithmetic · Problem 0288
Add 10101101₂ and 11000001₂; 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=10101101, B=11000001.
- Ordinary decimal arithmetic gives 173+193=366.
- 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+0+incoming carry 0=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): 1+0+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 01101110, which is 110 unsigned.
- Check modular arithmetic: 366 modulo 256 = 110.
- Signed readings of the inputs are -83 and -63; signed overflow should be evaluated separately.
- An ALU may expose carry-out and signed overflow as different flags.
Final answer: 01101110