Prepare for the A Level Computer Science OCR Exam with comprehensive quizzes that cover essential topics, flashcards, and detailed explanations to help you excel. Ace your exam with confidence!

Practice this question and more.


What does the LMC instruction "LDA" do?

  1. Stores data into the accumulator

  2. Loads data from a specified storage location into the accumulator

  3. Branches to a given address

  4. Fetches the next instruction

The correct answer is: Loads data from a specified storage location into the accumulator

The "LDA" instruction in the Little Man Computer (LMC) model is designed to load data from a specified memory address into the accumulator. This action is fundamental in assembly language programming because the accumulator serves as the primary register for performing arithmetic and logic operations. By using "LDA," a programmer can retrieve a value stored in memory for processing. In this context, it is important to recognize how the other actions differ: storing data into the accumulator involves using a different instruction, branching affects the control flow of the program rather than accessing data, and fetching the next instruction is part of the program execution cycle but is not related specifically to loading data into the accumulator.