>OTH - if this module makes no system calls or other subroutine calls, then >it does not need a save area of its own, so it can use the caller's >provided area (as the protocol requires).
The question is not whether or not the code *can* use the caller's save area. The code *shall* use the caller's save area to save the caller's register content. The question is whether or not the code has to setup a new save area for others to use. If it doesn't do any "calls" to external code, then no new SA is required (nobody would use it anyway). Document the fact in the code so that someone modifying it in the future understands this. I was tempted to suggest loading R13 with an address in the code where a text would indicated the same fact. But then I realized that it is better to load R13 with an address leading to an ABEND when using it as a base register in a store operation. After all, labeling a module RENT doesn't write protect its storage per se. -- Peter Hunkeler ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
