Re: Reversed string macro

2020-10-22 Thread robin51
Have you tried MVCIN ? Em qui, 22 de out de 2020 18:08, Steve Smith escreveu: Submitted for your consideration... MACRO #REVSTR SETC DEQUOTE('') SETA DCLEN('') .* SETA .LOOPAIF ( LT 1).DONE SETC ''.''(,1) SETA AGO .LOOP .*

Re: Reversed string macro

2020-10-22 Thread João Reginato
Better could be DCC'' Em qui, 22 de out de 2020 18:08, Steve Smith escreveu: > Submitted for your consideration... > > MACRO >#REVSTR > SETC DEQUOTE('') >SETA DCLEN('') > .* >SETA > .LOOPAIF ( LT 1).DONE > SETC ''.''(,1) >SETA >

Re: Reversed string macro

2020-10-22 Thread zMan
TIL: In a proportional font, an assembler macro looks like modern poetry. On Thu, Oct 22, 2020 at 5:08 PM Steve Smith wrote: > Submitted for your consideration... > > MACRO >#REVSTR > SETC DEQUOTE('') >SETA DCLEN('') > .* >SETA > .LOOPAIF ( LT 1).DONE

Reversed string macro

2020-10-22 Thread Steve Smith
Submitted for your consideration... MACRO #REVSTR SETC DEQUOTE('') SETA DCLEN('') .* SETA .LOOPAIF ( LT 1).DONE SETC ''.''(,1) SETA AGO .LOOP .* .DONEANOP DCC'' EQU *-1, MEND E.G.: 3161 * 3162 #TAG

SV: Conditional MVCL macro?

2020-10-22 Thread Willy Jensen
I know, I did that macro sequence a long time ago and haven't bothered to update it, I consider the probability that you want to copy 256 bytes to be small. But I will revisit the macro now. -Oprindelig meddelelse- Fra: IBM Mainframe Assembler List På vegne af João Reginato Sendt: 22.

RES: Conditional MVCL macro?

2020-10-22 Thread João Reginato
MVC moves up to 256 bytes, not 255 -Mensagem original- De: IBM Mainframe Assembler List Em nome de Robin Vowels Enviada em: quinta-feira, 22 de outubro de 2020 05:03 Para: ASSEMBLER-LIST@LISTSERV.UGA.EDU Assunto: Re: Conditional MVCL macro? - Original Message - From: "Willy

Re: Conditional MVCL macro?

2020-10-22 Thread Paul Gilmartin
On 2020-10-22, at 02:02:56, Robin Vowels wrote: > > You need to test R15 being zero. Subtracting 1 and then doing an EX > is potentially dangerous. > I wonder whether avoiding this hazard was motivation for CMS MDFS and SFS and early MVS RECFM=V prohibiting empty records. -- gil

Re: Conditional MVCL macro?

2020-10-22 Thread Robin Vowels
- Original Message - From: "Willy Jensen" Sent: Wednesday, October 21, 2020 12:04 AM Extract from a larger macro. And no, I was not overly concerned with performance. .* r15 : length .* r14 -> source