Remote-processing CAMBASIC Manual do Utilizador Página 7

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 208
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 6
Concepts - 1
Getting Started
To program in CAMBASIC you will need a terminal to interface with your CPU card. This may be a CRT terminal or a
PC configured as a terminal. If you use the PC, you will need additional software for your PC to communicate.
SmartLINK
turns your P C into a progr am developm ent workstation. See your har dware m anual for setup instructions.
You should review the CAM BASIC comm ands in Chapter 4 of this manual. Don’t be overwhelmed by the number of
comm ands available. M ost progr ams use only a limited number of comm ands. You will find that most com mands in
CAMBASIC are familiar to you if you have ever programmed in any basic before.
On power– up a message is printed like that below. If a nonsense message appears, your terminal is not set at 19,200
baud, one start bit, 8 data bits, one stop bit and no parity. The am ount of free mem ory is product dependent.
CAMBASIC (TM) Version 1.00
© 1985–93 Octagon Systems Corp
© 1994 Remote Processing Corp.
All rights reserved Free 30482
> _
The underline ( _ ) shown to the right of the “> ” prompt represents the cursor position. Y our cursor m ay be a block or
other character depending upon your system.
This mode is useful for debugging and for using CAMBASIC as a calculator for quick computation s. V irtually all
statements and commands may be used in this mode. Memory may be read and modified. Data may be sent to or read
from por ts.
The Progr am Mode is used for entering programs. Program lines are always preceded by line numbers. Execution begins
after RUN is entered. The pr ogram may be run as many times as desired. You can enter a program in either upper or
lower case.
Line Format
Every program begins with a line number. Line numbers may range from 1 to 65529.
Program s are stor ed and run in RAM , in line number order, regardless of the entr y sequence. P rograms ar e compile d into
an intermediate code to speed execution. The average com piled program will use about 10% more memory than the
keystrokes you typed or disk memory used. This number can vary 20% either way, depending upon the type of program
you are writing.
A compiler limits a program line to 159 characters. More than one statement may reside on a line as long as the
statements are separated by colons (:). Putting more than one statement on a line will cause somewhat faster program
execution and use less memory.
Line Renumbering
CAM BASIC can renum ber your progr am. Typing in RENUM will automatically renumber your program in line steps of
10 beginning with line 10. You can optionally specify the starting line number and step value. Refer to the RENUM
command.
Vista de página 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 207 208

Comentários a estes Manuais

Sem comentários