Assembly Instructions


InstructionExplanation
ADDAdd the current item in the accumulator with the address defined
SUBSubtract the current item in the accumulator with ther address defined
STAStore the current item in the accumulator into memory
LDALoad from memory
BRABranch always
BRZBranch if the accumulator is zero
BRPBranch if the accumulator is positive
INPTake in a input and store into the accumilator
OUTPrint out the current state of the accumulator
HLTEnd the program
DATData location
  • Each instruction is 3 letters long
  • There are 11 instructions in total