The CrossWorks assembler provides a number of built-in or pre-defined data types. These data types correspond to those you'd find in a high-level language such as C. You can use these to allocate data storage; for instance the following allocates one byte of data for the symbol count:
count DV BYTE
The directive DV allocates one byte of space for count in the current section and sets count's type to BYTE.
Type name |
Size in bytes | Description |
BYTE | 1 | Unsigned 8-bit byte |
WORD | processor-dependent | Unsigned word, dependent upon processor word size. |
LONG | 4 | Unsigned 32-bit word |
CHAR | 1 | 8-bit character |
ADDR | processor-dependent | Address |