From: "Schmitt, Michael" <michael.schm...@dxc.com>
Sent: Thursday, March 11, 2021 10:26 AM


I was taught long ago to add 1 to a register using LA r#,1(,r#) and to subtract 
1 using BCTR r#,0.

Is the fastest way now to use AHI r#,1 and AHI r#,-1?

LA and BCTR are good when you don't want to change the CC.
BCTR R,0 is specially good because it needs only 2 bytes.
LA is good fir small values.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to