Re: Determining AR or Primary Mode

2021-02-07 Thread Binyamin Dissen
On Thu, 4 Feb 2021 19:44:00 -0500 Tony Harminc wrote: :>On Thu, 4 Feb 2021 at 18:12, Steve Smith wrote: :>> The instruction is IAC, in PoOp Chapter 10. :>Hmmph... I never noticed that one. I use EPSW (generally R0,0) and the :>appropriate TMLx instruction(s) to examine whichever bits I'm

Re: Determining AR or Primary Mode

2021-02-05 Thread Peter Relson
It is uncommon to want to do this. If you are SVC-entered or PC-entered, you should know (because at some point you set up the definition). If you are branch-entered when it might be either primary or AR, you would usually save status via BAKR, then switch unconditionally to whichever mode you

Re: Determining AR or Primary Mode

2021-02-04 Thread Tony Harminc
On Thu, 4 Feb 2021 at 18:12, Steve Smith wrote: > > The instruction is IAC, in PoOp Chapter 10. Hmmph... I never noticed that one. I use EPSW (generally R0,0) and the appropriate TMLx instruction(s) to examine whichever bits I'm interested in. IAC has the advantage of setting the condition code

Re: Determining AR or Primary Mode

2021-02-04 Thread Steve Smith
The instruction is IAC, in PoOp Chapter 10. sas On Thu, Feb 4, 2021 at 5:51 PM esst...@juno.com wrote: > Hello > . > Im looking for an assembler instruction that informs me if I'm in AR or > primary mode. > . > Im on a z/OS 2,1 system- > I thought there was an instruction that would test for

Determining AR or Primary Mode

2021-02-04 Thread esst...@juno.com
Hello . Im looking for an assembler instruction that informs me if I'm in AR or primary mode. . Im on a z/OS 2,1 system- I thought there was an instruction that would test for AR Mode or Primary Mode. . I read the TAR (test Access) instruction and I don't see how that instruction would