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.


Which function in LMC is used to put the value from the accumulator into a specified storage location?

  1. Load function

  2. Store function

  3. Branch function

  4. Execute function

The correct answer is: Store function

The Store function in the Little Man Computer (LMC) is specifically designed for placing the value currently held in the accumulator into a specified memory location. In LMC, the accumulator serves as a primary register for arithmetic operations and data manipulation. When a value needs to be preserved beyond the current operation or needs to be written to a specific memory address, the Store function is invoked. This operation transfers the contents of the accumulator to the indicated location in memory, allowing for retrieval and further use of that value in subsequent operations. By securely writing the value to memory, the Store function facilitates the maintenance of data throughout the program's execution, enabling a more complex sequence of instructions and proper data handling. This is essential for developing programs that require both immediate computational results and the ability to recall stored information later in the program. Consequently, without the Store function, the data would remain volatile and unusable across different parts of the program.