In assembler, how can we initialize the register to 0000?

HLASM for MVS. PL/I for MVS & Enterprise PL/I for z/OS.
Post Reply
RoyW
New Member
Posts: 7
Joined: Sun Jun 21, 2015 11:00 pm

In assembler, how can we initialize the register to 0000?

Post by RoyW »

Hi,

In assembler, how can we initialize the register to 0000? Are there some best practices to choose from? Appreicate your help.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 825
Joined: Wed Sep 11, 2013 3:57 pm

Re: In assembler, how can we initialize the register to 0000

Post by enrico-sorichetti »

Code: Select all

         SR    <your-reg>,<your-reg>
         ...
         XR    <your-reg>,<your-reg>
once upon a time
( when people looked at the smallest details to squeeze everything out of the CPU available )
XR was preferred for being slightly faster

nowadays the issue is probably irrelevant
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
RoyW
New Member
Posts: 7
Joined: Sun Jun 21, 2015 11:00 pm

Re: In assembler, how can we initialize the register to 0000

Post by RoyW »

enrico thanks for your help.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Assembler & PL/I.”