Technical data

Result
Loop counter in RLO is set (RLO = 1)
system data word >0:
Loop counter in RLO is cleared (RLO = 0)
system data word = 0:
The other bit and word condition codes are always cleared.
The accumulators are not changed and not evaluated. This means that
they are still available at the beginning of the next loop and do not
need to be set again.
Possible errors
none
Example
For a further example, refer to Section 9.3 "TNW and TNB:
Transferring Memory Fields".
Programming a loop counter:
The required number of loop repetitions is contained in flag word x.
:
Initialize :L KB0
the loop: :L FWx Loop counter
:!=F
:JC =M002
:T RS 62 Transfer loop counter
: to system data word
:
:
"Loop .
program": M001 :
:.
:.
:.
:
Manage loop:
:JU OB162 Loop counter
:JC =M001 If RLO = 1 the
: loop is run
: through again
Further
program M002 : .
:.
:.
:.
OB 160 to 163: Loop Counters
CPU 928B Programming Guide
6 - 52 C79000-B8576-C898-01