Assembly language (including following and writing simple programs with the Little Man Computer instruction set) Flashcards
ADD
Add the value at the given memory address to the value in the accumulator
SUB
Subtract the value at the given memory address from the value in the accumulator
STA
Store the value in the accumulator at the given memory address
LDA
Load the value at the given memory address into the accumulator
INP
Allows the user to input a value which will be held in the accumulator
OUT
Prints the value currently held in the accumulator
HLT
Stops the program at that line, preventing the rest of the code from executing
DAT
Creates a flag with a label at which data is stored
BRZ
Branches to a given address if the value in the accumulator is zero, this is a conditional branch
BRP
Branches to a given address if the value in the accumulator is positive, this is a conditional branch
BRA
Branches to a given address no matter the value in the accumulator, this is an unconditional branch