SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
Loop control registers are accessed via the MVC/MVCH instructions like any other control registers.
To simplify and optimize loop setup in the most frequent compiler generated use cases, a separate instruction called set loop address (SLAucst16, creg) is provided. The SLA instruction takes a PC-relative immediate positive halfword offset (ucst16) and writes the byte address of the location indicated by the PC + ucst16 value to the LSAn and LEAn registers.
Loop setup occurs in the following order:
HLA is not assured to work if the above order is not maintained.