CSCI 360 | Spring 2014 |
Use the source listing and the object code to rewrite the missing instructions of this program using EXPLICIT addressing. All numeric values should be entered in decimal. A few have already been completed.
HW2 CSECT , Define the Control SECTion name USING HW2,15 Base register will be 15 L 7,100(,15) Get contents of NUMTWO to reg 7 Get contents of NUMONE to reg 6 Get sum of NUMONE and NUMTWO to reg 6 STORE NUMTHREE = NUMONE + NUMTWO AR 7,7 Get 2 * contents of NUMTWO to req 7 NUMFOUR = 2 * ( NUMTWO ) SAME1 Get 3 * contents of NUMTWO to reg 7 ST 7,112(,15) NUMFIVE = 3 * ( NUMTWO ) SAME2 Get 4 * contents of NUMTWO to reg 7 Do NOT write the DC statement on the blank above! Take the object code produced by the DC statement and translate it to an explicit assembler instruction. NUMSIX = 4 * ( NUMTWO ) Get contents of NUMONE to reg 5 Subtract -10 from value of NUMONE TEMP3 = NUMONE - (-10) ST 5,120(,15) FINALNUM = NUMONE - (-10) XDUMP , No operands means display registers XDUMP TEMP1,56 Display 14 words starting at TEMP1