Crossware

Table of Contents        Previous topic       Next topic       

ASSEMBLER DIRECTIVES->Other Assembler Directives->DB

DB        Define Byte

The DB data directive is used to create constant data.  Tables, text and numerical data for instance can be created using DB.

Constants are placed in bytes and if necessary, numeric data is truncated to fit into a single byte.

Multiple constants can be created with a single DB directive by including more than one expression or string in the operand.  Adjacent expressions or strings are separated from each other by commas.  Up to 256 bytes of data can be generated with a single directive.

Format:

<label>  DB     <expression or string>,<expression or string> .....  <comment>