Re: ASMA057E Undefined operation code SR 15,15

2023-11-16 Thread Mark Boonie
age- > From: IBM Mainframe Assembler List On > Behalf Of Peter Relson > Sent: Thursday, November 16, 2023 10:08 AM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: [EXTERNAL] Re: ASMA057E Undefined operation code SR 15,15 > > Everyone came up with the right alternat

Re: ASMA057E Undefined operation code SR 15,15

2023-11-16 Thread Seymour J Metz
of Peter Relson Sent: Thursday, November 16, 2023 10:07 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: ASMA057E Undefined operation code SR 15,15 Everyone came up with the right alternatives. Among XR, SLR, and SR, XR is thought best (not necessarily measurable better). If you don't need

Re: ASMA057E Undefined operation code SR 15,15

2023-11-16 Thread Peter Relson
Everyone came up with the right alternatives. Among XR, SLR, and SR, XR is thought best (not necessarily measurable better). If you don't need a condition code (and certainly if you need to preserve a condition code), LHI is thought best. I'm not sure to what extent the fact that the first

Re: ASMA057E Undefined operation code SR 15,15

2023-11-16 Thread João Reginato
very well explained. thanks Em qua., 15 de nov. de 2023 às 12:08, Jonathan Scott < jonathan_sc...@vnet.ibm.com> escreveu: > I doubt whether there is much difference between methods of > zeroing a register now. I would assume that if you want the > condition code preserved, LHI is best,

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Paul Gilmartin
On 11/15/23 06:39:33, Peter Relson wrote: This was a very lengthy thread in which the OP multiple times ignored those who correctly provided what was needed. I don't know why the OP would not simply take the advice and proceed. . I suspect the OP supplied a distilled test case which did not

SV: Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Willy Jensen
af Bill Hitefield Sendt: 15. november 2023 16:27 Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR 15,15 Peter, I got the impression the OP desired to have a single LCLC variable containing both the opcode and the operands. When the examples with multiple LCLC

SV: Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Willy Jensen
M > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Re: ASMA057E Undefined operation code SR 15,15 > > This was a very lengthy thread in which the OP multiple times ignored > those who correctly provided what was needed. I don't know why the OP > would not simply take the advice and p

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Bill Hitefield
LER-LIST@LISTSERV.UGA.EDU > Subject: Re: ASMA057E Undefined operation code SR 15,15 > > This was a very lengthy thread in which the OP multiple times ignored those > who correctly provided what was needed. I don't know why the OP would not > simply take the advice and proceed. >

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Jonathan Scott
I doubt whether there is much difference between methods of zeroing a register now. I would assume that if you want the condition code preserved, LHI is best, otherwise use XR, but SR on modern hardware probably takes the same time as XR anyway. I would expect current hardware to detect XR with

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Mark
_ > From: IBM Mainframe Assembler List on > behalf of João Reginato > Sent: Wednesday, November 15, 2023 8:44 AM > To: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Subject: Re: ASMA057E Undefined operation code SR 15,15 > > so, changing the subject, tell us, what is the b

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Seymour J Metz
Sent: Wednesday, November 15, 2023 8:44 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: ASMA057E Undefined operation code SR 15,15 so, changing the subject, tell us, what is the best choice for zeroing a register? xr, la, or the 3rd one? Em qua., 15 de nov. de 2023 às 10:39, Peter Relson

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Ituriel do Neto
Probably LHI Best Regards Ituriel do Nascimento Neto z/OS System Programmer Em quarta-feira, 15 de novembro de 2023 às 10:45:00 BRT, João Reginato escreveu: so, changing the subject, tell us, what is the best choice for zeroing a register? xr, la, or the 3rd one? Em qua., 15 de

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread João Reginato
so, changing the subject, tell us, what is the best choice for zeroing a register? xr, la, or the 3rd one? Em qua., 15 de nov. de 2023 às 10:39, Peter Relson escreveu: > This was a very lengthy thread in which the OP multiple times ignored > those who correctly provided what was needed. I don't

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Peter Relson
This was a very lengthy thread in which the OP multiple times ignored those who correctly provided what was needed. I don't know why the OP would not simply take the advice and proceed. The error has nothing to do with "label", although the lack of allowing "label" is not typically good. The

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread João Reginato
I`ve appreciated all the messages received. It is now clear to me that it must use separated SETCs: label, opcode, arguments and comments. Thank you all for the help. best regards João Em qua., 15 de nov. de 2023 às 06:42, Binyamin Dissen < bdis...@dissensoftware.com> escreveu: > On Wed, 15 Nov

Re: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Binyamin Dissen
On Wed, 15 Nov 2023 03:39:00 -0500 John Dravnieks wrote: :>The conditional assembly language is very simplistic and one aspect is that it does NOT rescan. So if you code a SETC variable in a model statement as the opcode, then that is what it will expect in that variable - just the opcode.

Re: SV: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Jonathan Scott
See the reference manual topic "Model statements" and the following subtopics for how it works: https://www.ibm.com/docs/en/hla-and-tf/1.6?topic=definitions-model-statements Any model statement will initially be interpreted like a a macro call, with any name field, operation code, operand fields

Re: SV: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Rene BRANDT
sorry it is not the variable but the content of the variable which is invalid. Without the dot on line 6 between (1) and (2) this version of Paul(i think) works: MACRO ZERO LCLC (2) (1) SETC 'SR ' (2) SETC ' ,' (1) (2) MEND XYZ CSECT ABC ZERO 15 END Le mercredi 15 novembre 2023 à

Re: SV: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Rene BRANDT
Hi, The problem is due tu use a variable name in the opcode in the macro definition. Rene

Re: SV: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread John Dravnieks
The conditional assembly language is very simplistic and one aspect is that it does NOT rescan. So if you code a SETC variable in a model statement as the opcode, then that is what it will expect in that variable - just the opcode. If you have extra data in the SETC value - as in this case

SV: ASMA057E Undefined operation code SR 15,15

2023-11-15 Thread Willy Jensen
: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR 15,15 yes, it worked too, but I still can't understand why. Maybe a bug? Em ter., 14 de nov. de 2023 às 18:31, Willy Jensen < willy.h.jen...@outlook.com> escreveu: > You still have one veriable set to 2 c

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Binyamin Dissen
g meddelelse- :>> Fra: IBM Mainframe Assembler List På :>> vegne af João Reginato :>> Sendt: 14. november 2023 22:16 :>> Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU :>> Emne: Re: ASMA057E Undefined operation code SR 15,15 :>> :>> without the SETC it wo

Re: SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Steve Thompson
. november 2023 23:18 Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR 15,15 Looks like it is taking 'SR' as a label and '1,15' as an op ode. Michael At 02:28 PM 11/14/2023, João Reginato wrote: hi I can't see the error on this simple code. Can anyone help me pls? TIA

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Jon Perryman
On Tue, 14 Nov 2023 18:27:16 -0300, João Reginato wrote: >** ASMA057E Undefined operation code - 6/SR 15,15 The message shows you exactly what is the problem. There is no opcode "SR 15,15". The assembler thinks " 15,15" is part of the instruction. Assembler tokenization and macro

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Michael Oujesky
r List Pý ¥ > vegne af João Reginato > Sendt: 14. november 2023 22:27 > Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Emne: Re: ASMA057E Undefined operation code SR 15,15 > > sublisted the same: > > Loc Object CodeAddr1 Addr2 Stmt Source Statement >

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
operation code SR 15,15 Looks like it is taking 'SR' as a label and '1,15' as an op ode. Michael At 02:28 PM 11/14/2023, João Reginato wrote: >hi >I can't see the error on this simple code. >Can anyone help me pls? > >TIA >João Reginato >(+55 61) 9911-55500 > > Ac

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Michael Oujesky
Looks like it is taking 'SR' as a label and '1,15' as an op ode. Michael At 02:28 PM 11/14/2023, João Reginato wrote: hi I can't see the error on this simple code. Can anyone help me pls? TIA João Reginato (+55 61) 9911-55500 Active Usings: None Loc Object CodeAddr1 Addr2 Stmt

Re: SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
On 11/14/23 14:44:48, Willy Jensen wrote: I have sometimes used global variables with a recursive call to simulate a macro subroutine to validate and set variables. . I doubt that's the simplification the OP is seeking. -Oprindelig meddelelse- Fra: IBM Mainframe Assembler List João

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
: ASMA057E Undefined operation code SR 15,15 No, your code uses one setc containing the entire 2nd part 'reg,reg', where mine uses one variable just for the reg and then the macro uses that var twice , Can't remember seeing it documented, but that is how I experience it. -Oprindelig meddelelse

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
På vegne af João Reginato Sendt: 14. november 2023 22:37 Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR 15,15 yes, it worked too, but I still can't understand why. Maybe a bug? Em ter., 14 de nov. de 2023 às 18:31, Willy Jensen < willy.h.jen...@outlook.

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
lclc (2) > (1)setc 'SR' > (2)setc '' > (1) (2),(2) > Mend > > -Oprindelig meddelelse- > Fra: IBM Mainframe Assembler List På > vegne af João Reginato > Sendt: 14. november 2023 22:27 > Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Mark Hammack
n Tue, Nov 14, 2023 at 3:20 PM Willy Jensen > > > wrote: > > > > > Would a sublisted SETC do, where P(1) is the instruction and P(2) is > the > > > register? > > > > > > -Oprindelig meddelelse- > > > Fra: IBM Mainframe Assembler L

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
Mainframe Assembler List På vegne af João Reginato Sendt: 14. november 2023 22:27 Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR 15,15 sublisted the same: Loc Object CodeAddr1 Addr2 Stmt Source Statement HLASM R6.0 2023/11/14 18.26

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
> Fra: IBM Mainframe Assembler List På > > vegne af João Reginato > > Sendt: 14. november 2023 22:16 > > Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU > > Emne: Re: ASMA057E Undefined operation code SR 15,15 > > > > without the SETC it works but I need it to simplify the l

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
On 11/14/23 14:16:22, João Reginato wrote: without the SETC it works but I need it to simplify the logic of a bigger macro. . Please post an example of "a bigger macro" with an explanation of how the SEtC simplifies it. If it doesn't work, simpler is *not* better. -- gil

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
gt; Would a sublisted SETC do, where P(1) is the instruction and P(2) is the >> register? >> >> -Oprindelig meddelelse- >> Fra: IBM Mainframe Assembler List På >> vegne af João Reginato >> Sendt: 14. november 2023 22:16 >> Til: ASSEMBLER-LIST@LISTSERV

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Mark Hammack
g meddelelse- > Fra: IBM Mainframe Assembler List På > vegne af João Reginato > Sendt: 14. november 2023 22:16 > Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Emne: Re: ASMA057E Undefined operation code SR 15,15 > > without the SETC it works but I need it to simplify the logi

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
22:16 > Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU > Emne: Re: ASMA057E Undefined operation code SR 15,15 > > without the SETC it works but I need it to simplify the logic of a bigger > macro. > . > João Reginato > (61) 9911-55500 > > > Em ter., 14 de nov. de 2

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
Would a sublisted SETC do, where P(1) is the instruction and P(2) is the register? -Oprindelig meddelelse- Fra: IBM Mainframe Assembler List På vegne af João Reginato Sendt: 14. november 2023 22:16 Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
the logic is very complicated and full of AIFs. So, to simplify and not repeat the same AIFs, the SETC sets the later instruction to be used at the end of the macro call. João Reginato (61) 9911-55500 Em ter., 14 de nov. de 2023 às 18:16, João Reginato escreveu: > without the SETC it works

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
without the SETC it works but I need it to simplify the logic of a bigger macro. . João Reginato (61) 9911-55500 Em ter., 14 de nov. de 2023 às 18:08, Paul Gilmartin < 0014e0e4a59b-dmarc-requ...@listserv.uga.edu> escreveu: > On 11/14/23 13:58:30, João Reginato wrote: > > Gil > > > > I know

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
How do you need that SETC? An explanation might help us suggest something. -Oprindelig meddelelse- Fra: IBM Mainframe Assembler List På vegne af Paul Gilmartin Sendt: 14. november 2023 22:07 Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR 15,15 On 11

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
On 11/14/23 13:58:30, João Reginato wrote: Gil I know it works in the way you've proposed but I need to use the SETC in a very bigger macro. . Please post an example showing the failure without the SETC. Would it be better to have two separate MACROs, one of which calls the other? Em ter.,

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
Willy I need the SETC João Reginato (61) 9911-55500 Em ter., 14 de nov. de 2023 às 18:02, João Reginato escreveu: > Lloyd > I've already sent a try with a label and the same error occurred > > João Reginato > (61) 9911-55500 > > > Em ter., 14 de nov. de 2023 às 17:58, João Reginato >

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
Lloyd I've already sent a try with a label and the same error occurred João Reginato (61) 9911-55500 Em ter., 14 de nov. de 2023 às 17:58, João Reginato escreveu: > Gil > > I know it works in the way you've proposed but I need to use the SETC in a > very bigger macro. > > João Reginato > (61)

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
@LISTSERV.UGA.EDU Emne: SV: ASMA057E Undefined operation code SR 15,15 I'm pretty sure that you cannot have a variable for the entire expression, you need one for each part. So one for the instruction and another for the register. As someone mentioned SR , -Oprindelig meddelelse- Fra: IBM Mainframe

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
Gil I know it works in the way you've proposed but I need to use the SETC in a very bigger macro. João Reginato (61) 9911-55500 Em ter., 14 de nov. de 2023 às 17:49, João Reginato escreveu: > now with LCLC and CSECT. Same error > > João Reginato > (61) 9911-55500 > > Symbol Type Id

SV: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Willy Jensen
. november 2023 21:49 Til: ASSEMBLER-LIST@LISTSERV.UGA.EDU Emne: Re: ASMA057E Undefined operation code SR 15,15 now with LCLC and CSECT. Same error João Reginato (61) 9911-55500 Symbol Type Id Address Length Owner Id Flags Alias-of HLASM R6.0 2023/11/14 17.46 XYZ SD

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Lloyd Fuller
Try adding some blanks in front of your ‘SR…’ of the SETC. I think the SR is being read as the label and the ,7N as the oppose. Lloyd Sent from AT Yahoo Mail for iPad On Tuesday, November 14, 2023, 3:49 PM, João Reginato wrote: now with LCLC and CSECT. Same error João Reginato (61)

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
now I've added a label. Still the same error João Reginato (61) 9911-55500 Symbol Type Id Address Length Owner Id Flags Alias-of HLASM R6.0 2023/11/14 17.50 XYZ SD 0001 00 Page3

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
now with LCLC and CSECT. Same error João Reginato (61) 9911-55500 Symbol Type Id Address Length Owner Id Flags Alias-of HLASM R6.0 2023/11/14 17.46 XYZ SD 0001 00 Page3 Active

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Paul Gilmartin
On 11/14/23 13:28:09, João Reginato wrote: hi I can't see the error on this simple code. Can anyone help me pls? TIA João Reginato (+55 61) 9911-55500 Active Usings: None Loc Object CodeAddr1 Addr2 Stmt Source Statement HLASM R6.0 2023/11/14 16.58

Re: ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread Mark Hammack
I've always had a LCLC in my macros. Never tried it without. *Mark* On Tue, Nov 14, 2023 at 2:28 PM João Reginato wrote: > hi > I can't see the error on this simple code. > Can anyone help me pls? > > TIA > João Reginato > (+55 61) 9911-55500 > > > Active Usings: None > > Loc Object

ASMA057E Undefined operation code SR 15,15

2023-11-14 Thread João Reginato
hi I can't see the error on this simple code. Can anyone help me pls? TIA João Reginato (+55 61) 9911-55500 Active Usings: None Loc Object CodeAddr1 Addr2 Stmt Source Statement HLASM R6.0 2023/11/14 16.58 1 MACRO