Denso RC5 Specifications Page 261

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 260
Chapter 11 Flow Control Statements
11-11
EXIT DO (Statement)
Function
Forcibly exits from DO-LOOP.
Format
EXIT DO
Explanation
This statement forcibly exits from DO-LOOP and proceeds to the next
instruction of a DO-LOOP statement.
Related Terms
DO-LOOP
Example
DEFINT li1, li2, li3, li4, li5, li6, li7, li8, li9
DO WHILE li1 > li2 'Executes a head decision iteration.
IF li1 = 4 THEN EXIT DO 'Escapes from DO-LOOP if li1 = 4.
FORli3=0TO5 'Repeats the process of FOR-NEXT 5 times.
FOR li4 = li5 TO li6 '
Repeats the process of FOR-NEXT by adding 1 to the value of li5
'
every
time the repetition is done until li5 becomes a value
'
of li6.
FORli7=1TOli8STEP 2 'Repeats the process of FOR-NEXT by adding 2 to a
value
'
every time the repetition is done from 1 until it becomes li8.
IF li2 = 2 THEN EXIT FOR 'Escapes from FOR-NEXT if li2 < 0.
DO WHILE li2 < li9 'Executes a head decision iteration.
GOSUB *samp2
li9=li9+1
LOOP 'Calls a GOSUB *samp2 statement until li2 < li9.
NEXT li7 'Repeats.
NEXT 'Repeats.
NEXT 'Repeats.
li9=0
DO 'Executes a tail decision iteration.
GOSUB *samp2
li9=li9+1
LOOP UNTIL li9 < 5 'Calls a GOSUB *samp2 statement until li9 < 5.
LOOP 'Repeats.
Page view 260
1 2 ... 256 257 258 259 260 261 262 263 264 265 266 ... 691 692

Comments to this Manuals

No comments