
Here are eight lines of code that will solve the problem:

              JLE  3,3(7)
              LDA  7,-4(7)
              ADD  2,2,1
              LDC  1,1(0)
              HALT 0,0,0
              LDC  3,1(0)
              OUT  2,0,0
              ADD  3,3,1


Rearrange these statements to create the program we need:

           0: 
           1: 
           2: 
           3: 
           4: 
           5: 
           6: 
           7: 

.
