Re: Complex immediate fields

2024-04-27 Thread Ed Jaffe
On 4/18/2024 12:45 PM, Ngan, Robert (DXC Luxoft) wrote: Assuming you have an assembly listing, you just need to look at the "R-Loc" (i.e. offset) value. We use two LOCTR's for data, one for data that needs to be within 4K of the base register, and another for data referenced with relative

Re: Complex immediate fields

2024-04-18 Thread Ngan, Robert (DXC Luxoft)
ingle base register will handle both LOCTR's. Robert Ngan DXC/Luxoft -Original Message- From: IBM Mainframe Assembler List On Behalf Of Paul Gilmartin Sent: Monday, April 15, 2024 22:07 To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields On 4/15/24 20:31:33, Seym

Re: Complex immediate fields

2024-04-17 Thread Peter Relson
Gil asked Are instruction pages REFReshable? z/OS does not refresh anything (be that instruction or data), whether the module is identified as refreshable or not. The only thing z/OS now pays attention to with respect to the refreshable option relates to the REFRPROT option, for which the

Re: Complex immediate fields

2024-04-15 Thread Paul Gilmartin
On 4/15/24 20:31:33, Seymour J Metz wrote: Expect a performance hit if you modify instructions. I like to use LOCTR to keep data physically remote but visually near the instructions that use them. . LOCTR is a boon for reading source. Perhaps less so for reading dumps. Are any symbolic

Re: Complex immediate fields

2024-04-15 Thread Seymour J Metz
From: IBM Mainframe Assembler List on behalf of Gary Weinhold Sent: Monday, April 15, 2024 2:06 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields From a performance and sometimes readability point of view, having constants (whether instructions or operands

Re: Complex immediate fields

2024-04-15 Thread Seymour J Metz
>-Original Message- >From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On >Behalf Of Jon Perryman >Sent: Sunday, April 14, 2024 11:09 PM >To: ASSEMBLER-LIST@LISTSERV.UGA.EDU >Subject: Re: Complex immediate fields > >> On current hardware there

Re: Complex immediate fields

2024-04-15 Thread Tony Thigpen
MBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields On current hardware there is an IILF (LFI) instruction, and I would like to use it instead of the XR/ICM sequence. Before using any modern instructions, ask yourself if they are worth the risk. Does your disaster recovery site

Re: Complex immediate fields

2024-04-15 Thread Tom Marchant
-- >From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On >Behalf Of Jon Perryman >Sent: Sunday, April 14, 2024 11:09 PM >To: ASSEMBLER-LIST@LISTSERV.UGA.EDU >Subject: Re: Complex immediate fields > >> On current hardware there is an IILF (LFI) instruction

Re: Complex immediate fields

2024-04-15 Thread Gary Weinhold
fy us by reply mail or telephone and delete the original message from your mail system. From: IBM Mainframe Assembler List on behalf of Paul Gilmartin <0014e0e4a59b-dmarc-requ...@listserv.uga.edu> Sent: April 15, 2024 13:37 To: ASSEMBLER-LIST@LISTSERV.UGA.ED

Re: Complex immediate fields

2024-04-15 Thread Paul Gilmartin
On 4/15/24 10:09:06, Charles Mills wrote: ... And I would never, ever embed data in the instruction stream. . I.e. no parameters following the CALL-type instruction? Don't some library macros (still) do this, bypassing with a relative (ugh!) branch instruction? Are instruction pages

Re: Complex immediate fields

2024-04-15 Thread Charles Mills
ion stream. Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Jon Perryman Sent: Sunday, April 14, 2024 11:09 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields > On current hardware there is

Re: Complex immediate fields

2024-04-15 Thread Jon Perryman
> On current hardware there is an IILF (LFI) instruction, and I would like to >> use it instead of the XR/ICM sequence. Before using any modern instructions, ask yourself if they are worth the risk. Does your disaster recovery site guarantee this as a minimum machine level. Maybe your employer

Re: Complex immediate fields

2024-03-30 Thread Jonathan Scott
> On current hardware there is an IILF (LFI) instruction, and I would like to > use it instead of the XR/ICM sequence. I consider > > LFI R15,X'4000' > > to be ugly, and would like to be able to either use an immediate field > combing CL1 and XL3 pieces or to refer to an EQU

Re: Complex immediate fields

2024-03-29 Thread Roger Bolan
When I compose a reply in Gmail, I have a fixed width font option. Does it come through below? (It would be really swell if the Assembler List knew about a fixed-width font for such examples.) LISTUSE MAIN ESD=0001 LOC= LEN=01000 REG=F OFF=0 LAB= 00

Re: Complex immediate fields

2024-03-29 Thread Mike Shaw
Wow. Truly impressive. Mike Shaw MVS/QuickRef Support Group Chicago-Soft, Ltd. On Fri, Mar 29, 2024, 7:48 PM Ngan, Robert (DXC Luxoft) wrote: > When I first saw "Complex immediate fields", I thought of this code one of > our emulation macros used to generate: > > CGIJL

Re: Complex immediate fields

2024-03-29 Thread Ngan, Robert (DXC Luxoft)
When I first saw "Complex immediate fields", I thought of this code one of our emulation macros used to generate: CGIJL R01,132-(L'BKwa_Module+1+L'BK_LPAOS+1),BK250 + CGHI R01,(1-132-(L'BKwa_Module+1+L'BK_LPAOS+1))-((132-(L'X +

Re: Complex immediate fields

2024-03-29 Thread Dan Greiner
The example I illustrated with the macro does not appear to have the overflow issue that Robert mentions ... at least, not with the z390 assembler. A slightly modified example (with LHI instead of LA) follows: Assembler Listing 00(1/1)1 MACRO

Re: Complex immediate fields

2024-03-29 Thread Dan Greiner
The example I illustrated with the macro does not appear to have the overflow issue that Robert mentions ... at least, not with the z390 assembler: Assembler Listing 00(1/1)1 MACRO 00(1/2)2

Re: Complex immediate fields

2024-03-29 Thread Charles Mills
ubject: Re: Complex immediate fields I'll have to try that once I get my userid back. -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר From: IBM Mainframe Assembler List on behalf of Charles

Re: Complex immediate fields

2024-03-29 Thread Seymour J Metz
:26 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields What about (untested) ShiftLeft24 EQU x'100' LFI R15,X'40'*ShiftLeft24 Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Seymour

Re: Complex immediate fields

2024-03-29 Thread Seymour J Metz
@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields Seymour, You usage of the even/odd R0/R1 pair appears to be reversed (unless you intended to zero some memory at whatever location L'DEST resolves to ... not to worry, it happens to dyslexic programmers like me all the time). I don't know of any means

Re: Complex immediate fields

2024-03-29 Thread Seymour J Metz
Mainframe Assembler List on behalf of Paul Gilmartin <0014e0e4a59b-dmarc-requ...@listserv.uga.edu> Sent: Friday, March 29, 2024 1:15 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields On 3/29/24 10:56:49, Seymour J Metz wrote: > Ba... I consider > >

Re: Complex immediate fields

2024-03-29 Thread Seymour J Metz
Harper <16c16a7381bc-dmarc-requ...@listserv.uga.edu> Sent: Friday, March 29, 2024 1:12 PM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex immediate fields Seymour, How about this: LLILH R15,X’4000’ Tom Harper Phoenix Software International Sent from my iPhone > On Mar

Re: Complex immediate fields

2024-03-29 Thread Ngan, Robert (DXC Luxoft)
That fails with an arithmetic overflow if the byte value has the high order bit set. Robert Ngan DXC Luxoft -Original Message- From: IBM Mainframe Assembler List On Behalf Of Charles Mills Sent: Friday, March 29, 2024 14:27 To: ASSEMBLER-LIST@LISTSERV.UGA.EDU Subject: Re: Complex

Re: Complex immediate fields

2024-03-29 Thread Charles Mills
What about (untested) ShiftLeft24 EQU x'100' LFI R15,X'40'*ShiftLeft24 Charles -Original Message- From: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] On Behalf Of Seymour J Metz Sent: Friday, March 29, 2024 9:57 AM To: ASSEMBLER-LIST@LISTSERV.UGA.EDU

Re: Complex immediate fields

2024-03-29 Thread Dan Greiner
How about if you define the immediate field by simply multiplying the fill character by 16 megs? Assuming that the destination symbol has an implicit length, you could encapsulate this into a macro with just the destination and fill character as operands: MACRO WIPE ,

Re: Complex immediate fields

2024-03-29 Thread Paul Gilmartin
On 3/29/24 10:56:49, Seymour J Metz wrote: Ba... I consider LFI R15,X'4000' to be ugly, and would like to be able to either use an immediate field combing CL1 and XL3 pieces or to refer to an EQU defining that combination. Is there any way to do that in HLASM? Is LOCTR any

Re: Complex immediate fields

2024-03-29 Thread Tom Harper
Seymour, How about this: LLILH R15,X’4000’ Tom Harper Phoenix Software International Sent from my iPhone > On Mar 29, 2024, at 12:56 PM, Seymour J Metz wrote: > > Back in he Assembler XF era I would code something like > > LAR0,L'DEST > LAR1,DEST > XR

Re: Complex immediate fields

2024-03-29 Thread Dan Greiner
Seymour, You usage of the even/odd R0/R1 pair appears to be reversed (unless you intended to zero some memory at whatever location L'DEST resolves to ... not to worry, it happens to dyslexic programmers like me all the time). I don't know of any means by which you can split the definition of