beautypg.com

Rpbasic-52 programming guide, Stop – Remote Processing BASIC 52 User Manual

Page 121

background image

RPBASIC-52 PROGRAMMING GUIDE

2-102

STOP

Syntax:

S T O P

Function:

Breaks program execution; resume with the CONT comm and.

Mode:

Run

Use:

S T O P

Cards:

All

D E S C R IP T I ON

The STOP instruction lets you break program execution at specific locations in a program. You can display
a n d m od i fy v a ri a bl e s a f te r S TO P p i ng a p ro g ra m . ST O P i s u s e fu l fo r pr o gr a m de b u gg i ng . Th e C O N T
command lets you resume program execution.

The line number printed after execution of a STOP instruction is the line number following the instruction
and not the line number containing the STOP instruction.

If you modify a STOPped program, CONT will be unable to continue execution.

RELATED

CONT, GOTO

E R R O R

C A N ' T C O N T IN U E A t t em p t to c o nt i nu e a ft e r e d it i ng a st o pp e d pr o gr a m , o r at t em p t to e x ec u te C O N T

without a prior STOP or .

EXAMPLE

100 PRINT "Tick=",TICK(0)
110 STOP
110 GOTO 100

>run

A= 0
STOP - IN LINE 120