Download cambasic - Remote Processing

Transcript
Command
Syntax
Purpose
PRINT$
PRINT $ char [, char]
Prints string of characters
PUL SE
n= PULSE(m)
Returns time from pulsed output
P U LS E n , m, b , t, p
Pulses an o utput bit
READ
READ variable
Reads DATA statement values
REMARK
'
Allows pr ogram comm ents
RENUM
R E N UM [newline] . .
Renumbers program lines
RESTORE
RESTORE [line]
R E SU M E
R E SU M E
Continues program execution
RESUM E line
RESUME line
Continues program execution
RESUME NEXT
RESUME NEXT
RESUME COUNT
RESUME COUNT m
Reenables software counter
RETURN
RETURN
Resumes execution after GOSUB
RETURN ITR n
RETURN ITR n
Resumes execution after interrupt
RIGHT$
n$= RIGHT $(m$,p)
Returns right– most p char of m$
RND
n= RND(m)
Returns pseudo– random number
RUN
RUN [line]
Begins program execution
SAVE
SAVE n
Saves program or data to memory device
SGN
n= SGN(m)
Returns the sign of m
SIN
n= SIN(m)
Calculates sine function
SOUND
SOUND frequency
Outputs square wave at a frequency
SPI
SPI(chan, len, data, dly, in)
Comm unicates with SPI devices (some cards only)
SQR
x= SQR(m)
Returns square root
START BIT
START BIT task number
Enables a BIT task
START COUNT
START COUNT n
Activates softwar e counter(s)
START INP
START INP n
Activates port check ing task
STOP
STOP
Term inates program execution
STOP BIT
STOP BIT task number
Disables BIT task
STOP COUNT
STOP COUNT n
Deactivates softwar e counter(s)
STOP INP
STOP INP n
Deactivates por t checking task
STR$
n$= STR$(m)
Converts m to a string n$
SYS
a= SYS(n)
Accesse s system da ta
TAB
PRIN T TA B(m)
Tabs to position m
TAN
n= TAN(n)
Return s the tangent indir ectly
TICK
a= TICK(n)
Return time from 12 hour clock
Resets read pointer
Continues program execution
Comm and Summar y - 5