I need someone who can help me with IBM assignment.

ccengvx009
timer Asked: May 5th, 2016

Question Description

Hi,

I can give you notes I have on the topic so you can get an idea what to do and how to code this assignment. I can also show you how the output should look like. If you think you can do this one we can discuss all the details later on.


Thanks.

Unformatted Attachment Preview

CSCI 360 Assignment 9 Advanced Instructions and Macros 50 pts Just code one MAIN routine with standard linkage. Use internal subroutines for BUILD and PRINT. Be sure to space out your code with * . MAIN's storage contains a TABLE where you will accumulate the flight data. Define the table as TABLE DC 4XL12'ABCDABCD' MY TABLE DSECT TO USE: TAB $TNAME $TCOUNT $TPOINTS ENTRY DS CL8 DS H DS H NAME OF AIRLINE COUNT OF FLIGHTS TAKEN ON THIS CARRIER POINTS EARNED ON THIS CARRIER First thing to do in MAIN is zero out the TABLE. Then call BUILD. In BUILD code an XREAD loop (check eof) that will execute 4 times to move the name of an airline into the respective table entry. If EOF is hit, go to a DIE label in storage and crash your program with DC H’00’. After that code another XREAD loop till EOF to process flight records. You need to read in a single digit from card and create a FLAG byte out of it as follows. Bit 0 is the far left bit, bit 7 is far right bit. Bit Bit Bit Bit Bit Bit Bit Bit 7 6 5 4 3 2 1 0 -- American -- Delta -- Midwest – United – not used (always 0) -- not used (always 0) -- not used (always 0) -- not used (always 0) If the desired airline is American, the flag byte (value 1) will look like this: 0 0 0 0 0 0 0 1  X’01’ If the desired airline is Delta, the flag byte (value 2) will look like this: 0 0 0 0 0 0 1 0  X’02’ The other flag bytes will be values 04 (MIDWEST) and 08 (UNITED). In order to create the FLAG byte, pack the single digit coming in from card, then cvb it into a register and then store the far right byte (STCM) from reg out at a byte called FLAG. Then you TM the flag byte for the respective value and add to the appropriate $TCOUNT entry in the table. Then call a macro with prototype statement named &LABEL POINTS &TABLE This macro will be an instream macro coded at top of your code and it will go through the 4 entry table and multiply the count field by 1024 (use a shift!) and in fill in the $TPOINTS for each entry. You should not use a dsect in the macro, (you can hardcode the field positions). It should not change any of the callers regs, and should check for missing table operand. If table operand is missing issue an mnote message for missing operand and exit the macro. Call the macro TWICE. First time call it with missing table and get the error message, and then call it correctly with your table address. Return back to MAIN and XDUMP TABLE,60 Then call PRINT to print out the contents of the table like this. The output would look similar to this: AIRLINE STATS AIRLINE AMERICAN DELTA MIDWEST UNITED DATA: AMERICAN DELTA MIDWEST UNITED 8 1 8 8 8 8 4 4 4 4 4 2 1 4 4 NUMBER OF FLIGHTS 5 7 2 4 POINTS EARNED 5120 7168 2048 4096 EXTRA CREDIT: Create a standard linkage macro to be used in MAIN for 10 points EC. The prototype is MYSAVE &SAVEAREA &SAVEAREA will be a label that represents the name of the save area you use with the using. Screen shot of a sample macro You can use .* for a doc box in a macro .************************************** .* MACRO NAME:ADD2 * .* PROTOTYPE ETC… * .* * .**************************************
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Similar Content

Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors