Positron Compiler Documentation

Declare

Source: Positron16 Compiler User Manual, PDF page 411

Syntax

Declare Code Modifying Directive = Modifying Value

Overview

Adjust certain aspects of the produced code at compile time, i.e. Crystal frequency, LCD port and pins, serial Baud rate etc.

Parameters

Code Modifying Directive is a set of pre-defined words. See list below. Modifying Value is the value that corresponds to the action. See list below.

The Declare directive is an indispensable part of the compiler. It moulds the library subroutines, and passes essential user information to them.

Note.

The Declare directive is mandatory and must precede the texts, otherwise a syntax error will be produced.

The Declare directive usually alters the corresponding library subroutine at compile time. This means that once the Declare is added to the BASIC program, it usually cannot be Undeclared later, or changed in any way. However, there are some declares that alter the flow of code, and can be enabled and disabled throughout the BASIC listing.

Subtopics