Operator Priority Notes
Note: throughout this documentation, you will see talks about expressions that can be "immediately" evaluated. This
refers to any expression that contains only number and labels/constants that have already been declared.
Macros and includes
If data are to be included in a project, it can be entered in hex in a source file, using
include data from an external file, called a macro. The macro file must be a character string, a graphic, a code object
or a list.
In case of a string or a code, MASD includes only the data part (after the length) of the object
In case of a graphic, only the graphic data will be included (no length, no dimensions)
In case of a list, only the first object of the list will be included following the previous rules
The syntax in ASM or ARM mode is:
Note: To know how MASD looks for the FileName file, see the following section.
You can also include a complete object (prologue included) using
MASD sometimes needs to find a file in the calculator's memory. The file can be found either by specifying the file
name and location, or only the file name to be search in the directory search list.
The initial directory search list contains the current directory, and all parents directory up to the HOME directory.
You can add a directory in the directory search list using
directory name using filename rules.
To specify a full path, use
to specify HOMEDIR as the root.
where x is a port number, to specify a port as root. Note: you can not use 3 (SD card) here.
This root is followed by a list of directories, ending with the name of the file.
specifies the BRA file in the BAR directory, stored in the FOO backup of the port 2.
specifies the YOU file in the ME directory, in the HOMEDIR.
Note: You can not have more than 16 entries in the directory search path.
1<<5 = $20
$20>>5 = 1
Modulo (remainder of division) X%0=0
Is smaller (true=1, false = 0)
Is greater (true=1, false = 0)
Is smaller or equal (true=1, false = 0)
Is greater or equal (true=1, false = 0)
Is equal (true = 1, false = 0)
Is different (true = 1, false = 0)
followed by a filename to include an object, in RPL mode, use
where RepName identifies a
The Development Library 6-13
. However, a simpler way is to
. In ASM or ARM mode,