Statistics
| Revision:

root / trunk / tp_info6 / Emb_App / c_sec.inc @ 1

History | View | Annotate | Download (5.26 KB)

1 1 jalaffon
;******************************************************************************
2
;
3
;	COPYRIGHT(C) 2003,2005 RENESAS TECHNOLOGY CORPORATION
4
;	AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
5
;	MR308 V.4.00
6
;
7
;       c_sec.inc     : section definition (for NC308 & MR308)
8
;
9
;*******************************************************************************
10
;	"$Id: c_sec.inc 195 2006-02-07 06:16:15Z inui $"
11
12
;---------------------------------------------------------------
13
;
14
; 	Arrangement of section
15
;
16
;---------------------------------------------------------------
17
; MR_RAM for Debugger data area ( Internal )
18
;---------------------------------------------------------------
19
	.SECTION 	MR_RAM_DBG,DATA
20
	.ORG	500H
21
MR_RAM_DBG_top:
22
23
;---------------------------------------------------------------
24
; RAM SB data area
25
;---------------------------------------------------------------
26
	.SECTION	data_SE,DATA,ALIGN
27
__SB__:
28
data_SE_top:
29
30
	.SECTION	bss_SE,DATA,ALIGN
31
bss_SE_top:
32
33
	.SECTION	data_SO,DATA
34
data_SO_top:
35
36
	.SECTION	bss_SO,DATA
37
bss_SO_top:
38
39
;---------------------------------------------------------------
40
; Near MR_RAM data area
41
;---------------------------------------------------------------
42
	.SECTION 	MR_RAM_NE,DATA,ALIGN
43
MR_RAM_NE_top:
44
	.SECTION 	MR_RAM_NO,DATA
45
MR_RAM_NO_top:
46
47
;---------------------------------------------------------------
48
; MR_RAM data area
49
;---------------------------------------------------------------
50
	.SECTION 	MR_RAM,DATA,ALIGN
51
MR_RAM_top:
52
53
;---------------------------------------------------------------
54
; Near data area
55
;---------------------------------------------------------------
56
	.SECTION	data_NE,DATA,ALIGN
57
data_NE_top:
58
59
	.SECTION	bss_NE,DATA,ALIGN
60
bss_NE_top:
61
62
	.SECTION	data_NO,DATA
63
data_NO_top:
64
65
	.SECTION	bss_NO,DATA
66
bss_NO_top:
67
68
;---------------------------------------------------------------
69
; stack section
70
;---------------------------------------------------------------
71
	.SECTION	stack,DATA,ALIGN
72
73
;---------------------------------------------------------------
74
; heap section
75
;---------------------------------------------------------------
76
	.GLB		mr_heap_top
77
	.SECTION	MR_HEAP,DATA,ALIGN
78
mr_heap_top:
79
80
;---------------------------------------------------------------
81
; Near ROM data area
82
;---------------------------------------------------------------
83
	.SECTION	rom_NE,ROMDATA,ALIGN
84
rom_NE_top:
85
86
	.SECTION	rom_NO,ROMDATA
87
rom_NO_top:
88
89
;---------------------------------------------------------------
90
; Far RAM data area
91
;---------------------------------------------------------------
92
	.SECTION	data_FE,DATA
93
	;.ORG		100000H
94
data_FE_top:
95
96
	.SECTION	bss_FE,DATA,ALIGN
97
bss_FE_top:
98
99
	.SECTION	data_FO,DATA
100
data_FO_top:
101
102
	.SECTION	bss_FO,DATA
103
bss_FO_top:
104
105
;---------------------------------------------------------------
106
; Far ROM data area
107
;---------------------------------------------------------------
108
	.SECTION	rom_FE,ROMDATA
109
	.ORG		0FF0000H
110
rom_FE_top:
111
112
	.SECTION	rom_FO,ROMDATA
113
rom_FO_top:
114
115
;---------------------------------------------------------------
116
; Initial data of 'data' section
117
;---------------------------------------------------------------
118
	.SECTION	data_SEI,ROMDATA
119
data_SEI_top:
120
121
	.SECTION	data_SOI,ROMDATA
122
data_SOI_top:
123
124
	.SECTION	data_NEI,ROMDATA
125
data_NEI_top:
126
127
	.SECTION	data_NOI,ROMDATA
128
data_NOI_top:
129
130
	.SECTION	data_FEI,ROMDATA
131
data_FEI_top:
132
133
	.SECTION	data_FOI,ROMDATA
134
data_FOI_top:
135
136
;---------------------------------------------------------------
137
;       MR308 SECTION
138
;---------------------------------------------------------------
139
140
	.SECTION	MR_KERNEL, CODE, ALIGN
141
	.glb		MR_top
142
MR_top:
143
	.SECTION	MR_CIF,CODE, ALIGN
144
145
	.SECTION	MR_ROM, ROMDATA, ALIGN
146
MR_ROM_top:
147
148
	.SECTION	program, CODE, ALIGN
149
150
	.SECTION	program_S, CODE, ALIGN
151
152
;---------------------------------------------------------------
153
; special page definition
154
;---------------------------------------------------------------
155
;       macro define for special page
156
;
157
;Format:
158
;	SPECIAL	number
159
;
160
161
SPECIAL	.macro	NUM
162
	.org	0FFFFFEH-(NUM*2)
163
	.glb	__SPECIAL_@NUM
164
	.word	__SPECIAL_@NUM  & 0FFFFH
165
.endm
166
167
;---------------------------------------------------------------
168
;	VECTOR	TABLE
169
;---------------------------------------------------------------
170
	.GLB		__INT_VECTOR
171
	.SECTION	INTERRUPT_VECTOR	;Interrupt vector table
172
	.ORG		0FFF800H
173
__INT_VECTOR:
174
175
	.section	fvector			; fixed vector table
176
;===============================================================
177
; special page defination
178
;---------------------------------------------------------------
179
;	macro is defined in ncrt0.a30
180
;	Format: SPECIAL number
181
;
182
;---------------------------------------------------------------
183
;	SPECIAL 255
184
;	SPECIAL 254
185
;	SPECIAL 253
186
;	   :
187
;	   :
188
;	(omitted)
189
;	   :
190
;	   :
191
;	SPECIAL 24
192
;	SPECIAL 23
193
;	SPECIAL 22
194
;	SPECIAL 21
195
;	SPECIAL 20
196
;	SPECIAL 19
197
;	SPECIAL 18
198
;
199
200
	.SECTION	FIX_INTERRUPT_VECTOR	;Fixed Interrupt vector	table
201
	.ORG		0FFFFDCH
202
203
;
204
;*******************************************************************************
205
;
206
;	C Compiler for M16C/80
207
;	COPYRIGHT(C) 2003 RENESAS TECHNOLOGY CORPORATION
208
;	AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
209
;
210
;*******************************************************************************