Re: Question on the SLIP command

2023-06-21 Thread Charles Hardee
Hi Peter,

This works:

 STR14,0(,R13)
 JAS   R14,*+4+8
 DCC'$SL$',Y(x,y)
 L R14,0(,R13)

and I can do DA=(14R?,EQ,5BE2D35B)
Where x is a module's identification number and y is the nth macro
expansion for my SLIP trigger macro.

What I wanted to do was:

 J *+4+8
 DCC'$SL$',Y(x,y)

and I can do something like DA=(PSW?,EQ,5BE2D35B)

I was hoping to use the PSW in order to preserve all of my registers.
Apparently, I am not going to be able to do what I want to do.

Thanks for the information.
Chuck




On Wed, Jun 21, 2023 at 7:24 AM Peter Relson  wrote:

> As you have observed, there is no support for "PSW".
>
> I'm curious what SLIP trap you're setting that would let you even know to
> look at "+4". You'd have to know that the instruction itself was a branch
> and that it was one of "your" branches. If you really could tell that it
> was one of your branches, and if you have a reg that you can afford to use
> consistently perhaps use BRAS instead of J and then you could indirect off
> of the value in the reg.
>
> If this is a PER-SB (or IF) trap, and you know the address is below 2G,
> field LCCAPERA contains the address of the instruction that took the PER
> interrupt. LCCAPPSW contains the resulting PSW (so LCCAPPSW+4 contains the
> address, but may have bit 0 on)
>
> The LCCA is pointed to by PSA location x'210'.
>
> LCCXLCCAPERA and LCCXPPSW16_2 contain the 8-byte address and 16-byte PSW
> analogs.
>
> With use of an expression using indirection starting at x'210' and the EQ
> or EQA comparand you might be able to do something.
>
> Peter Relson
> z/OS Core Technology Design
>
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Question on the SLIP command

2023-06-21 Thread Peter Relson
As you have observed, there is no support for "PSW".

I'm curious what SLIP trap you're setting that would let you even know to look 
at "+4". You'd have to know that the instruction itself was a branch and that 
it was one of "your" branches. If you really could tell that it was one of your 
branches, and if you have a reg that you can afford to use consistently perhaps 
use BRAS instead of J and then you could indirect off of the value in the reg.

If this is a PER-SB (or IF) trap, and you know the address is below 2G, field 
LCCAPERA contains the address of the instruction that took the PER interrupt. 
LCCAPPSW contains the resulting PSW (so LCCAPPSW+4 contains the address, but 
may have bit 0 on)

The LCCA is pointed to by PSA location x'210'.

LCCXLCCAPERA and LCCXPPSW16_2 contain the 8-byte address and 16-byte PSW 
analogs.

With use of an expression using indirection starting at x'210' and the EQ or 
EQA comparand you might be able to do something.

Peter Relson
z/OS Core Technology Design


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Question on the SLIP command

2023-06-20 Thread Charles Hardee
Hi Eric,

I have a macro that generates a code sequence like this:

  J*+4+6
  DCC'$SL$,Y(x,y)

x and y are "footprint" type fields.
The x represents the module identifier, 1, 2, 3, etc and y represents the
specific macro expansion, 1, 2, 3, etc.

The idea being when the PSW+4 points to the specific C'$SL$,Y(x,y)
combination, trigger the SLIP.
I tried using the DA=(..) parameter and when I coded what I hoped would
work, I used PSW like I would have used, for instance, 2R, and the SLIP
parser rejected it.

Chuck


On Tue, Jun 20, 2023 at 1:50 PM Eric D Rossman  wrote:

> Normally, you would use the RANGE= option to have the SLIP hit on certain
> PSWs. Are you trying to see if a particular instruction is present at the
> PSW?
>
> Eric Rossman
>
> -Original Message-
> From: IBM Mainframe Discussion List  On Behalf
> Of Charles Hardee
> Sent: Tuesday, June 20, 2023 1:40 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: [EXTERNAL] Question on the SLIP command
>
> Hello All,
>
> I have a question regarding the SLIP command.
>
> In my DA= parameter I have used things like 2r? to reference register 2,
> etc.
> Is there a symbol for the PSW?
> I have tried DA=(PSW?+0,EQ,*myvalue*) and it tells me the DA parm is bad.
>
> Thanks,
> Chuck
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Question on the SLIP command

2023-06-20 Thread Eric D Rossman
Normally, you would use the RANGE= option to have the SLIP hit on certain PSWs. 
Are you trying to see if a particular instruction is present at the PSW?

Eric Rossman

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Charles Hardee
Sent: Tuesday, June 20, 2023 1:40 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: [EXTERNAL] Question on the SLIP command

Hello All,

I have a question regarding the SLIP command.

In my DA= parameter I have used things like 2r? to reference register 2, etc.
Is there a symbol for the PSW?
I have tried DA=(PSW?+0,EQ,*myvalue*) and it tells me the DA parm is bad.

Thanks,
Chuck

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Question on the SLIP command

2023-06-20 Thread Charles Hardee
Hello All,

I have a question regarding the SLIP command.

In my DA= parameter I have used things like 2r? to reference register 2,
etc.
Is there a symbol for the PSW?
I have tried DA=(PSW?+0,EQ,*myvalue*) and it tells me the DA parm is bad.

Thanks,
Chuck

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN