> -----Original Message-----
> From: IBM Mainframe Assembler List
> [mailto:[email protected]] On Behalf Of Steve Marak
> Sent: Thursday, August 12, 2010 4:04 PM
> To: [email protected]
> Subject: Re: Parameter passing: overly cautious or properly paranoid?
>
> I like John's question at least as much for what our answers say about
> us as for the technical content ...
>
> Anyway.
>
> 1) No, but I use ICM to retrieve the values, a habit from the
> days when
> alignment mattered more. I suppose that implies I don't think
> not being
> on a fullword boundary is an error, though I always fullword align
> parameter lists I'm passing to other code.
>
> 2) Since I follow each ICM with branches to detect a zero parameter
> address (which may or not be valid, depending on what I'm doing) or
> end-of-list, I suppose I do. If the situation calls for a specific
> number of parameters and I get a different number, that's an immediate
> exit with indicative return code.
>
> Depending on the situation, of course, there may be more paranoia, but
> rarely less, even when I wrote both the calling and called
> routines. (I
> know I can't trust me, because that's what they want me to think.)
>
> Steve

I used to do a ICM and branch on zero also. I now use the LT and branch on 
zero. LT is like LTR, but is from storage.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-691-6183 cell
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

Reply via email to