Can we use an equated value as operand for an MVC instruction? Reason for the same?
Submitted by: AdministratorIf you write an MVC statement with an equated value as the
sending operand, then the assembler will try to resolve that
operand value as a base and displacement, it will not
necessarily throw an error at assembly, but the results at
execution will be unpredictable and may well give rise to a
protection exception.
The point of the MVI statement is that the single byte
sending operand value is assembled as part of the
instruction itself and does not have to be 'fetched' at
execution time, therefore if you are only moving a single
byte of fixed value, then an MVI will be marginally more
efficient than an MVC
Submitted by: Administrator
sending operand, then the assembler will try to resolve that
operand value as a base and displacement, it will not
necessarily throw an error at assembly, but the results at
execution will be unpredictable and may well give rise to a
protection exception.
The point of the MVI statement is that the single byte
sending operand value is assembled as part of the
instruction itself and does not have to be 'fetched' at
execution time, therefore if you are only moving a single
byte of fixed value, then an MVI will be marginally more
efficient than an MVC
Submitted by: Administrator
Read Online IBM Assembler Job Interview Questions And Answers
Top IBM Assembler Questions
☺ | How to Pass the parameters from JCL to assembler Pgm? |
☺ | How are data passed from JCL parm to assembler program. And how is data passed from a calling program to an assembler called program? |
☺ | How to pass instream data in sysin with Assembler? |
☺ | Explain ICM instruction? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |