LMC Implementing Decisions

GCSE Computer Science Resources
14-16 Years Old

48 modules covering every Computer Science topic needed for GCSE level, and each module contains:

  • An editable PowerPoint lesson presentation
  • Editable revision handouts
  • A glossary which covers the key terminologies of the module
  • Topic mindmaps for visualising the key concepts
  • Printable flashcards to help students engage active recall and confidence-based repetition
  • A quiz with accompanying answer key to test knowledge and understanding of the module
View the GCSE Resources →

KS3 Computing Resources
11-14 Years Old

We’ve created 45 modules covering every Computer Science topic needed for KS3 level, and each module contains:

  • An editable PowerPoint lesson presentation
  • Editable revision handouts
  • A glossary which covers the key terminologies of the module
  • Topic mindmaps for visualising the key concepts
  • Printable flashcards to help students engage active recall and confidence-based repetition
  • A quiz with accompanying answer key to test knowledge and understanding of the module
View the KS3 Resources →

The following program will show the use of the BRP and BRA branch instructions in making decisions within a program.

Running the program: when prompted, INPUT two numbers and the program will OUTPUT the biggest number of the two.

INP
STA first
INP
STA second
SUB first
BRP secondBig
LDA first
OUT
BRA endProgram
secondBig LDA second
OUT
endProgram HLT
first DAT
second DAT
0 INP
1 STA 12
2 INP
3 STA 13
4 SUB 12
5 BRP 9
6 LDA 12
7 OUT
8 . . .

This content is restricted to subscribers