>>  These 2 USINGs can be active for the whole program and it will work

No, it won't work because the address in R10 has to be different (by +2
bytes) between scripting mode and legacy mode.

Sincerely,

Dave Clark
--
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300

Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio  45439  USA
(937) 294-5331


On Tue, Feb 17, 2026 at 4:23 PM Jon Perryman <[email protected]> wrote:

> On Tue, 17 Feb 2026 13:45:31 -0500, Tony Harminc <[email protected]> wrote:
>
> >On Tue, 17 Feb 2026 at 12:25, David Clark <[email protected]> wrote:
>
> >> USING TXTSINPT,R10       <== for scripting mode
> >> USING TXTINPT, R10       <== for legacy mode
> >
> >I think you're asking for the impossible. You seem to want to have
> >something that is determined at assembly time depend on something that is
> >known only at run time. You can't go back in time to change what the
> >assembler did last week based on what data your caller supplies today.
>
> David hasn't provided a simple and clear definition of what he needs.
> These 2 USINGs can be active for the whole program and it will work and
> allows you to reference all the fields from both dsects at the same time.
> Typically, we would not code this. Instead, we would have the code
> separated for each using and as Peter recommended, separate them into their
> own modules.
>

Reply via email to