] on behalf of David Cole
[dbc...@colesoft.com]
Sent: Thursday, June 1, 2023 1:49 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Assembler theology question
WRT:
L R10,PSATOLD-PSA(,R9)Get current TCB
L R9,TCBJSCB-TCB(,R1) Get JSCB
In the specific case of the PSA
2, 2023 11:07 AM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Assembler theology question
On Thu, Jun 1, 2023 at 10:25 PM Phil Smith III wrote:
> See, I knew this would get into theology!
>
>
>
> I guess I wasn't clear enough: I only meant this for when you're doing a
>
On Thu, Jun 1, 2023 at 10:25 PM Phil Smith III wrote:
> See, I knew this would get into theology!
>
>
>
> I guess I wasn't clear enough: I only meant this for when you're doing a
> single instruction, something that will never expand-this
> kind of "flyby" of a control block on the way to
Dave Cole wrote
Also, I probably wouldn't bother with a USING. My favorite
instruction for this is:
L R10,PSATOLD-PSA(0)
Note, providing the "0" for the index register prevents that rather
annoying ASMA306W message.
ASMA306W is for overlapping usings. So I don't think it
See, I knew this would get into theology!
I guess I wasn't clear enough: I only meant this for when you're doing a single
instruction, something that will never expand-this
kind of "flyby" of a control block on the way to another. Clearly if you're
doing a bunch, it makes more sense to do
In Thu, 1 Jun 2023, at 17:24, Phil Smith III wrote:
> We've all seen (and written!) code like this:
> USING PSA,R9
> L R10,PSATOLD Get current TCB
> DROP R9
>
> USING TCB,R10
> L R9,TCBJSCB
How does that eliminate the ASMA306W?
From: IBM Mainframe Assembler List on behalf
of David Cole
Sent: Thursday, June 1, 2023 2:58 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Assembler theology question
No. I left the comma out intentionally
@LISTSERV.UGA.EDU]
on behalf of David Cole [dbc...@colesoft.com]
Sent: Thursday, June 1, 2023 1:49 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Assembler theology question
WRT:
L R10,PSATOLD-PSA(,R9)Get current TCB
L R9,TCBJSCB-TCB(,R1) Get JSCB
In the specific case
: Thursday, June 1, 2023 11:24 AM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Assembler theology question
We've all seen (and written!) code like this:
USING PSA,R9
L R10,PSATOLD Get current TCB
DROP R9
USING TCB,R10
L R9,TCBJSCB
On 6/1/2023 9:24 AM, Phil Smith III wrote:
Thoughts? (Yes, I *said* it was theology, so I'm prepared for religious
arguments!)
The latter seems great when the field names are super short like
PSATOLD-PSA or TCBJSCB-TCB as in your example.
Modern control block field names are often much,
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Re: Assembler theology question
WRT:
L R10,PSATOLD-PSA(,R9)Get current TCB
L R9,TCBJSCB-TCB(,R1) Get JSCB
In the specific case of the PSA, there is no need to load a base register.
Also, I probably wouldn't bother
[ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Phil Smith III
[li...@akphs.com]
Sent: Thursday, June 1, 2023 12:24 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Assembler theology question
We've all seen (and written!) code like this:
USING PSA,R9
L R10,PSATOLD G
On 6/1/23 12:24, Phil Smith III wrote:
We've all seen (and written!) code like this:
USING PSA,R9
L R10,PSATOLD Get current TCB
DROP R9
USING TCB,R10
L R9,TCBJSCB Get JSCB
DROP R10
I've also
[ASSEMBLER-LIST@LISTSERV.UGA.EDU] on behalf of Phil Smith III
[li...@akphs.com]
Sent: Thursday, June 1, 2023 12:24 PM
To: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Subject: Assembler theology question
We've all seen (and written!) code like this:
USING PSA,R9
L R10,PSATOLD G
theology question
We've all seen (and written!) code like this:
USING PSA,R9
L R10,PSATOLD Get current TCB
DROP R9
USING TCB,R10
L R9,TCBJSCB Get JSCB
DROP R10
I've also seen (and probably written
I too do both, depending on the situation.
-Oprindelig meddelelse-
Fra: IBM Mainframe Assembler List På vegne af
John McKown
Sendt: 1. juni 2023 18:31
Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU
Emne: Re: Assembler theology question
I do both. I have the USING when I either want multiple
In this specific case (and others like it), I'd probably use the latter
case as well (although I have done both). However, even for just a line or
two, I much prefer using the former syntax (I also tend to use R14, R15 to
traverse control blocks until I get to the end).
Then again, I'm not sure
The second method is better; it's shorter (no USINGs). Simpler is better.
Mike Shaw
MVS/QuickRef Support Group
Chicago-Soft, Ltd.
On Thu, Jun 1, 2023 at 12:24 PM Phil Smith III wrote:
> We've all seen (and written!) code like this:
> USING PSA,R9
> L R10,PSATOLD
I do both. I have the USING when I either want multiple fields from the
same DSECT or I want to reference the same field(s) multiple times rather
than storing them myself somewhere. This latter is mainly when I am writing
"pure" code, such as in LPA and am short on dynamic storage.
On Thu, Jun 1,
We've all seen (and written!) code like this:
USING PSA,R9
L R10,PSATOLD Get current TCB
DROP R9
USING TCB,R10
L R9,TCBJSCB Get JSCB
DROP R10
I've also seen (and probably
20 matches
Mail list logo