Question: A BALR instruction appears in a program on line 00C. The instruction itself is 2 bytes long. The next line contains an assembly USING directive.

A BALR instruction appears in a program on line 00C. The instruction itself is 2 bytes long. The next line contains an assembly USING directive. There is a variable called FIELD1 defined at line 2DA.

(a) What is the displacement that will appear in an instruction which references FIELD1?

(b) Assume the BALR instruction reads BALR R10,0. What does this instruction do?

(c) What do we call R10?

(d) In order to refer to the register as R10, what must you include in your program?

(e) Given the above BALR instruction, how would you write the USING directive?

(f) What is the purpose of the USING directive?

(g) Assume the program is loaded at address 1F34BC. What will be the address of FIELD1?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!