Symbol After - AMSTRAD cpc 6128 User Instruction

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

Advertisement

Note that the value of 0 appearing in the 2 final parameters means that you need
only type in:
SYMBOL 255,1,3,7,15,31,63
Note that you can enter the parameters in binary to save you converting the 'pattern'
of the symbol that you've created into decimal form. (Remember to use the & X binary
prefix.) For example:
SYMBOL 255,&X00000001,&X00000011,&X00000111,
&X00001111,&X00011111,&X00111111
.... Now, to see the character:
PRINT CHR$(255)
Assigning the above parameters to a typeable character on the keyboard would result
in the new character appearing whenever the appropriate key is pressed, or wherever
the previous character would have been printed. Furthermore, BASIC will not reject
this new character as incomprehensible, but will regard it as the equivalent of the
previous character.
Further information concerning user-defined characters will be found in part 2 of the
chapter entitled 'At your leisure .... '.
Associated keywords: S Y M B 0 L AFT E R
SYMBOL AFTER
S Y M B 0 L AFT E R <integer expression>
10 C LS
20 SYMBOL AFTER 115
30 PRINT "Line 40 re-defines the s ";
40 SYMBOL 115,0,56,64,64,48,8,8,112
50 PRINT "to s"
60 PRINT "Cancel this defintion of s,"
70 PRINT "by typi ng: SYMBOL AFTER 240"
run
COMMAND: Sets the number of permissible user defined characters (in the range 0
to 256). The default setting is 240, giving 16 user defined characters (from 240 to 255).
If the <integer expression> is 32, then all characters from 32 to 255 are re-definable ..
S Y M B 0 L AFT E R 256 permits no characters to be re-definable.
Whenever a S Y M B 0 L AFT E R command is executed, all user defined characters
are reset to their default conditions.
Complete List of Keywords
Chapter 3 Page 81

Advertisement

Table of Contents
loading

Table of Contents