IDATA - Begin an Object File Initialized Data Section
Syntax
[<label>] idata [<RAM address>]
Description
For use when generating an object file. Declares the beginning of a section of initialized data. If
<label>
is not specified, the section is named.idata
. The starting address is initialized to the specified address or will be assigned at link time if no address is specified. No code can be generated in this segment.The linker will generate a look-up table entry for each byte specified in an idata section. You must then link or include the appropriate initialization code. Examples of initialization code that may be used and modified as needed may be found with MPLINK linker sample application examples.
The
res
,db
anddw
directives may be used to reserve space for variables.res
will generate an initial value of zero.db
will initialize successive bytes of RAM.dw
will initialize successive bytes of RAM, one word at a time, in low-byte/high-byte order.For more information, refer to Relocatable Objects.
Example
idata
LimitL dw 0
LimitH dw D'300'
Gain dw D'5'
Flags db 0
String db 'Hi there!'
See Also
Microchip Technology Inc. Microchip's Web Site Voice: (480) 792-7200 Fax: (480) 899-9210 Microchip's E-mail Address |