I decided to put the constant in-line and use BRAS to acquire it's address:

         AIF   ('&PARM'(1,1) NE '''').N0004
         BRAS  &TREG,N2&SYSNDX
&TVAL    SETC  '&PARM'(2,K'&PARM-2)
N1&SYSNDX DC   CL&SIZE'&TVAL'
N2&SYSNDX DS   0H
         AGO   .N0099
.N0004   ANOP

Tony Thigpen

Bernd Oppolzer wrote on 11/8/21 4:01 AM:
Am 08.11.2021 um 05:40 schrieb Charles Mills:
+1

I have my LOCTR's named CODE and DATA but I agree with the concept: base register points to the CSECT; CSECT has data and LTORG's first. Hard to get totally away from base registers, especially if your ARCH does not support EXR.

You don't want inline data values that you branch around. They are cache-killers.


Only if you write into the data areas;
the OP wrote of constants in macros, so the areas should be read-only.

Kind regards

Bernd



Charles

Reply via email to