intel MCS BASIC-52 — Intel MCS BASIC-52 Versions 1 & 1.1 Operating and Reference Manual PDF

int e l 4.30 DESCRIPTION OF STATEMENTS STATEMENT: STOP MODE: RUN TYPE: CONTROL The STOP statement allows the programmer to break program execution at specific points in a program. After a program is STOPped variables can be displayed and/or modified. Program execution may be resumed with a CONTinue command. The purpose of the STOP statement is to allow for easy program "debugging." More details of the STOP-CONT sequence are covered in the DESCRIPTION OF COM- MAND -- CONT section of this manual. EXAMPLE:

>10 FOR I=1 TO 100 >20 PRINT I >30 STOP >40 NEXT I >RUN 1 STOP - IN LINE 40 READY >CONT 2 Note that the line number printed out after the STOP statement is executed is the line number following the STOP statement, NOT the line number that contains the STOP statement!!! - 65 -