
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

This lab requires the student to write a completely new program. The structure of the program should reflect that of earlier programs. The goal of this assignment is to write and execute an assembly language program. The program should be called LAB. The program will read in a list of integers, one per line. Each integer should be no more than six digits. At least one should have two or more digits. As each number is read in, it is to be printed out. After the last number is read in, the program should print the sum. Example:
Please note that there is a lot of flexibility in this assignment. One way to do this would be to convert each string of digits into Packed Decimal format, to do the addition as packed decimals, convert the sum to EBCDIC, and then to print the answer. Be sure that your output is entirely numeric. If you use the UNPK instruction
A complete solution would require scanning the input strings for non–numeric characters and other such mistakes. For this, just assume that the input is correct.