Commodore VIC-20 User Manual page 395

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

Advertisement

Example:
SYS
A'=STR'(14.6)
?A$
?STR$(1E2)
?STR$ ( 1 E lEl)
Appendix H BASIC Functions
381
Displays 14.6
Displays 100
Displays lE+ 10
SYS is a system function that transfers program control to an inde-
pendent subsystem.
Format:
SYS(mem adr)
mem adr is the starting address at which execution of the subsystem is
to begin. The value must be in the range 0 <address <65535.
TAB
TAB moves the cursor right to the specified column position.
Format:
TAB(arg n)
TAB moves the cursor to the n+ I position, where n is the number
obtained by resolving arg n.
Example:
?"QUARK"; SPC( 10); "W"
tllUARK
W
?"QUARK";TAB(10);"W"
QUARK
W
TAN
These two examples show the difference between SPC
and TAB. SPC skips ten positions from the last
cursor location, whereas TAB skips to the 10+ lth
position on the row
T AN returns the tangent of the argument.
Format:
TAN(argn)

Advertisement

Table of Contents
loading

Table of Contents