An Introduction & Guide to JALV2


JAL is a high level language designed to hide the general nuisance of programming a MicroChip PIC processor. It is derived from the original JAL by Wouter van Ooijen (see http://www.voti.nl/jal/index.html), which is loosely base on Pascal.

JAL is not case sensitive.

Table of Contents
1. Definitions and Conventions
1.1. Definitions
1.2. Conventions
2. Variables, Constants, Aliases
2.1. Types
2.2. Arrays
2.3. Records
2.4. Variables
2.5. Constants
2.5.1. Unnamed Constants
2.5.2. Named Constants
2.5.3. String Literals (introduced with JALv2.4p)
2.6. Aliases
3. Operators, Casting, Expressions, Casting
3.1. Operators
3.2. Casting
3.3. Expressions
4. Flow Control
4.1. BLOCK
4.2. CASE
4.3. FOR
4.4. FOREVER
4.5. IF
4.6. REPEAT
4.7. WHILE
5. Other Keywords
5.1. ASSERT
5.2. INCLUDE
5.3. Message generating
5.3.1. _DEBUG
5.3.2. _ERROR
5.3.3. _WARN
6. Sub-programs: Procedures and Functions
7. Pseudo-variables
8. Interrupts
9. Tasks
10. Assembly
10.1. Available Op-codes
10.2. Common Macros
10.3. Data Directives
11. Built-in Functions
11.1. Multiplication, Division, Modulus Division
11.2. Floating Point Operations
11.3. _usec_delay(cexpr);
List of Tables
2-1. JALv2 Built-in Types
2-2. ASCII Constant Escaping
3-1. JALv2 Operators