CSCI 360 Spring 2014

Program 1
Explicit Addressing
(50 points)


Write and execute an assembler program using EXPLICIT addressing that will calculate the number of points earned by a single hockey player.

Use the JCL that was used in the lab training session example.

//your_id JOB ,'your name',MSGCLASS=H
//STEP1 EXEC PGM=ASSIST
//STEPLIB DD DSN=KC02293.ASSIST.LOADLIB,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *

assembly language program goes here (Remember - NO blank lines!)

/*
//

In the program, define storage for the following fullword fields and assign the following initial decimal values:

              Initial
Field          Value          Description

GOALS          172            The player's number of goals scored
ASSISTS        308            The player's number of assists earned
POINTS                        The player's number of points earned

Processing

The program should perform the following calculation:

POINTS = GOALS + ASSISTS

For the calculated field POINTS, make sure to save the value in the storage location. DO NOT leave the value in a register because the value is needed in the printed output described below.

Output

At the end of the program, perform the following operations:

  1. XDUMP the registers

  2. XDUMP all of the program storage

Notes

  1. Aside from the instructions necessary to enter and exit the program, you may use the following instructions to code this program: L, LR, A, AR, S, SR, ST

  2. Save this program. It will be a good starting point for program 2.

  3. To submit your program, log on to Blackboard and navigate to Contents/Assignments. Click on the "Program 1" link. There are two files that need to be handed in. They are a TXT file that contains the code that was submitted to Marist, including the JCL, and a TXT file that contains the final run of the program from the Marist system (this is the one that has the output that is produced by the program). To do this, scroll to the "Assignment Materials" section and click on the "Browse My Computer" button. Navigate to the folder that contains the TXT file with the source code and attach the TXT file. Repeat the process for the TXT file that contains the final run of the program. After the two files have been attached, click the red "Submit" button.

    The files may be submitted up to 3 times. The last submission is the one that will be graded.