andy8521 0 Newbie Poster

Hey guys I have this problem in this question.

Q: Write a program to read in a set of numbers(one number per record) and print the sum of the numbers. A header should be printed at the top of the page, each number should be printed(one per line), and the result should be printed in the last line.

I started doing it and I could come up with just this.

ASSIST/I Version 2.03, Copyright 1984, BDM Software.    


                                                                                                                            PAGE 1
  LOC  OBJECT CODE    ADDR1 ADDR2   STMT    SOURCE STATEMENT

                                      1 
                                                  $                                                                                 
                                        Error # 118, INVALID OP-CODE
000000                                2 FIRST    START
000000 90EC D00C            0000C     3          STM   14,12,12(13)
000004 05C0                           4          BALR  12,0
000006                                5          USING HERE,12
000006 50D0 C032            00038     6 HERE     ST    13,SAVEAREA+4
00000A 41D0 C02E            00034     7          LA    13,SAVEAREA
00000E E020 C0C6 0011 000CC           8          XPRNT HEADER,17
000014 E000 C076 0050 0007C           9          XREAD CARD,80
00001A 5370 C076            0007C    10          XDECI 7,CARD
00001E 1A78                          11          AR    7,8
000020 5270 C0D9            000DF    12          XDECO 7,OUT
000024 E020 C0D8 000D 000DE          13          XPRNT CC,13
00002A 58D0 C032            00038    14          L     13,SAVEAREA+4
00002E 98EC D00C            0000C    15          LM    14,12,12(13)
000032 07FE                          16          BR    14
000034                               17 SAVEAREA DS    18F
00007C                               18 CARD     DS    CL80
0000CC F1E3C8C540D9C5E2              19 HEADER   DC    C'1THE RESULTS ARE: '
0000DE F0                            20 CC       DC    C'0'
0000DF                               21 OUT      DS    CL12
                                     22          END   FIRST

***   1 STATEMENTS FLAGGED - 0 WARNINGS, 1 ERRORS

What can I do? Where am I making mistake?