Remote-processing CAMBASIC Manuel d'utilisateur Page 8

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 208
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 7
Concepts - 2
Line Labels
You can write a program to GOTO or GOSUB to a label instead of a line number. This makes for more readable code.
90 A3 = AIN(0)
100 GOSUB ..FILTER
110 IF FL > 138 THEN GOTO ..OVER_LIMIT
.
.
.
5460 ..FILTER
5470 FL=.875
*
FL+.125*A3
5480 RETURN
.
.
.
8950 ..OVER_LIMIT
8960 OUT 49,3 :’shut down
Using line labels makes it easier to review code. You would probably know what “F ILTER” does before remembering the
line number it is on.
Line labels must be the first and only information on a line.
NOTE: Labels may not be used with ON GOTO, ON GOSUB, RESTORE, or RESUME.
When labels are used with GOTO, etc., no other statements may follow the label on the same line.
Debugging
CAM BASIC provides you with several methods to help de bug your program. As with all debugging, technique is usu ally
more important than tools. See the Debugging Programs Chapter for more information.
Bit Manipulation
CAMBASIC has commands for manipulating and reading bits. The BIT statement and BIT function can modify and read
individual bits. In order to modify a bit at an I/O port, the port m ust first be r ead, the appropriate bit set and the byte
written back to the port. The BIT statement does this automatically. The BIT function reads back individual bits. It
returns a “ 1” or “ 0” to reflects the state of the bit.
Communications Ports
CAMBASIC supports two serial ports, COM 1 (console) and COM2. Once the serial ports are configured, they can
simultaneously capture data in the background while the program executes. If the ON COM$ statement is used,
CAMBASIC will branch to the user’s routine to handle the incoming data when the message is complete.
Both ports also have output buffering. W hen the PRINT statement is executed, the characters to be printed are sent to the
multitasker and program execution continues at the next statement. The program does not wait until all the characters are
printed. This is especially useful when data is being transmitted at a low baud rate over a modem or radio link. The
output buffers are 255 characters long.
Real time Multitasking
CAM BASIC can perform several kinds of tasks at assembly language speed while the program is running. See the
Multitasking Chapter for more information.
Vue de la page 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 207 208

Commentaires sur ces manuels

Pas de commentaire

LG OLED65C6P manuals

Owner’s manuals and user’s guides for Unknown LG OLED65C6P.
We providing 1 pdf manuals LG OLED65C6P for download free by document types: User Manual






More products and manuals for Unknown LG

Models Document Type
LW-C1267CL User Manual   LG LW-C1267CL Owner’s Manual, 14 pages
GR-F802HMHU User Manual   LG GR-F802HMHU Руководство пользователя, 72 pages
GR-432SVF User Manual   LG GR-432SVF manuel du propriétaire [en] , 11 pages
GR-M712YVQ User Manual   LG GR-M712YVQ دليل المالك, 21 pages
A12LH1 User Manual   LG A09LH1,A12LH1 Інструкція користувача, 20 pages
GR-P307STB User Manual   LG GR-P307STB دليل المالك, 29 pages
LAS550H User Manual LG LAS550H Εγχειρίδιο Χρήσης, 38 pages
L1732P-SN User Manual   LG L1732P-SN دليل المالك, 23 pages
FLATRON-776FM-FM776B-CA User Manual   LG FLATRON 776FM(FM776B-CA) Owner’s Manual [fr] [id] [th] [tr] , 12 pages
F1092QDP5 User Manual   LG F1092QDP5 دليل المالك, 37 pages
CC490TW User Manual   LG CC490TW Руководство пользователя, 29 pages
T514TEFT0 User Manual   LG T514TEFT0 Owner’s Manual, 80 pages
ARNU153TQC4.ANWALUS User Manual   LG ARNU073TRC4.ANWALUS,ARNU243TPC4.ANWALUS,ARNU283TPC4.ANWALUS,ARNU093TRC4.ANWALUS,ARNU153TQC4.ANWALUS,ARNU123TNA4.ANWBLUS,ARNU283TMA4.ANWBLUS,ARNU363TNC4.ANWALUS,ARNU423TMC4.ANWALUS,ARNU483TMC4.ANWAL, 11 pages
LD-2163SH User Manual   LG LD-2163SH دليل المالك, 24 pages
SJ2 User Manual   LG SJ2 Owner’s Manual [en] , 29 pages
GR-532TF User Manual   LG GR-532TF manuel du propriétaire [de] [fr] [nl] , 11 pages
47TS30MF-B User Manual   LG 47TS30MF-B kullanım kılavuzu, 19 pages
DV-4590PM User Manual LG DV-4590PM راهنمای كاربر, 2 pages
DV-K6580PM User Manual LG DV-K6580PM دفترچه ی راهنما, 28 pages
GS97M65CEF User Manual   LG GS97M65CEF manual del propietario, 31 pages