1.2.4 c Flashcards
ADD
Adds the value of the given memory address to the value in the accumulator
SUB
Subtracts the value of the given memory address to the value in the accumulator
STA
Stores the value in the accumulator at the given memory address
LDA
Loads 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 to be executed
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