next category previous category
ABS ( numeric expression )
FUNCTION: Returns the absolute value of the given expression -which primarily means that negative numbers are returned as positive.
Associated keywords: SGN
AFTER integer expression [, integer expression)] G0SUB line number.
AFTER 200,2 GOSUB 320
COMMAND: Invoke a subroutine after a given time period has elapsed. The first (integer expression, indicates the period of the delay, in units of l/50 second, and the second (integer expression, (in range 0....3), indicates which of the four available delay timers should be used.
Associated keywords: EVERY , REMAIN
FUNCTION: Gets the numeric value of the first character of a string as long as ASCII characters are used.
Associated keywords: CHR$
FUNCTION: Calculates the arc-tangent (forcing the numeric expression) to a real number ranging from -PI/2 to +PY2) of the value specified.
Associatedkeywords: SIN, COS, TAN, DEG, RAD
AUTO [line number], [increment]
COMMAND: Generate line numbers automatically. The line number, sets the first line to be generated, in case you want to add to the end of an existing program. The value of the 'increment' between line numbers, and the first line number to be generated, both default to 10 if not specified.
Where an existing program line is in danger of being overwritten, BASIC inserts a star * after the line number generated as a warning.
BIN$(unsigned integer expression, [integer expression])
FUNCTION: Produces a string of binary digits that represents the value of the unsigned integer expression, filling with leading zeros to the number of digits instructed by the second Integer expression.
Associated keywords: H E X S , S T R S
BORDER colour [,colour]
COMMAND: To change the colour of the border on the screen. If two colours are specified, the border alternates between the two at the rate determined in the S P E E D I N K command, if given. The range of border colours is 0....26.
Associated keywords: S P E E D I N K
CALL (address expression [, list of parameter]
COMMAND: Allows an externally developed sub-routine to be invoked from BASIC. Use with caution, not a function for the inexperienced to experiment with. The above CALL is relatively harmless, since it waits for the next frame flyback, which is particularly useful for tidying up the movement of characters around the screen when producing animation effects.
Associated keywords: U N T
COMMAND: Causes BASIC to start reading the cassette and to display the names of all files found. This does not affect the program currently in memory, and so may
be used to verify a program that has just been saved before altering the program memory. The Command asks you to play the cassette, and on finding a program responds:
FILENAME BlockNumber F l a g O k
Flags indicate the type of recording made:
$ a BASIC program file
% a Protected BASIC file
* an ASCII text file
& a Binary file
Other characters may occur in this column if the file was not produced by BASIC.
Associated keywords: L 0 A D , R U N , S A V E
Basic [CHAIN] and [CHAIN MERGE]
C HA I N (file name [, line number expression]
C H A I N M E RG E file name [, line number expression]
[, D E L E T E <line number range)]
CHAIN “TEST”, 350
COMMAND: C H A I N loads a program from cassette into the memory; replacing the existing program. C HA I N ME 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 encountered 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
C H A I N M E R G E retains all current variables although User Functions and open files are discarded. ON E R R 0 R G 0 T 0 is turned off, a R E S T 0 R E is implemented
and the DEFINT, DEFREAL & DEFSTR settings are reset, and all active FOR W H I L E and G 0 S U B commands are forgotten. Protected files will not merge.
Associated keywords: L 0 A D , M E R G E
CHR$ ( (integer expression)
FUNCTION: Converts a numeric value to its character equivalent, (using the AMSTRAD CPC 464 character set in Appendix III)
Associatedkeywords: ASC, LEFTS, RIGHTS, MID$, STR$
CINT (numeric expression)
20 PRINT CINT(n)
FUNCTION: Converts the given value to a rounded integer in the range -32768...32767.
Associatedkeywords: CREAL, INT, FIX, ROUND, UNT
C0MMAND : Clears all variables and files.
CLG [masked ink]
COMMAND: To clear the graphics screen.
Associated keywords: C L S , 0 R I G I N
C0MMAND: Close the cassette input file. Commands such as NEW and CHAIN MERGE will abandon any open files.
Associated keywords: 0 P E N I N , C LO S E 0 U T
COMMAND: Close the output cassette file.
Associated keywords: 0 P E N 0 U T , C L 0 S E I N
CPC: Newsgroup: comp.sys.amstrad.8bit
for Schneider/Amstrad CPC, englisch.
mostly, 99 percent) the exchange of the floppy belt is the solution. dimensionses of the belt: 0,6mm x 2,8mm, length 68 until 72mm. available in each electronics or record player store.