Define Error

You can not do this operation in a DEFINE

ARM register expected

No comments.

ARM invalid imediate

In ARM mode, constants must be representable on 8 bit with

 

an even number of rotation

Links

Links are secondary source files that MASD can be directed to compile (equivalent to the {$I} directive in Pascal and #include in C). As there is no linking phase with MASD (like in C), a multi source project will usually have the form of a main source file that contains a certain number of links.

An example of main source would be:

"

'Constant_definition 'initialization 'graphic_functions 'other

@"

When a link call is encountered, MASD suspends compilation of the current source, compiles the new source and then continues compiling the first one.

Program and data in the final object will be in the order in which MASD encounters the links.

Syntax in ASM and ARM mode:

links the file called FileName.

'FileName

Syntax in RPL mode:

links the file called FileName.

INCLUDE FileName

Notes:

1.A link can call other links

2.You can not use more than 64 links in your project

3.To know how MASD looks for files, see the File search section

4.Links are useful to cut projects in independent parts to allow fast and easy access to source code

5.It is beneficial to place all constants definitions at the beginning of the compilation process as this will speed up compilation and give more flexibility

Labels

A label is a marker in the program. The principal use of labels is to determine jump destinations.

A label is a set of less than 64 characters other than space, ‘+’, -’,*’ and ‘/’. A label begins with a star ‘*’ and ends with a separation character.

Syntax in ASM and ARM mode:

*BigLoop

is the BigLoop label declaration.

Syntax in RPL mode:

is the BigLoop label declaration.

LABEL BigLoop

Be careful about upper and lower cases!

Three types of labels can be used:

Global labels

A global label is a label that can be used everywhere in the project, like global variables in Pascal or C.

Local labels

The Development Library 6-13