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 <[email protected]> On Behalf Of Charles Mills Sent: Friday, March 29, 2024 14:27 To: [email protected] Subject: Re: Complex immediate fields What about (untested) ShiftLeft24 EQU x'1000000' LFI R15,X'40'*ShiftLeft24 Charles -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of Seymour J Metz Sent: Friday, March 29, 2024 9:57 AM To: [email protected] Subject: Complex immediate fields Back in he Assembler XF era I would code something like LA R0,L'DEST LA R1,DEST XR R15,R15 ICM R15,8,=C' ' MVCL R0,R14 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'40000000' 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? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 עַם יִשְׂרָאֵל חַי נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
