Assembly Language / LMC Flashcards
What does the Mnemonic ADD do?
Add to the value in the Accumulator
What does the Mnemonic SUB do?
Subtract from the value in the Accumilator
What does the Mnemonic STA do?
Stores the current value in the Accumilator
What does the Mnemonic LDA do?
Loads a value
What does the Mnemonic BRA do?
Branches always
What does the Mnemonic BRZ do?
Branches if zero
What does the Mnemonic BRP do?
Branches if positive
What does the Mnemonic INP do?
Allows for a value to be inputted
What does the Mnemonic OUT do?
Outputs the value
What does the Mnemonic HLT do?
Ends the program
What does the Mnemonic DAT do?
Data location
What is the point of Mnemonics?
They’re more easily readable by humans, as each Mnemonic translates to a binary function.
What kind of language is LMC?
An Assembly Language
What is the order for each line in LMC code?
A Lable (for variable names) A Mnemonic (for the function) The Data (to be used)
Where is the calculation undertaken?
Within the ALU