Absolutely. That is standard for LE non-XPLINK linkage. You tell LE at the entry point how much "extra" R13 storage you need. (I of course do it with a calculated EQU.) Gives you stack-type storage for assembler just like in C and so forth. Would make it easy, for example, to write an assembler routine that was potentially recursive.
Back when registers were more precious I thought I had died and gone to heaven when I figured out that R13 could be used to satisfy two purposes. Charles -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Saturday, January 14, 2017 8:59 AM To: [email protected] Subject: Re: How to separate instructions and data generated in macro? On 2017-01-13, at 14:00, Tony Thigpen wrote: > Although I used LOCTR extensively in my programs, I also use the save > area (r13) as a work area for small home-grown macros. (As long as the > code in the macro does not call something that saves/restores in the > save area.) > Extend the save area. Some have criticized even that practice. I don't understand why. Some prejudice that R13 should not be used as a work area base?
