Little Man Computer Flashcards
What is operation is meant by ‘ADD’?
Add the contents of the given memory address to the accumulator.
What is operation is meant by ‘SUB’?
Subtracts the contents of the given memory address from the accumulator.
What is operation is meant by ‘STA’?
Store the contents of the accumulator in the given memory address.
What is operation is meant by ‘LDA’?
Load the contents of the given memory address into the accumulator.
What is operation is meant by ‘BRA’?
Branch to the given memory address as the next instruction. (Unconditional branch)
What is operation is meant by ‘BRZ’?
Branch to the given memory address if the accumulator is zero. (Conditional branch)
What is operation is meant by ‘BRP’?
Branch to the given memory address if the accumulator is positive or zero. (Conditional branch)
What is operation is meant by ‘INP’?
Input into the accumulator.
What is operation is meant by ‘OUT’?
Output the contents of the accumulator.
What is operation is meant by ‘HALT’?
Halt the program.
What is operation is meant by ‘DAT’?
Indicates a location that contains data.