I like it... MVHHI STRGLEN,0 ZERO USED STRING LENGTH COUNTER
Worked fine under 21CS VSEn 6.3 in my TEST environment. At first I was worried my HLASM might not accept it in my old IBM z/VSE production environment -- which is about 12 years out of date. But it worked fine. Thanks, Dave Clark -- int.ext: 91078 direct: (937) 531-6378 home: (937) 751-3300 Winsupply Group Services 3110 Kettering Boulevard Dayton, Ohio 45439 USA (937) 294-5331 On Mon, Feb 9, 2026 at 1:56 PM Mark < [email protected]> wrote: > MVHHI STRGLEN,0? > Mark > (sent from my iPhone) > > > On Feb 9, 2026, at 12:48, David Clark <[email protected]> wrote: > > > > If a half-word counter has to be in storage (to save on registers) and > must > > start at zero, which is better or which would you prefer to do as a best > > practice? > > > > ...simply clear storage? > > > > XC STRGLEN,STRGLEN FOR USED STRING LENGTH COUNTER > > > > ...or clear a register and save to storage? > > > > XR R5,R5 STARTING AT ZERO > > STH R5,STRGLEN SET USED STRING LENGTH COUNTER > > > > ...or use an immediate value and save to storage? > > > > LHI R5,0 STARTING AT ZERO > > STH R5,STRGLEN SET USED STRING LENGTH COUNTER > > > > Sincerely, > > > > Dave Clark > > -- > > int.ext: 91078 > > direct: (937) 531-6378 > > home: (937) 751-3300 > > > > Winsupply Group Services > > 3110 Kettering Boulevard > > Dayton, Ohio 45439 USA > > (937) 294-5331 >
