Specifications
16-76 Programmer’s Guide Sega
Psy-Q Development System
Labels
Labels can also be included in a C expression. The evaluator looks for C level
information first and then label information. If it finds a label it will prefix it with a
‘:’.
It is recommended that you use this prefix when entering labels to explicitly tell the
evaluator that it is looking at a label.
Note: Labels have a C type of ‘int’.
Functions
If you include a function name in an expression, its value will be the same as its
address. It will appear in a Watch window as follows:
int ( ) main = (...) (0x80010BFC)
Note: This is contrary to C where the value of a function, is what is returned from
the function when it is executed.
Note: It is recommended that you access the address of a function via the ‘&’
operator or the Assembler label.
Expression Evaluation Name Resolution
In summary, the search order for a name in an expression is as follows:
1.
Escaped Register Names (prefix ‘$’)
2.
Escaped Label Names (prefix ‘:’)
3.
C Names
4.
Register Names
5.
Label Names