Here is the technical detail regarding the hardware loops. It was intended as a "benchmarking feature"... A working example is attached.
* HARDWARE LOOP REGISTERS:
* LS=Loop start register that holds a "PC" to match indicating start of loop
* LE=Loop end register that holds a PC to match indicating end of loop
* LC=Loop counter register that counts down to zero.
*
* USE:
* Program up the LC, LS, LE using the movts instruction before the hwloops start.
*
* Restrictions (many!!!):
* 1.) No interrupts inside hardware loop (must mask all interrupts)
* 2.) No branching inside hardware loop
* 3.) Start of HW loop must be aligned on word line in memory
* 4.) All instructions in loop need the (.l) notation to specify 32 bit
* instruction.
* 5.) Need .align instruction before last instruction in loop.
AndreasStatistics: Posted by aolofsson — Sun May 12, 2013 2:51 am
]]>