76
ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
Assembler Directives
5.1
Area
AREA
Defines where code or data is located in Flash or RAM by the Linker. The Linker gathers all areas
with the same name together from the source files, and either concatenates or overlays them,
depending on the attributes specified. All areas with the same name must have the same attributes,
even if they are used in different modules.
The following is a complete list of valid key words that can be used with the
AREA
directive:
RAM
– Specifies that data is stored in RAM. Only used for variable storage. Commonly used with the
BLK
directive. Note that RAM AREAs are always overlay AREAs.
ROM
– Specifies that code or data is stored in Flash.
ABS
– Absolute, i.e., non-relocatable, location for code or data specified by the
ORG
directive.
Default value of AREAs for type
ABS
or
REL
directives is not specified.
REL
– Allows the Linker to relocate the code or data.
CON
– Specifies that sequential AREAs follow each other in memory. Each AREA is allocated its
own memory. The total size of the
AREA
directive is the sum of all AREA sizes. Default value of the
AREAs for type
CON
or
OVR
directives is not specified.
OVR
– Specifies that sequential AREAs start at the same address. This is a union of the AREAs.
The total size of the
AREA
directive is the size of the largest area.
Directive
Arguments
AREA
<name> ( < RAM | ROM >, [ ABS | REL ], [ CON | OVR ] )
Example:
A code area is defined at address 2000.
AREA MyArea(ROM,ABS,CON)
ORG 2000h
_MyArea_start:
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...