CHAIN
CHAIN MERGE
CHAIN <file name>[, <line number expression>]
CHAIN MERGE <file name>[,<line number expression>]
[, DELETE <line number range>]
CHAIN “TEST”, 350
COMMAND: CHAIN loads a program from cassette into the memory; replacing the existing
program. CHAIN MERGE merges a program from cassette into the current program memory. It
adds the contents of a file to the current program in memory. The <line number expression>,
indicates the line number from which execution is to begin once the new program is chain merged. In
the absence of <line number expression>, BASIC will default to the lowest line number available.
If no file name is stated, then BASIC will attempt to merge the first valid file en countered on tape.
If the first character of the filename is a ! , then it is removed from the filename, and suppresses the
usual messages generated by the cassette reading process.
CHAIN MERGE retains all current variables although User Functions and open files are discarded.
ON ERROR GOTO is turned off, a RESTORE is implemented and the DEFINT, DEFREAL &
DEFSTR settings are reset, and all active FOR WHILE and GOSUB commands are forgotten.
Protected files will not merge.
Associated keywords: LOAD, MERGE
CHR$
CHR$ (<integer expression>)
PRINT CHR$(100)
d
FUNCTION: Converts a numeric value to its character equivalent, (using the AMSTRAD CPC464
character set in Appendix III)
Associated keywords: ASC, LEFT$, RIGHT$, MID$, STR$
CINT
CINT (<numeric expression>)
10 n=578.76543
20 PRINT CINT(n)
RUN
579
FUNCTION: Converts the given value to a rounded integer in the range -32768...32767.
Associated keywords: CREAL, INT, FIX, ROUND, UNT