Crossware

Table of Contents        Previous topic       Next topic       

ASSEMBLER DIRECTIVES->Other Assembler Directives->DEFB

DEFB  Define Constant Byte


This directive inserts a series of byte values into the object code.  The format is:

    DEFB [Exprn],[Exprn],[Exprn],....

The expressions are sequentially evaluated and the byte values generated are stored sequentially in the program object code.  If an expression is null (nothing is written between the commas or before the first comma) then zero is assigned.

Example:

   1                              nam     defbxampl   l
   2                              ttl     define byte
   3 0021               variable  equ     $21         
   4 0000 16 CF 00 21   label     defb    $16,%11001111,,variable