Data Directives
The following allow data to be directly inserted into the code area. Retrieving these data is chip-specific. Also, as the data go directly into the program memory, the amount of space actually used is chip specific.
Below, the term list is a comma separated list of constants or strings.
db list
Inserts a list of bytes, one per program word.
dw list
Inserts a list of words. On 12 & 14 bit cores each word can be 14 bits (0..8191), whereas on 16 bit cores each word can be 16 bits (0..65535).
ds list
Pack two 7-bit values into a program word. Not necessary on the 16 bit cores.
Parent topic: Assembly