Commodore VIC-20 User Manual page 142

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

I
RK3HT$(X$,X)
This will return the rightmost X characters in XS.
STRS(XJ
This wiil contain a string which is identical to the PRINTed version of
XS.
(
VAL(X$)
This function converts the string X$ into a number, and is essentially
the inverse operation from STRS. The string is examined from the left
most character to the right, for as many characters as are in
(
recognizable number format. If the VIC ffnds illegal characters, only
the portion of the string up to that point is converted.
(
EXAMPLE:
(
I
<
I
I
10 X = VAL("123.456")
1OX = VAL("12A13B")
10X = VALCRIU017"PT)
10 X = VALC'-1.23.23.23")
c. OTHER FUNCTIONS
FRE(X)
X
X
X
X
= 123.456
= 12
= 0
= -1.23
This function returns fhe number of unused bytes available in
memory, regardless of the value of X.
(
POS(X)
This function returns the number of the column (0-21) at which the
t
next PRINT statement will begin on the screen. X may have any value
and is not used.
/
SPC(X)
This is used in the PRINT statement to skip X spaces forward.
TAB(X>
This is used in the PRINT statement. The next item to be printed will
be in column number X.
(
132
(

Advertisement

Table of Contents
loading

Table of Contents