Community resourceWorksheet

OCR H446 1.4.1 Binary integer arithmetic

Part 4 of 11 · H446 1.4.1 · Data types

Fixed-width addition and subtraction is where carries, borrows and overflow become examinable in H446 1.4.1, and the working carries marks as much as the answer does. A game server combining score changes gives the context for 8-bit addition, borrowing subtraction and two's-complement subtraction, before separating a carry out from signed overflow.

Students will:

  • add pairs of 8-bit unsigned values and record the carry row
  • subtract 8-bit values by borrowing and by adding a two's complement
  • hold a result at the stated width and interpret the remaining bits
  • decide whether an addition has overflowed and give the representable-range reason
  • explain in writing why a carry out and signed overflow are not the same event

Inside: 8 explanation cells, 1 fill-in-the-blanks cell, 1 written answer and 4 number answers. 37 marks, about 45 to 55 minutes.

Series: H446 1.4.1 · Data types, part 4 of 11.

Shared by Coding PathwayVerified teacher

  • 14 cells
  • About 45 minutes
  • CC BY-SA 4.0
  • Shared 31 Aug 2026
  • Updated 15 Sept 2026

Preview

The whole resource, exactly as a class sees it. Answers and marking are held back.

Binary integer arithmetic

A game server combines score changes and corrects counters. Fixed width makes the working and any unrepresentable result visible.

By the end, you will be able to

  • add binary values with carries
  • subtract using borrowing or two’s-complement addition
  • distinguish unsigned carry from signed overflow
  • interpret whether a stored result is meaningful

Reactivate: 1 + 1 in binary produces result bit 0 and carry 1.

Addition

Work from right to left. In one column: 0 + 0 = 0; 0 + 1 = 1; 1 + 1 = 10; and 1 + 1 + carry 1 = 11. Write the result bit and carry the other bit to the next column.

Worked example: 00101101 (45) + 00010111 (23) = 01000100 (68). Work through all eight columns and retain each carry above the next column; the denary values are a check, not a replacement for the binary method.

Worked model: align every column

carry:  1 1 1 1
         00110110
       + 00011101
       ----------
         01010011

Work right to left. The denary check is 54 + 29 = 83, and 01010011₂ is 83. Use denary only as a check; keep binary working for the assessed method.

Number systems8 marks

Add each pair of 8-bit unsigned binary values. Show and mark the carry row.

a)Add these 8-bit binary numbers: 01000011 + 10011011.

Carries
First number
01000011
Second number
10011011
Total

b)Add these 8-bit binary numbers: 01110010 + 01011100.

Carries
First number
01110010
Second number
01011100
Total

c)Add these 8-bit binary numbers: 00110011 + 00101111.

Carries
First number
00110011
Second number
00101111
Total

d)Add these 8-bit binary numbers: 10001110 + 00111100.

Carries
First number
10001110
Second number
00111100
Total

Subtraction

You may use binary borrowing for unsigned values. For signed two's-complement subtraction, form the two's complement of the subtrahend and add it. Keep the width fixed and interpret the final pattern.

Worked signed example: 9 - 6 becomes 00001001 + 11111010, because 11111010 is -6 in 8-bit two's complement. The fixed-width sum is 00000011, so the result is +3. Discarding a carry beyond the eighth bit is part of keeping the stated width; it is not automatically signed overflow.

Model two’s-complement subtraction

To calculate A − B at a fixed width: form the two’s complement of B, add it to A, discard a carry beyond the fixed width, then interpret the remaining bits in the stated signed system.

Guided checkpoint: before accepting the bits, estimate the sign and range of the mathematical answer. If two positive inputs in signed addition produce a negative-looking result, investigate overflow rather than reporting it blindly.

Number systems8 marks

Subtract the second 8-bit unsigned value from the first. Show the borrowing/carry working.

a)Work out 01110010 − 01010111 in binary.

Borrows
Start from
01110010
Take away
01010111
Difference

b)Work out 00100001 − 00000111 in binary.

Borrows
Start from
00100001
Take away
00000111
Difference

c)Work out 00100100 − 00011011 in binary.

Borrows
Start from
00100100
Take away
00011011
Difference

d)Work out 11000001 − 10000100 in binary.

Borrows
Start from
11000001
Take away
10000100
Difference
Number systems6 marks

Complete each 8-bit two's-complement subtraction and record the method.

a)Use two's complement to work out 00110001 − 00010011.

Start from
00110001
Take away
00010011
Flip the bits
Add one
Difference

b)Use two's complement to work out 00110101 − 00111111.

Start from
00110101
Take away
00111111
Flip the bits
Add one
Difference

c)Use two's complement to work out 01011101 − 00110101.

Start from
01011101
Take away
00110101
Flip the bits
Add one
Difference

Carry and overflow are not synonyms

A carry out shows an unsigned result needs more bits. Signed overflow occurs when a two's-complement result is outside the representable range; for addition, two inputs with the same sign producing a result with the opposite sign is a warning.

Compare two 8-bit signed cases:

  • 11111111 (-1) + 11111111 (-1) gives stored result 11111110 (-2) with a carry out. The signed result is valid, so there is no signed overflow.
  • 01000000 (+64) + 01000000 (+64) gives 10000000. The mathematical answer +128 is outside -128 to +127, so signed overflow has occurred even though a carry-out rule alone would not diagnose it.

Always test the interpretation and representable range named in the question.

Number systems8 marks

For each 8-bit addition, decide whether overflow occurs and explain the representable-range reason.

a)Add 01100100 and 00011100 in an 8-bit register, then say what happens to the answer.

Carries
First number
01100100
Second number
00011100
Total
Why?

Not answered

b)Add 01110001 and 00111110 in an 8-bit register, then say what happens to the answer.

Carries
First number
01110001
Second number
00111110
Total
Why?

Not answered

c)Add 00110100 and 10010101 in an 8-bit register, then say what happens to the answer.

Carries
First number
00110100
Second number
10010101
Total
Why?

Not answered

d)Add 10001100 and 11010010 in an 8-bit register, then say what happens to the answer.

Carries
First number
10001100
Second number
11010010
Total
Why?

Not answered

Written answer3 marks

Two positive 8-bit two's-complement values are added and the result begins with 1. Explain what has happened and why keeping only the 8-bit result would be misleading.

Refer to sign, representable range and the interpretation of the stored result.

Students type their answer here.

Closed-book checkpoint

Complete each sentence from memory. There is no answer bank and correctness is held for teacher review.

Fill in the blanks4 marks
Binary addition records a completion 1 into the next column. Signed subtraction can add the completion 2 of the subtrahend. A signed result outside the representable completion 3 causes completion 4.

Retrieval check

Explain the difference between a carry out and signed overflow, and give the four stages for fixed-width two’s-complement subtraction.