Bill Fairchild wrote:
My point was not how close 5 is to 4095, but rather the difficulty in patching an instruction when the patch only allows 12 bits to be changed (in an LA instruction) vs. when the patch allows 16 bits to be changed (when changing a half word literal).
A zap is a zap. I see no difference in degree of difficulty patching one bit, 12 bits, or 16. The real problem with patching a literal is that it might be referenced by more than one instruction.
And LHI is not available as a solution when you are writing code that might execute on non-z/Arch. processors, of which there are still just a few in existence.
What????! LHI was available *long* before z/Architecture!! -- .-----------------------------------------------------------------. | Edward E. Jaffe | | | Mgr, Research & Development | [EMAIL PROTECTED] | | Phoenix Software International | Tel: (310) 338-0400 x318 | | 5200 W Century Blvd, Suite 800 | Fax: (310) 338-0801 | | Los Angeles, CA 90045 | http://www.phoenixsoftware.com | '-----------------------------------------------------------------' ---------------------------------------------------------------------- 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

