Chain Merge; Cint - AMSTRAD CPC464 User Manual

Cpc464 colour personal computer 64k
Hide thumbs Also See for CPC464:
Table of Contents

Advertisement

CHAIN

CHAIN MERGE

CH A I N < f i l e n a m e > [ , < l i n e n u m b e r e x p r e s s i o n > ]
CH A I N M E R G E < f i l e n a m e > [ , < l i n e n u m b e r e x p r e s s i o n > ]
[ , D E L E T E < l i n e n u m b e r r a n g e > ]
C H A I N " T E S T " , 3 5 0
COMMAND: CHAIN loads a program from cassette into the memory; replacing the existing
program. C H A I N M E R G E 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.
C H A I N M E R G E retains all current variables although User Functions and open files are discarded.
O N E R R O R G O T O is turned off, a R E S T O R E is implemented and the D E F I N T , D E F R E A L &
DEFSTR settings are reset, and all active F O R W H I L E and G O S U B
commands are forgotten.
Protected files will not merge.
Associated keywords: L O A D , M E R G E
CHR$
CHR$ (<i n t e g e r e x p r e s s i o n > )
PRINT CH R $ ( 1 0 0 )
d
FUNCTION: Converts a numeric value to its character equivalent, (using the AMSTRAD CPC464
character set in Appendix III)
Associated keywords: A S C , L E F T $ , R I G H T $ , M I D $ , S T R $

CINT

C I N T ( < n u m e r i c e x p r e s s i o n > )
1 0 n = 5 7 8 . 7 6 5 4 3
2 0 P R I N T C I N T ( n )
RUN
57 9
FUNCTION: Converts the given value to a rounded integer in the range -32768...32767.
Associated keywords: C R E A L , I N T , F I X , R O U N D , U N T

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents