Can we use an equated value as operand for an MVC
instruction? Reason for the same

Answer Posted / phil

If 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

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to initialize a register to 0000?

684


what is need of start 0? In steed of

744


How to pass the parameters from jcl to assembler program?

649


What will happen if we drop the base register in the program which contains only one basereg?

660


What does the following code do? Ap wkur,=p5 where wkur is a label?

705






Explain about base register?

697


Explain how to access vsam file?

703


What is the use of trt instruction?

656


What is maximum displacement and how to cross this limit?

777


Explain how to produce soc7 abend?

719


What is house keeping in assembler?

676


Ap wkur,=p5 where wkur is a label?

772


How many maximum base registers we can have in a single program?

714


What does "using" do?

658


Explain the difference in data type "x" and "p"?

679