1) I usually don't check and it never ocurred to me to receive a list of 
parameters not fullword aligned. But it may be a problem if it isn't.
2) I always check. It's the first thing I do. If I don't get the right number 
of parameters, I interrupt the execution and immediately return an error code.

Yip Cho Paul
System Programmer
________________________________________
De: IBM Mainframe Assembler List [[email protected]] em Nome de 
McKown, John [[email protected]]
Enviado: quarta-feira, 11 de agosto de 2010 11:07
Para: [email protected]
Assunto: Parameter passing: overly cautious or properly paranoid?

This is just curiousity on my part. I was thinking about standard parameter 
passing in z/OS. That's where R1 points to a list of fullwords containing 
address of parameters, with the last address having the high order bit set and 
all previous addresses having the high order bit unset. So I was wondering the 
following:

1) do you check to make sure that R1 actually points to a fullword boundry. 
I.e. bits 30&31 are '0'b? Is this necessary or not? If R1 doesn't point to a 
fullword boundry, is that actually an error? That is, do you feel that a proper 
parameter list must be fullword aligned?

2) do you always verify bit 0 of every fullword in the list of addresses to 
make sure that you get the expected number of parameters? What do you do if you 
get too few or too many?

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

"Esta mensagem e uma correspondencia reservada e sua divulgacao, distribuicao, 
reproducao ou qualquer forma de utilizacao depende de autorizacao, 
sujeitando-se o responsavel a medidas judiciais. O remetente utiliza o correio 
eletronico no exercicio do seu trabalho ou em razao dele, eximindo esta 
instituicao de qualquer responsabilidade por utilizacao indevida. Se voce a 
recebeu por engano, favor elimina-la."

"This message is a reserved correspondence and its disclosure, distribution, 
reproduction or any other form of use shall depend upon proper authorization, 
and the recipient responsible for such disclosure, distribution, reproduction 
or use shall be subject to legal actions. The sender uses the electronic mail 
in the exercise of his/her work or by virtue thereof, and the institution 
accepts no liability for its undue use. If you have received this e-mail by 
mistake, please delete it."

Reply via email to