SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
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.