HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A made-up processor has one register, the accumulator…
MediumComputer ScienceHigh School (9–10)Computer Science › Software, Languages and TranslatorsNumericalIGCSE

A made-up processor has one register, the accumulator…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A made-up processor has one register, the accumulator. LDA loads a value from memory into the accumulator, ADD and SUB add or take away a value from memory, and STO stores the accumulator in memory.

Address 8 holds 121212, address 9 holds 777 and address 10 holds 555. The program is:

assembly
LDA 8
ADD 9
SUB 10
STO 11

Give the value in the accumulator after each of the first three instructions, and the value stored at address 11 at the end.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

Machine code is binary and is the language of the processor. Assembly language is low level: it uses mnemonics such as ADD, and an assembler translates it into machine code. A high-level language is easier to read, write and debug and is machine independent. A low-level language can manipulate the hardware directly.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. LDA 8. The accumulator takes the value at address 8: 121212.

Step 2. ADD 9. 12+7=1912 + 7 = 1912+7=19.

Step 3. SUB 10. 19−5=1419 - 5 = 1419−5=14.

Step 4. STO 11. The value 141414 is stored at address 11.

Answer: 121212, 191919, 141414, and address 11 holds 141414.

What if? In a high-level language this whole program is one statement, such as Result ← A + B - C. That is one reason high-level code is easier to read.

Log in to save this for later
← All Problems
← Say whether each statement is about a high-level language or a low-level language…A team writes an app for a school timetable… →
More onComputer Science › Software, Languages and Translators

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A programmer uses the identifier TotalPrice, which has 10 letters, 25 times in a program…Medium
  2. Name the function of an IDE in each case…Easy
  3. In a model with made-up times, a program takes 3 s each time it is run with an interpreter…Hard
  4. A programmer uses an interpreter while she writes a game…Medium
  5. A program has eight lines. Line 5 has a missing comma and line 7 has a missing bracket, so neither…Medium
All problems on this topic →