Thanks! LHI also has the advantage that it accepts equates (as does LA, of course). You can code
Return_Okay EQU 0 Return_Error EQU 8 ... LHI R15,Return_Okay And it is a little clearer what you are doing than with SR R15,R15 Charles -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Duffy Nightingale Sent: Monday, August 10, 2020 2:20 PM To: [email protected] Subject: Re: Clearing a register Most interesting answer. Thank you Charles -----Original Message----- From: IBM Mainframe Assembler List <[email protected]> On Behalf Of Charles Mills Sent: Monday, August 10, 2020 2:05 PM To: [email protected] Subject: Re: Clearing a register <snip> C. LHI has the advantage that it (1) does not require the arithmetic unit and (2) does not affect the condition code, which might make the pipeline logic a little easier on the CPU. (That's why I tend to use LHI -- but I don't go out of my way. I would not change a working SR into an LHI.)
