HP 48gII Advanced User's Reference Manual page 495

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

A source is a set of instructions, comments, and separation characters and ends with a carriage return and an
character.
MASD is case sensitive, so be careful, as
Separation characters are those with an ASCII number below 32. They include spaces, tabs, line feed and carriage
return.
In Saturn mode, some instructions need a parameter. Separation characters between an instruction and the
parameter are spaces, tabs, and points. Therefore
In ARM mode, parameters for the instruction are separated by spaces and commas. In Saturn or ARM mode,
comments can be placed everywhere and begin with
In RPL mode, comments are delimited by '
a '
' on the first character will also be considered a comment.
*
Directives change the way MASD interprets your source. Theses directives begin with a
4.1.5
Errors
If MASD detects one or more syntax error, it will push a list describing all errors on the stack. The
can help you make sense of that list, point you on the errors and let you correct them.
MASD will report a maximum of 16 errors before stopping compilation.
The
command takes 2 objects as arguments:
ER
The original source code (level 2)
The error list generated by MASD (level 1)
Normally, you should compile using a process similar to:
command does BTW). Most peoples will just type the
4.1.5.1
Format of the error list:
It's a list of at most 16 sub-lists.
Each sub-list contains 3 system-binary and 1 global-name.
The first system binary is an error message number.
The second is an extra system binary used to indicate how 'too long' a jump is.
The third one is the position in the source where the error is.
The global name is either a NULLNAME if the error was in the main source or the filename of the buggy source.
4.1.5.2
Error messages
Invalid File
Too many
Unknown Instruction
Invalid Field
Val betw 0-15 expected
Val betw 1-16 expected
Val betw 1-8 expected
Label Expected
Hexa Expected
Decimal Expected
Can't find
Label already defined
{ expected
} expected
( expected
[ or ] expected
Forbidden
Bad Expression
Jump too long
and
«loop»
«LOOP»
can be used instead of
A+B.A
or
and finish at the end of the current line.
%
;
' '
' as isolated characters and can be multi line. A line that starts with
(
)
IFERR ASM THEN ER END
command followed, if error, by the
ASM
The file is not a valid source or macro. (must end with a
You can not do this operation as you are limited to a certain amount of
them (for example, you can not have more than 64 simultaneous skips)
Unknown instruction
Incorrect field
An integer between 0 and 15 is expected
An integer between 1 and 16 is expected
An integer between 1 and 8 is expected
A label is expected
An hexadecimal number is expected
An decimal number is expected
This object can not be located
This name is already in use
A { character was expected
A } character was expected (this can happen if you do not close all the
open skips for example)
A ( character was expected
A [ or ] character was expected
This can not be done
This expression is invalid
This jump is above the limit of the instruction (use a different type of
jump)
are two different things for MASD.
.
A+B A
and will be explained later.
!
(this is what the
The Development Library 6-9
@
command
ER
ASM2
command.
ER
)
@

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents