BCL Programmers Manual V2.00 (PDF) - Barix
BCL Programmers Manual V2.00 (PDF) - Barix
BCL Programmers Manual V2.00 (PDF) - Barix
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Table of Contents1 Introduction ....................................................................................11.1 Notation .....................................................................................................11.2 Supported devices ...................................................................................22 Development Tools ......................................................................32.1 Editor .............................................................................................................32.2 Tokenizer ......................................................................................................32.3 Web2cob ......................................................................................................32.4 Program upload .........................................................................................52.5 Batch files ....................................................................................................53 <strong>BCL</strong> basics .......................................................................................63.1 Starting with <strong>BCL</strong> .....................................................................................63.1.1 Simple program .............................................................................................................................63.1.2 Comments .........................................................................................................................................63.1.3 Command delimiters ..................................................................................................................63.1.4 Multi-line commands ..................................................................................................................63.1.5 Recommended structure of <strong>BCL</strong> programs ...................................................................73.2 Syntax overview ........................................................................................73.2.1 Data types and variables ........................................................................................................73.2.2 Procedures and functions ........................................................................................................83.2.3 Conditional statements .............................................................................................................83.2.4 Program flow control ..................................................................................................................84 Integers .........................................................................................104.1 Integer constants ...................................................................................104.1 Integer variables .....................................................................................104.2 Integer expressions ..............................................................................104.3 Integer functions ....................................................................................104.4 Real numbers ...........................................................................................114.1 Integer Arrays .........................................................................................114.1.1 Array search .................................................................................................................................114.2 Bit operations ..........................................................................................125 Strings ............................................................................................135.1 String constants ......................................................................................135.2 Escape sequences ...................................................................................135.3 String expressions .................................................................................135.4 String variables .......................................................................................135.5 Binary arrays ............................................................................................145.6 String functions .......................................................................................145.6.1 String/Integer conversions ...................................................................................................155.6.2 Formatted conversions - SPRINTF$ ................................................................................165.7 Binary array functions .........................................................................186 Execution flow control commands ...........................................196.1 The END command ..............................................................................196.1 Labels ..........................................................................................................196.2 Unconditional jump ..............................................................................196.3 The FOR-NEXT loop ...........................................................................19