How do you initialize a register to 0000?

Answer Posted / sunny

XR Rx,Rx

This is the best way and most efficient way of initializing
the register values or Label values to '0'.

Its because the time required to execute a Logical
Instruction is always less than the Arithmetic Instructions.

e.g SR Rx,Rx consumes more execution time than XR Rx,Rx.

So XR Rx,Rx is a better way to do obtain our target.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to retrieve the instream data in sysin?

861


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

801


Explain about house keeping in assembler?

797


Explain how to access vsam file?

835


Explain about maximum displacement?

784


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

743


how to initialize a register to 0000?

859


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

744


what is need of start 0? In steed of

814


Explain how to initialize a register to 0000?

770


Why do we use "drop"?

733


Ap wkur,=p5 where wkur is a label?

856


How to pass the parameters from jcl to assembler program?

715


What is maximum displacement and how to cross this limit?

857


Explain how to produce soc7 abend?

808