1. The LMC was designed to model a very bsaic Von Neumann computer's CPU.
2. Why use low level languages at all?
3. Although an actual computer uses binary numbers, the LMC instruction values tend to be in decimal, for simplicity.
4. The accumulator in a LMC ____________________________________.
5. Values are stored in memory locations called ___________, this includes the program itself. They are referred to by location, ranging from location 00 to location 99.
6. What does the program counter do?
7. What does the instruction regsiter do?
8. The LMC instruction set is made up of 11 mnemonics, ten of which have a numeric code to model machine code. What are the three memory operators?
9. Referring to the image above, what are the two input-output operators?
10. In reference to this LMC, fill in the blanks for 1,2 and 3.
11. Note the pseudocode for an assembly language program below. What does it do?
12. The instruction set for the LMC simulator has only ADD and SUB arithmetic operations. There is no multiplication or MUL instruction.
13. Multiplication using just ADD and SUB ____________________________________.
14. In LMC, some programs may require a loop. What would you use to break out of the loop?
15. Assembly language doesn't have if statements and comparison operators. Instead it would:
16. The following code outputs the higher of two input numbers. What are label 1 and 2?
17. What does the following code do?
18. Refer to the code below and give a reason as to why it will not assemble and what lines need to be added to ensure execution.
19. Analyse the following code and select the option that is most correct, in reference to this code.
20. In LMC and assembly code, complexity can be built up by combining loops with __________.