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 about maximum displacement and how to cross this limit?

705


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

625


Explain how to pass instream data in sysin with assembler?

659


How is data passed from a calling program to an assembler called program?

638


how to initialize a register to 0000?

675






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

647


What is maximum displacement?

628


Explain the difference between various read and find statement and which one should be used when for better adabas performance?

591


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

623


How to pass the parameters from jcl to assembler program?

582


Explain the difference between various read and find statement?

630


Explain how to produce soc7 abend?

651


What is the use of trt instruction?

592


Explain about maximum displacement?

614


how do you round the addition or subtraction of two numbers in assembler? what does the following code do? change process tool(code changes from dev to prd) the changes made to your code should be effected in live. How the process takes place. That is how can you move the code changes from development to production?

697