Flashcards
LMC Computing AS Component 1
Flashcards do conjunto (32)
- 1What is the LMC?a simulator of a modern CPU, it contains a simplified model of Von Neumann architecture
- 2What components are part of the LMC?ALU, control unit, program counter, input/output mechanisms, RAM
- 3How many instructions are available to program the LMC?ten
- 4What happens to LMC instructions written by the user?they are translated into machine code and executed by the CPU
- 5How many memory addresses in the LMC?100
- 6Where are the LMC memory addresses located?RAM
- 7What do the LMC memory addresses contain?either a machine code instruction or a piece of data
- 8How are LMC instructions formed?a three letter mnemonic in assembly language followed by the memory address of the data the CPU needs to use next
- 9How are input/output boxes used in the LMC?to input numerical values that are loaded into the accumulator, to output the contents of the accumulator
- 10What does the accumulator of the LMC do?stores the results of actions performed by the ALU
- 11What does the program counter of the LMC do?stores the memory address of the next instruction to be used by the CPU, increments by one with each cycle
- 12What do the three digits of machine code represent?the first digit is a reference to which instruction is being performed, the second two digits are a reference to which address in memory is going to be used by the CPU next
- 13What does LDA mean?load
- 14What does LDA do?loads the contents of the memory address to the accumulator
- 15What does STA mean?store
- 16What does STA do?stores the contents of the accumulator to the memory address
- 17What does ADD mean?add
- 18What does ADD do?adds the contents of the memory address to the value in the accumulator
- 19What does SUB mean?subtract
- 20What does SUB do?subtracts the contents of the memory address from the value in the accumulator
- 21What does INP mean?input
- 22What does INP do?copies the input box value to the accumulator
- 23What does OUT mean?output
- 24What does OUT do?outputs the value of the accumulator to the output box
- 25What does HLT mean?halt/end
- 26What does HLT do?stops the program
- 27What do branch instructions do?jump to another location within the program, sometimes if a certain condition is met
- 28What does BRA mean?branch always
- 29What does BRZ mean?branch if zero
- 30What does BRP mean?branch if zero or positive
- 31What does DAT mean?data location
- 32What does DAT do?creates a memory location for a variable
Informações
- Descrição
- AS level Computer Science AS FlashCards sobre LMC Computing AS Component 1, criado por Alexis Togami em 27-02-2019.
- Criado por
- Alexis Togami
- Visualizações
- 3
- Avaliação