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 3 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: 00111000 + 00001100.

Carries
First number
00111000
Second number
00001100
Total

b)Add these 8-bit binary numbers: 01111110 + 00111000.

Carries
First number
01111110
Second number
00111000
Total

c)Add these 8-bit binary numbers: 00001100 + 01011001.

Carries
First number
00001100
Second number
01011001
Total

d)Add these 8-bit binary numbers: 01010110 + 01111100.

Carries
First number
01010110
Second number
01111100
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 01010000 − 00101010 in binary.

Borrows
Start from
01010000
Take away
00101010
Difference

b)Work out 01011001 − 00110011 in binary.

Borrows
Start from
01011001
Take away
00110011
Difference

c)Work out 00001000 − 00000011 in binary.

Borrows
Start from
00001000
Take away
00000011
Difference

d)Work out 11010000 − 00001111 in binary.

Borrows
Start from
11010000
Take away
00001111
Difference
Number systems6 marks

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

a)Use two's complement to work out 01011010 − 01011000.

Start from
01011010
Take away
01011000
Flip the bits
Add one
Difference

b)Use two's complement to work out 01101100 − 01100011.

Start from
01101100
Take away
01100011
Flip the bits
Add one
Difference

c)Use two's complement to work out 01111100 − 00000010.

Start from
01111100
Take away
00000010
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 00110110 and 01101100 in an 8-bit register, then say what happens to the answer.

Carries
First number
00110110
Second number
01101100
Total
Why?

Not answered

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

Carries
First number
01101011
Second number
01000111
Total
Why?

Not answered

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

Carries
First number
00010001
Second number
01100101
Total
Why?

Not answered

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

Carries
First number
11101100
Second number
11000000
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.