Remote Processing CAMBASIC User Manual

Page 30

Advertising
background image

Comm and Summar y - 4

Command

Syntax

Purpose

L I N E

a = LINE(n)

Read a single line on a STB-26

L IN E n, m

Write to a line number on a STB-26

LIST

LIST

Outputs program listing

LOAD

LOAD

Moves program from memory to RAM

L O A D R U N

L O A D n R U N

Loads pr ogram from Flash to R AM and runs it

L O C K

L O C K

Disables interrupts at a critical time in a program

LOG

n= LOG(m)

Returns natural log of m

M I D $

n$= MID$( m $, p , q)

R e tu r n s p a r t o f st r in g m $

MID$( m$,p, q)= n$

Inserts a string into a string

MOD

n = a M O D b

Returns remainder of integer division

MON

MON

Invokes the mini-monitor

NEW

NEW

Initializes for a new program

NOT

n = NOT a

Perform s a negation

O F F

C o m m an d OF F

Used w ith various sta tements

ON

O N expression G O S U B

Calculated branch to a subroutine

ON BIT

ON BIT task#, addr, bit G O S U B

Declares I/O line to monitor logic level

O N C OM $

ON C OM$ chan GOS UB [ line]

Branches program on CON FIG C OM$

O N C O U N T

ON COUNT n GOS UB line

Executes subroutine on a preset count

ON ERR

ON ERR GOTO [line]

Enables error trapping

O N I N P

ON INP n, addre ss, m ask

Causes a break on an input pattern

GOSU B line/label

to subroutine

ON ITR

ON ITR G OSU B [line]

Branches program on interrupt

O N K E Y P AD $

ON KEY PAD $ GO SUB line

Branches program with keypad input

O N T I C K

ON TIC K n, t GOS UB line

Causes periodic program branching

OPTO

n = OPTO (channel)

Read and write to OPT O racks

O P TO n, m

OR

n = a OR b

Performs logical OR

O U T

OUT I/O address, data

Sends a byte to an output addre ss

PEEK

n= PEEK( address[, segment])

Returns byte from memory

PEEK$

X$= PEEK $(address[, segment])

Returns string from memory

POKE

POKE address, data[,s egment]

Writes byte into memory location

POKE$

POKE$ address,a$ [, segment]

Sends string to mem ory addr ess

P R I N T

PRINT [expression]

Outputs data

P R I N T U SI N G

PRINT USING"format";exp.

Prints formatted strings or number

Advertising