
Command Summary - 1
Command Syntax Purpose
ABS n= ABS(m) Returns absolute value of a number
AIN n= AIN(channel) Returns result of A/D conversion
AND n = a AND b Performs logical AND
AOT AOT channel,value Sends data to a D/A converter
ASC n= ASC(m$) Returns ASCII code for first character
ATN n = ATN(m) Returns the arctangent
AUTO AUTO line,increment Gener ate line numbers automatically
BCD n = BCD(m) Converts binary to BCD
BIN n= BIN(m) Converts packed BCD to binary
BIN$ a$ = BIN$(m) Converts 8– bit number to string
BIT n= BIT(I/O address, bit) Reads specific bit at address
BIT BIT addr,bit,value Writes bit at address
CALL CALL addr [,m1][,m2] Call assem bly progr am and pass data
CHR$ n$= CHR$(m) Converts number to character equivalent
n$= CHR$(m,n) Converts number m character n times
CLEAR CLEAR[string space] Clears variables, sets string space
CLEAR COM$ CLEAR CO M$ n Resets serial input buffer
CLEAR COUNT CLEAR COUNT n Clears count in software counter
CLEAR PU LSE CLEAR PULSE n Clears remaining time in software timer
CLEAR TICK CLEAR TICK n Resets an internal system clock to 0
CLS CLS[#n] Clears screen
COM$ n$= COM$(n) Returns string from serial input buffer
CONFIG CONFIG n Initializes system parameters
CONT CONT Resumes program execution
COS n= COS(m) Returns cosine of m to n
COUNT n= COUNT(m) Returns the count in software counters
DATA DATA constant Stores num eric and string data
DATE$ a$= DATE$(n) Returns date from calendar/clock
DATE$= string Writes to calendar/clock
DEC DEC variable Decrements variable by 1
DECF DECF variable Decrements variable by 4
DELETE DELETE– ]line[– line][– ] Deletes CAMBASIC progr am lines
DELAY DELAY n Delays program by n seconds
DIM DIM variable (value) Specifies max size for array variables
Commenti su questo manuale