Remain; Renum - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

REMAIN
REM A I N ( <timer number> )
10 AFTER 500,1 GOSUB 40
20 AFTER 100,2 GOSUB 50
30 PRINT "program running":GOTO 30
40 REM this GOSUB-routine will not be called
as it is disabled in line 80.
50 PRINT:PRINT "Timer 1 will now be
If;
60 PRINT "disabled by REMAIN."
70 PRINT "Time-units remaining were:";
80 PRINT REMAIN(1)
run
FUNCTION: Returns the REM A I Ning count from the delay timer specified in <timer
number> (in the range 0 to 3), and disables it.
Further information concerning interrupts will be found in part 2 of the chapter
entitled 'At your leisure .... '.
Associated keywords: AFT ER, D I, El, EVE R Y
RENUM
RE NUM [<new line number>][, [<old line number>][, <increment>]]
10 CLS
20 REM this will be line 123
30 REM this will be line 124
40 REM this will be line 125
RENUM 123,20,1
LIST
COMMAND: RE NUMbers program lines.
The parameter <old line number> specifies the current existing line number at which
renumbering is to commence. If <old line number> is omitted, renumbering will
commenr.p from the beginning of the program.
The parameter <new line number> specifies the new starting line number for the
renumbered lines. If <new line number> is omitted, the renumbered program will
start at line 1
0.
The parameter <increment> specifies the numeric step between each of the
renumbered lines. If <increment> is omitted, the value ofthe numeric step will be 1
0.
RE NUM takes care of all GO SUB, GOT 0 and other line calls. However, line number
references within string expressions, such as those issued in KEY commands, are not
altered; neither are line refere,nces within REM statements, nor the <line number
expression> in a C H A I N or C H A I N MER G E command.
Line numbers are valid in the range 1 to 6 5 5 3 5.
Associated keywords: DEL E T E, LIS T
Chapter 3 Page 66
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents