Re: Assembler theology question

2023-06-02 Thread David Cole
] 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

Re: Assembler theology question

2023-06-02 Thread Seymour J Metz
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 >

Re: Assembler theology question

2023-06-02 Thread Steve Smith
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

Re: Assembler theology question

2023-06-02 Thread Peter Relson
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

Re: Assembler theology question

2023-06-01 Thread Phil Smith III
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

Re: Assembler theology question

2023-06-01 Thread Jeremy Nicoll
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

Re: Assembler theology question

2023-06-01 Thread Seymour J Metz
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

Re: Assembler theology question

2023-06-01 Thread David Cole
@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

Re: Assembler theology question

2023-06-01 Thread Schmitt, Michael
: 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

Re: Assembler theology question

2023-06-01 Thread Ed Jaffe
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,

Re: Assembler theology question

2023-06-01 Thread Seymour J Metz
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

Re: Assembler theology question

2023-06-01 Thread David Cole
[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

Re: Assembler theology question

2023-06-01 Thread Rick Troth
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

Re: Assembler theology question

2023-06-01 Thread David Cole
[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

Re: Assembler theology question

2023-06-01 Thread Seymour J Metz
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

SV: Assembler theology question

2023-06-01 Thread Willy Jensen
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

Re: Assembler theology question

2023-06-01 Thread Mark Hammack
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

Re: Assembler theology question

2023-06-01 Thread Mike Shaw
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

Re: Assembler theology question

2023-06-01 Thread John McKown
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,

Assembler theology question

2023-06-01 Thread Phil Smith III
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