CSCI 360 | Spring 2014 |
Using JCL from Program 1 or the Lab Training program, run the following program:
DUMP1 CSECT USING DUMP1,15 Establish a base register L 1,ONE Load the first number into reg 1 L 2,TWO Load the second number into reg 2 AR 1,2 Add the two numbers ST 1,THREE Save the result XDUMP THREE,4 Dump the result BCR B'1111',14 Return to the caller * ONE DC F'52' The first number TWO DC F'18' The second number EOFFLAG DC C'0' Flag save area THREE DS CL4' ' Sum of the two numbers END DUMP1
Use the resulting output to answer the following questions. Once all of the questions have been answered, put the answers on Blackboard. The questions can be found on Blackboard under Contents/Assignments. Click on the "Homework 3" link.
What is the address of the next instruction which will be executed?
What is the address of the instruction that caused the abend?
What type of error occurred? (Number and Name)
What in the program caused this error?
How can the line of code that caused the error be corrected? (i.e. re-write the line of code that caused the error so that the error will no longer exist)
What are the contents of register 1 in decimal?
What does the value in register 1 represent at the time of the abend?
Why is the location counter value of the storage area with label ONE on it 000018 when the branch statement before it (whose location counter value is 000014) only takes up 2 bytes? Be specific.
What are the contents of the two bytes of user storage starting at address 000016?
What does the contents of the two bytes of user storage starting at address 000016 represent?
What are the contents of the byte saved at address 00001B?
Yes or No: Does the byte that is saved at address 00001B represent the first byte of a fullword?
If the program error was corrected, what value would the storage area at label THREE contain in hexadecimal?
Which of the following represent 32 BITS? Make sure to select all of the possible values.
a. 6 hexadecimal digits
b. 4 bytes
c. 8 hexadecimal digits
d. 32 bytes
e. 32 bits
f. 1 doubleword
g. 1 fullword
h. 1 byte
i. 1 foot
j. 64 bits
k. 1 halfword
l. 1 meter
Which of the following represent 64 BITS? Make sure to select all of the possible values.
a. 6 hexadecimal digits
b. 4 bytes
c. 8 hexadecimal digits
d. 32 bytes
e. 32 bits
f. 1 doubleword
g. 1 fullword
h. 1 byte
i. 1 foot
j. 64 bits
k. 1 halfword
l. 1 meter
What two instructions have you worked with that cause data conversion to take place?
What is the decimal equivalent of hexadecimal 0002BA14?