2 x MVI
On 10/02/2026 05:48, David Clark 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