Remote-processing CAMBASIC Manual do Utilizador Página 29

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 208
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 28
Command Summary - 3
Command Syntax Purpose
DO/UNT IL DO list UNTIL expr. Executes until expression is true
DO/ENDDO DO n Fast loop structure
DPEEK n= DPEEK(address) Returns 16– bit value from memory
DPOKE DPOKE address, data Writes 16– bit value to memor y address
EDIT EDIT line Displays a line for editing
END END Causes program execution to cease
ERL n= ERL Returns line number associated with error
ERR n= ERR Returns error code associated with error
ERROR ERR n Simulates run– time error
EXIT EXIT [line] Allows branching out of a loop
EXIT CLEAR EXIT CLEAR Resets all loops and stacks
EXP n= EXP(m) Returns exponential function of “e”
FIND FIND [variable][command] Searches for parameter in program
FOR/NEXT/STEP FOR x= m TO n [STEP] Do a loop for n times
FPEEK a= FPEE K(address[,segment]) Returns floating point number from memory
FPOKE FPOKE address, data[,segment] Stores data in memory
FRE n= FRE(0) Returns free program and data bytes
n= FRE(c$) Returns unused string space
GOSUB GOSUB line/label Branches to a subroutine
GOTO GOTO line/label Branches to specified line number
HEX$ n= HEX$(m) Returns hex representation of m
IF/THEN/EL SE IF condition THEN .. ELSE .. Performs conditional operations
INC INC variable Increments variable by 1
INCF INCF variable Increments variable by 4
INKEY$ a$ = INKEY$(n) Returns serial characters
INP n= INP(I/O addre ss) Returns a byte from an I/O port
INPUT INPU T["string";] var Returns data from serial port
INPUT KEYPAD$ INPUT KEYP AD$ a$ Returns string from keypad
INSTR a = INSTR(n,a$, b$) Returns the position of b$ in a$
INT n= INT(b) Returns integer portion of b
KEYPAD$ a$= KEYPAD$(n) Returns last key from keypad port
LEFT$ n$= LEFT$(m$,p) Returns left most characters of m$
LEN n= LEN(m$) Returns number of characters in m$
Vista de página 28
1 2 ... 24 25 26 27 28 29 30 31 32 33 34 ... 207 208

Comentários a estes Manuais

Sem comentários