Maybe this is a bit of a religious war - but I have always disliked "LA
Rx,integer" - for maintainability (and readability) I would much prefer
"L Rx,=F'integer'.

 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Bill Fairchild
Sent: 19 July 2005 09:41
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Highly used programs: any better replacements out there?

 
In a message dated 7/19/2005 7:29:12 A.M. Central Daylight Time,  
[EMAIL PROTECTED] writes:

The code  shown specifically used =H'5'. There is no case where that
*specic*  instruction could not have been written instead as an LA  r,5.




You are correct.  You are still missing my point.  Suppose the  original

instruction was
LA   Rx,4095   and for whatever reason the logic needs  to be changed
into LA 
 Rx,4096.  This instruction will not  assemble.  However, if the
original 
instruction was LH    Rx,=H'4095'  then the half word literal can be
patched from 
4095 to  4096.  In the former case no simple patch is possible.  In the 
latter  case a simple patch is possible.  It is also possible that, for
whatever  
reason, the logic of a LA  Rx,5 needs to be changed so that the value
being  
put into the register is 4096 instead of 5.
 
Bill Fairchild

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to