Remote-processing CAMBASIC Manuale Utente Pagina 30

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 208
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 29
Command Summary - 4
Command Syntax Purpose
LINE a = LINE(n) Read a single line on a STB-26
LINE n, m Write to a line number on a STB-26
LIST LIST Outputs program listing
LOAD LOAD Moves program from memory to RAM
LOAD RUN LOAD n RUN Loads pr ogram from Flash to RAM and runs it
LOCK LOCK Disables interrupts at a critical time in a program
LOG n= LOG(m) Returns natural log of m
MID$ n$= MID$(m$,p,q) Returns part of string m$
MID$(m$,p, q)=n$ Inserts a string into a string
MOD n= a MOD b Returns remainder of integer division
MON MON Invokes the mini-monitor
NEW NEW Initializes for a new program
NOT n = NOT a Performs a negation
OFF Command OFF Used with various statements
ON ON expression GOSUB Calculated branch to a subroutine
ON BIT ON BIT task#,addr, bit GOSUB Declares I/O line to monitor logic level
ON COM$ ON COM$ chan GOS UB [line] Branches program on CON FIG COM$
ON COUNT ON COUNT n GOSUB line Executes subroutine on a preset count
ON ERR ON ERR GOTO [line] Enables error trapping
ON INP 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
ON KEYPAD$ ON KEY PAD $ GO SUB line Branches program with keypad input
ON TICK ON TICK n, t GOSUB line Causes periodic program branching
OPTO n = OPTO (channel) Read and write to OPTO racks
OPTO n,m
OR n = a OR b Performs logical OR
OUT OUT I/O address, data Sends a byte to an output address
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 address
PRINT PRINT [expression] Outputs data
PRINT USING PRINT USING"format";exp. Prints formatted strings or number
Vedere la pagina 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 207 208

Commenti su questo manuale

Nessun commento