DB - Declare Data of One Byte

MPASM Assembler

DB - Declare Data of One Byte

Syntax

[<label>] db <expr>[,<expr>,...,<expr>]

Description

Reserve program memory words with packed 8-bit values. Multiple expressions continue to fill bytes consecutively until the end of expressions. Should there be an odd number of expressions, the last byte will be zero.

When generating an object file, this directive can also be used to declare initialized data values. Refer to the idata directive for more information.

Example

db 't', 0x0f, 'e', 0x0f, 's', 0x0f, 't', '\n'

See Also

DATA DE DT DW IDATA


Microchip Technology Inc.
Microchip's Web Site
Voice: (480) 792-7200
Fax: (480) 899-9210
Microchip's E-mail Address
PreviousNext