String$; Swap; Symbol - AMSTRAD cpc 6128 User Instruction

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

Advertisement

STRING$
S T R I N G
$ (
<length> , <character specifier> )
PRINT STRING$(40,"*")
****************************************
FUNCTION: Returns a string expression consisting of the specified character
repeated the number of times (in the range 0 to 255) specified in the <length>. Note
that the above example could be entered as:
PRINT STRING$(40,42)
****************************************
.... where the <character specifier> 42 refers to the ASCII value of the character
*
i.e.
equivalent to PR I N T S T R I N G $ ( 40, CH R $ ( 42) ) .
Associated keywords: SPA C E
$
SWAP
(See WIN D 0 W S W A P)
SYMBOL
S Y
M
B 0 L <character number> , <list of: <row>
10 MODE 1 :SYMBOL AFTER 105
20 row1=255:REM binary 11111111
30 row2=129:REM binary 10000001
40 row3=189:REM binary 10111101
50 row4=153:REM binary 10011001
60 row5=153:REM binary 10011001
70 row6=189:REM binary 10111101
80 row7=129:REM binary 10000001
90 row8=255:REM binary 11111111
100 PRINT "Line 110 re-defines the Letter i (105),
Type in some i
IS
and see! Then List the program."
110 SYMBOL 105,row1,row2,row3,row4,row5,row6,row7,row8
run
COMMAND: Re-defines the shape of a character on the screen. Each of the
parameters must yield an integer in the range 0 to 255.
Complete List of Keywords
Chapter 3 Page 79

Advertisement

Table of Contents
loading

Table of Contents