UDATA_OVR - Begin an Object File Overlayed Uninitialized Data Section

MPASM Assembler

UDATA_OVR - Begin an Object File Overlayed Uninitialized Data Section

Syntax

[<label>] udata_ovr [<RAM address>]

Description

For use when generating an object file. Declares the beginning of a section of overlayed uninitialized data. If <label> is not specified, the section is named .udata_ovr. The starting address is initialized to the specified address or will be assigned at link time if no address is specified. The space declared by this section is overlayed by all other udata_ovr sections of the same name. It is an ideal way of declaring temporary variables since it allows multiple variables to be declared at the same memory location. No code can be generated in this segment. The res directive should be used to reserve space for data.

Note: Two sections in the same source file may not have the same name.

For more information, refer to Relocatable Objects.

Example

Temps udata_ovr

Temp1 res 1

Temp2 res 1

Temp3 res 1

Temps udata_ovr

LongTemp1 res 2 ; this will be a variable at the

; same location as Temp1 and Temp2

LongTemp2 res 2 ; this will be a variable at the

; same location as Temp3

See Also

EXTERN GLOBAL IDATA UDATA UDATA_ACS UDATA_SHR


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