As per the FPR usage thread, you could also save GR(s) to FP registers 0 thru 7.

Robert

-----Original Message-----
From: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> On Behalf 
Of Charles Mills
Sent: Monday, November 29, 2021 18:03
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Base-less macros

I did not think about how this had to happen before you had saved any 
registers. (Same issue for @Gary's suggestion, which is basically equivalent to 
mine.)

If there is no register that your linkage conventions imply do not need to be 
saved (R0?) then you could temporarily save a register at 12(R13). That is 
available no matter what the format. Wastes a storage access, of course. You 
could save R14 there in whatever is the "expected" format of the save area. If 
you guessed right then no need to save it again. If "old style" is the most 
common situation, then you might do the whole R14,R12,12(R13) nine yards and if 
you got it right then you are mostly done.

Steve Smith's suggestion of AR0 is interesting. Never thought about that ...

Charles



Reply via email to