Please note that given program is a sample implementation and it is possible to have more than one implementations solving the same problem. This program has been tested using the Little Man Simulator at http://www.atkinson.yorku.ca/~sychen/research/LMC/LittleMan.html .
INP // Accept first number from user and
STA FIRST // store it in location FIRST.
INP // Accept second number from user and
STA SECOND // store it in ...
Program mentioned in text response has been commented well to make it easier to understand the implemented logic.