AMSTRAD CPC464 User Manual page 175

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

Advertisement

STR$
STR$ (<n u m e r i c e x p r e s s i o n > )
P R I N T S T R $ ( & 7 6 6)
1894
P R I N T S T R $ ( & X 1 0 1 0 1 0 0 )
84
FUNCTION: Converts the numeric expression) to a decimal string representation in the same form
as used in the PRINT command.
Associatedkeywords: VAL, PRINT, VAL, HEX$, BIN$
STRING$
S T R I N G $ ( < i n t e g e r e x p r e s s i o n > , < c h a r a c t e r e x p r e s s i o n > )
P R I N T S T R I N G $ ( & 1 6 , " * " )
* * * * * * * * * * * * * * * * * * * * * *
FUNCTION: Delivers a <string expression> consisting of the specified character repeated a number
of times.
Associated keywords: SPACE$
SYMBOL
S Y M B O L < c h a r a c t e r n u m b e r > , < l i s t o f : < r o w >
5 MODE 2
10 S Y M B O L A F T E R 9 0
2 0 S Y M B O L 9 3 , & 8 0 , & 4 0 , & 2 0 , & 1 0 , & 8 , & 4 , & 2 , & 1
3 0 F O R n = 1 T O 2 0 0 0
4 0 P R I N T C H R $ ( 9 3 ) ;
50 NEXT
6 0 G O T 0 6 0
COMMAND: The SYMBOL command redefines the representation of a given character that has first
been specified in the SYMBOL AFTER command. The character number, is chosen from the
available ASCII or other characters from the CPC464' s standard character set, and the following
entries define the new character on an 8x8 pixel matrix. A 0 in the row indicates the paper colour to
be used and a 1 indicates that the pixel is to be set to the current ink colour. Also see Appendices II
and III. The example above produces a backslash that goes diagonally across the character cell,
accessible by pressing the ] key.
Associated keywords: SYMBOL AFTER

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents