Specifications
3-4 Programmer’s Guide Sega
Psy-Q Development System
Format of Constants
The Assemblers support the following constant types:
Character Constants
A character string enclosed in quote marks is a character constant and is evaluated as
its ASCII value. Character constants may contain up to 4 characters, to give a 32 bit
value. Thus:
"A" = 65 = 65
"AB" = (65*256) + 66 = 16706
"ABC" = (65*65536) + (66*256) + 67 = 4276803
"ABCD" = (65*16777216)+ (66*65536) + (67*256) + 68 = 1094861636
Integer Constants
Integer constants are normally evaluated as decimal, the default base, unless one of
the following pertains:
• the RADIX directive changes the base - see chapter 3.
• $, as the first character of an integer, signifies a Hex number; % signifies a Binary
number.
• If a character is preceded by a backslash and up arrow (\^), the corresponding
control character is substituted.
• The AN Assembler option allows numbers to be defined as Intel and Zilog
integers. That is, the number must start with a numeric character and end with
one of:
D for Decimal; H for Hexadecimal; B for Binary