Page 1 of 1

This assignment has three parts: Part A: Create a new member of your ASSIGNS PDSE named ASSIGN3A. In that member, write

Posted: Fri Jul 01, 2022 5:34 am
by answerhappygod
This assignment has three parts:
Part A:
Create a new member of your ASSIGNS PDSE named ASSIGN3A. In thatmember, write a program named ASSIGN3A that subtracts NUM2 fromNUM1. NUM1 is a fullword of 15 in storage. NUM2 is a fullword of 7in storage. Simply load these numbers into registers 2 and 3,respectively, and then use an SR to subtract register 3 from 2. Tosee your numbers, use an XDUMP to dump out your registers and lookat the registers to verify your answer. At this point, download arun of your program using Retrieve Jobs and save it asASSIGN3A.txt.
Part B:
Now, copy the member named ASSIGN3A from Part A above and nameit ASSIGN3B. In this program, store (ST) your answer into a newfullword of storage labeled ANSWER. XDUMP just that area of storageusing XDUMP. You XDUMP storage by putting the label followed by thelength of the field like XDUMP ANSWER,4. Go into the XDUMP andverify that your math is correct. At this point, download a run ofyour program using Retrieve Jobs and save it as ASSIGN3B.txt.
Part C:
Finally, copy the member named ASSIGN3B from Part B above andname it ASSIGN3C. Rewrite your program using explicit addressing.This means on the L and ST, take out your labels and fill in theleft object code for the addresses. Remember that your baseregister is 15 because of the USING statement that immediatelyfollows the CSECT statement. (You do not have to worry aboutconverting the XDUMP to explicit form). Once again, at this point,download a run of your program using Retrieve Jobs and save it asASSIGN3C.txt.
Be sure to follow the 360 Coding and Documentation Guidelinesfound in Blackboard's Course Documents. Submit all three .txt filesrepresenting your successful runs of your jobs for Parts A, B and Con Blackboard.