Specifications

9-8 Programmer’s Guide Sega
Psy-Q Development System
INFORM and FAIL
Description The INFORM directive displays an error message contained in text which may
optionally contain parameters to be substituted by the contents of expressions after
evaluation. Further Assembler action is based upon the state of severity. The FAIL
directive is a pre-defined statement, included for compatibility with other Assemblers.
It generates an “Assembly Failed” message and halts assembly.
Syntax INFORM severity,text[,expressions]
FAIL
Remarks
These directives allow the programmer to display an appropriate message if an
error condition is encountered which the Assembler does not recognise.
Severity is in the range 0 to 3, with the following effects:
0 : the Assembler simply displays the text;
1 : the Assembler displays the text and issues a warning;
2 : the Assembler displays the text and raises an error;
3 : the Assembler displays the text, raises a fatal error and halts the assembly.
Text may contain the parameters %d, %h and %s. They will be substituted by
the decimal, hex or string values of the following expressions.
Examples TableSize equ TableEnd-TableStart
MaxTable equ 512
if TableSize>MaxTable
inform 0,"Table starts at %h and&
is %h bytes long",&
TableStart,TableSize
inform 3,"Table Limit Violation"
endif