endloop - End loop statement

endloop - End loop statement

Calling Format

endloop

Operands

None.

Overview

Specifies the end of a loop control block that was started by the loop instruction.

There must be at least one instruction between loop and endloop.

Operation

for ( int i = 0, aL = src.init ; i < src.count+1 ; i++, aL += src.step )
{
    ...
}

Code Example

defi    i0, 10, 0, 1

loop    i0
    add     r0, r0, c0[ aL ]    // Add the total of c0, c1, ... , c9 to r0
endloop

Revision History

2011/12/20
Initial version.

CONFIDENTIAL