LMC Mnemonics Flashcards
1
Q
What opcode does 0 represent?
A
HLT
(Halt)
2
Q
What opcode does 1 represent?
A
ADD
(Add)
3
Q
What opcode does 2 represent?
A
SUB
(Subtract)
4
Q
What opcode does 3 represent?
A
STA/STO
(Store)
5
Q
What opcode does 4 represent?
A
None - It’s unused and gives an error
6
Q
What opcode does 5 represent?
A
LDA
(Load)
7
Q
What opcode does 6 represent?
A
BRA
(Branch (Always))
8
Q
What opcode does 7 represent?
A
BRZ
(Branch if Zero)
9
Q
What opcode does 8 represent?
A
BRP
(Branch if Positive)
(If Accumulator is Zero or Positive)
10
Q
What opcode does 9 represent?
A
INP (Input)
OUT (Output)