ZBasic Language Reference
iii
ZX Microcontroller Family
Table of Contents
Chapter 1 - Introduction..............................................................................................................
1
............................................................................................
3
3
1.3 Conventions......................................................................................................................
4
7
2.1 Identifiers...........................................................................................................................
7
2.2 Data Types........................................................................................................................
7
.............................................................................................................................
8
2.3.1 The Options Section................................................................................................
8
..................................................................................................................
8
Option <port>.................................................................................................................
9
.................................................................................................................10
Option Explicit..............................................................................................................10
........................................................................................................11
............................................................................................................11
Option StringSize........................................................................................................11
.................................................................................................................12
..................................................................................................12
......................................................................................................12
............................................................................................13
........................................................................................................13
Option SignOn.............................................................................................................13
...........................................................................................13
................................................................................................14
Option RamSize..........................................................................................................14
Option HeapSize.........................................................................................................14
Option HeapReserve..................................................................................................15
........................................................................................................15
.......................................................................................15
Option TxQueueSize..................................................................................................15
.................................................................................................15
Option Com1Speed....................................................................................................15
Option Library..............................................................................................................16
.....................................................................................................16
Defining Variables.......................................................................................................17
.....................................................................................17
Defining Subroutines..................................................................................................18
Defining Functions......................................................................................................21