Chain Merge; Chr$; Cint - AMSTRAD cpc 6128 User Instruction

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

Advertisement

CHAIN MERGE
CH A I N MER G E <illename> [, <line number expression> ]
[, DEL E T E <line number range> ]
CHAIN
ME~GE
"newrun.bas",750,DELETE 400-680
COMMAND: Loads a program from disc, merges it into the current program in the
memory, then commences running the resultant program, either from the beginning,
or from a line specified in the optional <line number expression>. Ifbefore a program is
CH A I N MER G Ed, it is required to delete part ofthe original program, the DEL E T E
<line number range> option may be used.
Note that line numbers in the old program which exist in the new program to be
CH A I N MER G Ed, will be over-written by the new program lines.
Pr Jtected files, (S A V Ed by , p ) can NOT be loaded and run by CH A I N MER G Eing.
Associated keywords: CH A
IN,
DEL E T E, LOA D, MER G E
CHR$
C H R $ ( <integer expression> )
10 FOR x=32 TO 255
20 PRINT x;CHR$(x),
30 NEXT
run
FUNCTION: Converts an <integer expression> in the range 0 to 255, to its CHaRacter
$ tring equivalent, using the AMSTRAD character set shown in part 3 of the chapter
entitled 'For your reference .... '.
Note that 0 to 31 are control characters; hence the above example prints CH R$ (x)
in the range 32 to 255.
Associated keywords: AS C
CINT
C I N T ( <numeric expression> )
10 n=1.9999
20 PRINT CINT(n)
run
2
FUNCTION: Returns the value of the <numeric expression>, Converting it to a
rounded
IN
Tegerin the range -32768 to32767.
Associated keywords: C REA L,
F
I X, I
N
T, R 0
U N
D,
U N
T
Chapter 3 Page 8
Complete List of Keywords

Advertisement

Table of Contents
loading

Table of Contents