A.3.3 Defining const data
To define a const, use the .DB directives/.DB2 directives/.DB4 directives within the .const or .constf section.
Example | Defining const data |
.CSEG const
.PUBLIC _p ;Sets _p as able to be referenced from other files
.ALIGN 2 ;Aligns _val0 to 2 bytes
_p:
.DB2 10 ;Allocates a 2-byte area for _p, and stores 10 in it
|