Specifications

4-16 Programmer’s Guide Sega
Psy-Q Development System
HEX
Description This directive takes a list of unsigned hex nibble pairs as an argument, which are
concatenated to give bytes. It is intended as a quick way of inputting small hex
expressions.
Syntax symbol name HEX hexlist
See Also INCBIN
Remarks Data stored as HEX is difficult to read, less memory-efficient and causes more work
for the Assembler. Therefore, it is suggested that the HEX statement is used for
comparatively minor data definitions only. To load larger quantities of data, it is
recommended that the data is stored in a file, to be INCLUDEd as a binary file at
runtime - see Include Files, chapter 5.
Examples HexStr hex 100204FF0128
is another way of writing
HexStr dc.b $10,$02,$04,$FF,$01,$28