Revision 771

View differences:

branch/CHAMBELLON/sp4c12/TPSP4c1/TPSP4c1/TPSP4c1.c
1
/***********************************************************************/
2
/*                                                                     */
3
/*  FILE        :TPSP4c1.c                                             */
4
/*  DATE        :Thu, Jun 03, 2021                                     */
5
/*  DESCRIPTION :main program file.                                    */
6
/*  CPU GROUP   :87B                                                   */
7
/*                                                                     */
8
/*  This file is generated by Renesas Project Generator (Ver.4.18).    */
9
/*  NOTE:THIS IS A TYPICAL EXAMPLE.                                    */
10
/***********************************************************************/
11

  
12

  
13

  
14
void main(void)
15
{
16
	
17
}
branch/CHAMBELLON/sp4c12/TPSP4c1/TPSP4c1/sect308.inc
1
;*******************************************************************************
2
;
3
;     C Compiler for M16C/80
4
; Copyright (C) 1999 (2000 - 2010) Renesas Electronics Corporation.
5
; and Renesas Solutions Corporation. All rights reserved.
6
;
7
;
8
;     sect30.inc     : section definition
9
;     This program is applicable when using the basic I/O library
10
;
11
;     $Date: 2005/10/12 07:54:36 $
12
;     $Revision: 1.24 $
13
;
14
;******************************************************************************
15
;---------------------------------------------------------------
16
;
17
; 	Arrangement of section
18
;
19
;---------------------------------------------------------------
20
; Near RAM data area
21
;---------------------------------------------------------------
22
; SBDATA area
23
	.section	data_SE,DATA
24
	.org	400H
25
data_SE_top:
26
; for NSD
27
	.section	data_MON1_SE,DATA
28
data_MON1_SE_top:
29
	.section	data_MON2_SE,DATA
30
data_MON2_SE_top:
31
	.section	data_MON3_SE,DATA
32
data_MON3_SE_top:
33
	.section	data_MON4_SE,DATA
34
data_MON4_SE_top:
35

  
36
	.section	bss_SE,DATA,ALIGN
37
bss_SE_top:
38
; for NSD
39
	.section	bss_MON1_SE,DATA,ALIGN
40
bss_MON1_SE_top:
41
	.section	bss_MON2_SE,DATA,ALIGN
42
bss_MON2_SE_top:
43
	.section	bss_MON3_SE,DATA,ALIGN
44
bss_MON3_SE_top:
45
	.section	bss_MON4_SE,DATA,ALIGN
46
bss_MON4_SE_top:
47

  
48
	.section	data_SO,DATA
49
data_SO_top:
50
; for NSD
51
	.section	data_MON1_SO,DATA
52
data_MON1_SO_top:
53
	.section	data_MON2_SO,DATA
54
data_MON2_SO_top:
55
	.section	data_MON3_SO,DATA
56
data_MON3_SO_top:
57
	.section	data_MON4_SO,DATA
58
data_MON4_SO_top:
59

  
60
	.section	bss_SO,DATA
61
bss_SO_top:
62
; for NSD
63
	.section	bss_MON1_SO,DATA
64
bss_MON1_SO_top:
65
	.section	bss_MON2_SO,DATA
66
bss_MON2_SO_top:
67
	.section	bss_MON3_SO,DATA
68
bss_MON3_SO_top:
69
	.section	bss_MON4_SO,DATA
70
bss_MON4_SO_top:
71

  
72
; near RAM area
73
	.section	data_NE,DATA,ALIGN
74
data_NE_top:
75
; for NSD
76
	.section	data_MON1_E,DATA,ALIGN
77
data_MON1_E_top:
78
	.section	data_MON2_E,DATA,ALIGN
79
data_MON2_E_top:
80
	.section	data_MON3_E,DATA,ALIGN
81
data_MON3_E_top:
82
	.section	data_MON4_E,DATA,ALIGN
83
data_MON4_E_top:
84

  
85
	.section	bss_NE,DATA,ALIGN
86
bss_NE_top:
87
; for NSD
88
	.section	bss_MON1_E,DATA,ALIGN
89
bss_MON1_E_top:
90
	.section	bss_MON2_E,DATA,ALIGN
91
bss_MON2_E_top:
92
	.section	bss_MON3_E,DATA,ALIGN
93
bss_MON3_E_top:
94
	.section	bss_MON4_E,DATA,ALIGN
95
bss_MON4_E_top:
96

  
97
	.section	data_NO,DATA
98
data_NO_top:
99
; for NSD
100
	.section	data_MON1_O,DATA
101
data_MON1_O_top:
102
	.section	data_MON2_O,DATA
103
data_MON2_O_top:
104
	.section	data_MON3_O,DATA
105
data_MON3_O_top:
106
	.section	data_MON4_O,DATA
107
data_MON4_O_top:
108

  
109
	.section	bss_NO,DATA
110
bss_NO_top:
111
; for NSD
112
	.section	bss_MON1_O,DATA
113
bss_MON1_O_top:
114
	.section	bss_MON2_O,DATA
115
bss_MON2_O_top:
116
	.section	bss_MON3_O,DATA
117
bss_MON3_O_top:
118
	.section	bss_MON4_O,DATA
119
bss_MON4_O_top:
120

  
121
;---------------------------------------------------------------
122
; Stack area
123
;---------------------------------------------------------------
124
	.section	stack,DATA,ALIGN
125
	.blkb	STACKSIZE
126
	.align
127
stack_top:
128

  
129
	.blkb	ISTACKSIZE
130
	.align
131
istack_top:
132

  
133

  
134
;---------------------------------------------------------------
135
;	heap section
136
;---------------------------------------------------------------
137
.if __HEAP__ != 1
138
	.section	heap,DATA
139
heap_top:
140
	.blkb	HEAPSIZE
141
.endif
142

  
143
;---------------------------------------------------------------
144
; Near ROM data area
145
;---------------------------------------------------------------
146
	.section	rom_NE,ROMDATA,ALIGN
147
rom_NE_top:
148

  
149
	.section	rom_NO,ROMDATA
150
rom_NO_top:
151

  
152
;---------------------------------------------------------------
153
; Far RAM data area
154
;---------------------------------------------------------------
155
; SBDATA area for #pragma SB16DATA
156
;	.section	data_SE,DATA
157
;	.org		10000H
158
;data_SE_top:
159
; for NSD
160
;	.section	data_MON1_SE,DATA
161
;data_MON1_SE_top:
162
;	.section	data_MON2_SE,DATA
163
;data_MON2_SE_top:
164
;	.section	data_MON3_SE,DATA
165
;data_MON3_SE_top:
166
;	.section	data_MON4_SE,DATA
167
;data_MON4_SE_top:
168
;
169
;	.section	bss_SE,DATA,ALIGN
170
;bss_SE_top:
171
; for NSD
172
;	.section	bss_MON1_SE,DATA,ALIGN
173
;bss_MON1_SE_top:
174
;	.section	bss_MON2_SE,DATA,ALIGN
175
;bss_MON2_SE_top:
176
;	.section	bss_MON3_SE,DATA,ALIGN
177
;bss_MON3_SE_top:
178
;	.section	bss_MON4_SE,DATA,ALIGN
179
;bss_MON4_SE_top:
180
;
181
;	.section	data_SO,DATA
182
;data_SO_top:
183
; for NSD
184
;	.section	data_MON1_SO,DATA
185
;data_MON1_SO_top:
186
;	.section	data_MON2_SO,DATA
187
;data_MON2_SO_top:
188
;	.section	data_MON3_SO,DATA
189
;data_MON3_SO_top:
190
;	.section	data_MON4_SO,DATA
191
;data_MON4_SO_top:
192
;
193
;	.section	bss_SO,DATA
194
;bss_SO_top:
195
; for NSD
196
;	.section	bss_MON1_SO,DATA
197
;bss_MON1_SO_top:
198
;	.section	bss_MON2_SO,DATA
199
;bss_MON2_SO_top:
200
;	.section	bss_MON3_SO,DATA
201
;bss_MON3_SO_top:
202
;	.section	bss_MON4_SO,DATA
203
;bss_MON4_SO_top:
204
;
205
;	.section	data_6E,DATA,ALIGN
206
;data_6E_top:
207
; for NSD
208
;	.section	data_MON1_6E,DATA,ALIGN
209
;data_MON1_6E_top:
210
;	.section	data_MON2_6E,DATA,ALIGN
211
;data_MON2_6E_top:
212
;	.section	data_MON3_6E,DATA,ALIGN
213
;data_MON3_6E_top:
214
;	.section	data_MON4_6E,DATA,ALIGN
215
;data_MON4_6E_top:
216
;
217
;	.section	bss_6E,DATA,ALIGN
218
;bss_6E_top:
219
; for NSD
220
;	.section	bss_MON1_6E,DATA,ALIGN
221
;bss_MON1_6E_top:
222
;	.section	bss_MON2_6E,DATA,ALIGN
223
;bss_MON2_6E_top:
224
;	.section	bss_MON3_6E,DATA,ALIGN
225
;bss_MON3_6E_top:
226
;	.section	bss_MON4_6E,DATA,ALIGN
227
;bss_MON4_6E_top:
228
;
229
;	.section	data_6O,DATA
230
;data_6O_top:
231
; for NSD
232
;	.section	data_MON1_6O,DATA
233
;data_MON1_6O_top:
234
;	.section	data_MON2_6O,DATA
235
;data_MON2_6O_top:
236
;	.section	data_MON3_6O,DATA
237
;data_MON3_6O_top:
238
;	.section	data_MON4_6O,DATA
239
;data_MON4_6O_top:
240
;
241
;	.section	bss_6O,DATA
242
;bss_6O_top:
243
; for NSD
244
;	.section	bss_MON1_6O,DATA
245
;bss_MON1_6O_top:
246
;	.section	bss_MON2_6O,DATA
247
;bss_MON2_6O_top:
248
;	.section	bss_MON3_6O,DATA
249
;bss_MON3_6O_top:
250
;	.section	bss_MON4_6O,DATA
251
;bss_MON4_6O_top:
252
;
253
	.section	data_FE,DATA
254
	.org		20000H
255
data_FE_top:
256
; for NSD
257
;	.section	data_MON1_E,DATA
258
;data_MON1_E_top:
259
;	.section	data_MON2_E,DATA
260
;data_MON2_E_top:
261
;	.section	data_MON3_E,DATA
262
;data_MON3_E_top:
263
;	.section	data_MON4_E,DATA
264
;data_MON4_E_top:
265

  
266
	.section	bss_FE,DATA,ALIGN
267
bss_FE_top:
268
; for NSD
269
;	.section	bss_MON1_E,DATA,ALIGN
270
;bss_MON1_E_top:
271
;	.section	bss_MON2_E,DATA,ALIGN
272
;bss_MON2_E_top:
273
;	.section	bss_MON3_E,DATA,ALIGN
274
;bss_MON3_E_top:
275
;	.section	bss_MON4_E,DATA,ALIGN
276
;bss_MON4_E_top:
277
 
278
	.section	data_FO,DATA
279
data_FO_top:
280
; for NSD
281
;	.section	data_MON1_O,DATA
282
;data_MON1_O_top:
283
;	.section	data_MON2_O,DATA
284
;data_MON2_O_top:
285
;	.section	data_MON3_O,DATA
286
;data_MON3_O_top:
287
;	.section	data_MON4_O,DATA
288
;data_MON4_O_top:
289
 
290
	.section	bss_FO,DATA
291
bss_FO_top:
292
; for NSD
293
;	.section	bss_MON1_O,DATA
294
;bss_MON1_O_top:
295
;	.section	bss_MON2_O,DATA
296
;bss_MON2_O_top:
297
;	.section	bss_MON3_O,DATA
298
;bss_MON3_O_top:
299
;	.section	bss_MON4_O,DATA
300
;bss_MON4_O_top:
301

  
302

  
303
;---------------------------------------------------------------
304
; Far ROM data area
305
;---------------------------------------------------------------
306
	.section	rom_FE,ROMDATA
307
	.org		0FE0000H
308
rom_FE_top:
309

  
310
	.section	rom_FO,ROMDATA
311
rom_FO_top:
312

  
313
;---------------------------------------------------------------
314
; Initial data of 'data' section
315
;---------------------------------------------------------------
316
	.section	data_SEI,ROMDATA
317
data_SEI_top:
318
; for NSD
319
	.section	data_MON1_SEI,ROMDATA
320
data_MON1_SEI_top:
321
	.section	data_MON2_SEI,ROMDATA
322
data_MON2_SEI_top:
323
	.section	data_MON3_SEI,ROMDATA
324
data_MON3_SEI_top:
325
	.section	data_MON4_SEI,ROMDATA
326
data_MON4_SEI_top:
327

  
328
	.section	data_SOI,ROMDATA
329
data_SOI_top:
330
; for NSD
331
	.section	data_MON1_SOI,ROMDATA
332
data_MON1_SOI_top:
333
	.section	data_MON2_SOI,ROMDATA
334
data_MON2_SOI_top:
335
	.section	data_MON3_SOI,ROMDATA
336
data_MON3_SOI_top:
337
	.section	data_MON4_SOI,ROMDATA
338
data_MON4_SOI_top:
339

  
340
;	.section	data_6EI,ROMDATA
341
;data_6EI_top:
342
; for NSD
343
;	.section	data_MON1_6EI,ROMDATA
344
;data_MON1_6EI_top:
345
;	.section	data_MON2_6EI,ROMDATA
346
;data_MON2_6EI_top:
347
;	.section	data_MON3_6EI,ROMDATA
348
;data_MON3_6EI_top:
349
;	.section	data_MON4_6EI,ROMDATA
350
;data_MON4_6EI_top:
351
;
352
;	.section	data_6OI,ROMDATA
353
;data_6OI_top:
354
; for NSD
355
;	.section	data_MON1_6OI,ROMDATA
356
;data_MON1_6OI_top:
357
;	.section	data_MON2_6OI,ROMDATA
358
;data_MON2_6OI_top:
359
;	.section	data_MON3_6OI,ROMDATA
360
;data_MON3_6OI_top:
361
;	.section	data_MON4_6OI,ROMDATA
362
;data_MON4_6OI_top:
363

  
364
	.section	data_NEI,ROMDATA
365
data_NEI_top:
366
; for NSD
367
	.section	data_MON1_EI,ROMDATA
368
data_MON1_EI_top:
369
	.section	data_MON2_EI,ROMDATA
370
data_MON2_EI_top:
371
	.section	data_MON3_EI,ROMDATA
372
data_MON3_EI_top:
373
	.section	data_MON4_EI,ROMDATA
374
data_MON4_EI_top:
375
 
376
	.section	data_NOI,ROMDATA
377
data_NOI_top:
378
; for NSD
379
	.section	data_MON1_OI,ROMDATA
380
data_MON1_OI_top:
381
	.section	data_MON2_OI,ROMDATA
382
data_MON2_OI_top:
383
	.section	data_MON3_OI,ROMDATA
384
data_MON3_OI_top:
385
	.section	data_MON4_OI,ROMDATA
386
data_MON4_OI_top:
387
 
388
	.section	data_FEI,ROMDATA
389
data_FEI_top:
390
; for NSD
391
;	.section	data_MON1_EI,ROMDATA
392
;data_MON1_EI_top:
393
;	.section	data_MON2_EI,ROMDATA
394
;data_MON2_EI_top:
395
;	.section	data_MON3_EI,ROMDATA
396
;data_MON3_EI_top:
397
;	.section	data_MON4_EI,ROMDATA
398
;data_MON4_EI_top:
399
 
400
	.section	data_FOI,ROMDATA
401
data_FOI_top:
402
; for NSD
403
;	.section	data_MON1_OI,ROMDATA
404
;data_MON1_OI_top:
405
;	.section	data_MON2_OI,ROMDATA
406
;data_MON2_OI_top:
407
;	.section	data_MON3_OI,ROMDATA
408
;data_MON3_OI_top:
409
;	.section	data_MON4_OI,ROMDATA
410
;data_MON4_OI_top:
411

  
412
;---------------------------------------------------------------
413
; code area
414
;---------------------------------------------------------------
415
	.section	interrupt,ALIGN
416

  
417
	.section	program,ALIGN
418

  
419
	.section	program_S
420
	.org		0FF0000H
421

  
422

  
423
;---------------------------------------------------------------
424
; variable vector section
425
;---------------------------------------------------------------
426
	.section	vector,ROMDATA		; variable vector table
427
	.org	VECTOR_ADR 
428
.if	__MVT__ == 0
429
	.lword	dummy_int		; BRK (software int 0)
430
	.lword	dummy_int		; 
431
	.lword	dummy_int		; 
432
	.lword	dummy_int		; 
433
	.lword	dummy_int		; 
434
	.lword	dummy_int		; 
435
	.lword	dummy_int		; 
436
	.lword	dummy_int		; 
437
	.lword	dummy_int		; DMA0 (software int 8)
438
	.lword	dummy_int 		; DMA1 (software int 9)
439
	.lword	dummy_int 		; DMA2 (software int 10)
440
	.lword	dummy_int 		; DMA3 (software int 11)
441
	.lword	dummy_int		; TIMER A0 (software int 12)
442
	.lword	dummy_int		; TIMER A1 (software int 13)
443
	.lword	dummy_int		; TIMER A2 (software int 14)
444
	.lword	dummy_int		; TIMER A3 (software int 15)
445
	.lword	dummy_int		; TIMER A4 (software int 16)
446
	.lword	dummy_int		; uart0 trance (software int 17)
447
	.lword	dummy_int		; uart0 receive (software int 18)
448
	.lword	dummy_int		; uart1 trance (software int 19)
449
	.lword	dummy_int		; uart1 receive (software int 20)
450
	.lword	dummy_int		; TIMER B0 (software int 21)
451
	.lword	dummy_int		; TIMER B1 (software int 22)
452
	.lword	dummy_int		; TIMER B2 (software int 23)
453
	.lword	dummy_int		; TIMER B3 (software int 24)
454
	.lword	dummy_int		; TIMER B4 (software int 25)
455
	.lword	dummy_int		; INT5 (software int 26)
456
	.lword	dummy_int		; INT4 (software int 27)
457
	.lword	dummy_int		; INT3 (software int 28)
458
	.lword	dummy_int		; INT2 (software int 29)
459
	.lword	dummy_int		; INT1 (software int 30)
460
	.lword	dummy_int		; INT0 (software int 31)
461
	.lword	dummy_int		; TIMER B5 (software int 32)
462
	.lword	dummy_int		; uart2 trance/NACK (software int 33)
463
	.lword	dummy_int		; uart2 receive/ACK (software int 34)
464
	.lword	dummy_int		; uart3 trance/NACK (software int 35)
465
	.lword	dummy_int		; uart3 receive/ACK (software int 36)
466
	.lword	dummy_int		; uart4 trance/NACK (software int 37)
467
	.lword	dummy_int		; uart4 receive/ACK (software int 38)
468
	.lword	dummy_int		; uart2 bus collision (software int 39)
469
	.lword	dummy_int		; uart3 bus collision (software int 40)
470
	.lword	dummy_int		; uart4 bus collision (software int 41)
471
	.lword	dummy_int		; A-D Convert (software int 42)
472
	.lword	dummy_int		; input key (software int 43)
473
	.lword	dummy_int		; software int 44
474
	.lword	dummy_int		; software int 45
475
	.lword	dummy_int		; software int 46
476
	.lword	dummy_int		; software int 47
477
	.lword	dummy_int		; software int 48
478
	.lword	dummy_int		; software int 49
479
	.lword	dummy_int		; software int 50
480
	.lword	dummy_int		; software int 51
481
	.lword	dummy_int		; software int 52
482
	.lword	dummy_int		; software int 53
483
	.lword	dummy_int		; software int 54
484
	.lword	dummy_int		; software int 55
485
	.lword	dummy_int		; software int 56
486
	.lword	dummy_int		; software int 57
487
	.lword	dummy_int		; software int 58
488
	.lword	dummy_int		; software int 59
489
	.lword	dummy_int		; software int 60
490
	.lword	dummy_int		; software int 61
491
	.lword	dummy_int		; software int 62
492
	.lword	dummy_int		; software int 63
493
.endif	; __MVT__
494

  
495

  
496
;===============================================================
497
; fixed vector section
498
;---------------------------------------------------------------
499
	.section	svector,ROMDATA		; specialpage vector table
500
.if	__MST__ == 0	
501
	.org		SVECTOR_ADR
502
;===============================================================
503
; special page defination
504
;---------------------------------------------------------------
505
;	macro is defined in ncrt0.a30
506
;	Format: SPECIAL number
507
;
508
;---------------------------------------------------------------
509
;	SPECIAL 255
510
;	SPECIAL 254
511
;	SPECIAL 253
512
;	SPECIAL 252
513
;	SPECIAL 251
514
;	SPECIAL 250
515
;	SPECIAL 249
516
;	SPECIAL 248
517
;	SPECIAL 247
518
;	SPECIAL 246
519
;	SPECIAL 245
520
;	SPECIAL 244
521
;	SPECIAL 243
522
;	SPECIAL 242
523
;	SPECIAL 241
524
;	SPECIAL 240
525
;	SPECIAL 239
526
;	SPECIAL 238
527
;	SPECIAL 237
528
;	SPECIAL 236
529
;	SPECIAL 235
530
;	SPECIAL 234
531
;	SPECIAL 233
532
;	SPECIAL 232
533
;	SPECIAL 231
534
;	SPECIAL 230
535
;	SPECIAL 229
536
;	SPECIAL 228
537
;	SPECIAL 227
538
;	SPECIAL 226
539
;	SPECIAL 225
540
;	SPECIAL 224
541
;	SPECIAL 223
542
;	SPECIAL 222
543
;	SPECIAL 221
544
;	SPECIAL 220
545
;	SPECIAL 219
546
;	SPECIAL 218
547
;	SPECIAL 217
548
;	SPECIAL 216
549
;	SPECIAL 215
550
;	SPECIAL 214
551
;	SPECIAL 213
552
;	SPECIAL 212
553
;	SPECIAL 211
554
;	SPECIAL 210
555
;	SPECIAL 209
556
;	SPECIAL 208
557
;	SPECIAL 207
558
;	SPECIAL 206
559
;	SPECIAL 205
560
;	SPECIAL 204
561
;	SPECIAL 203
562
;	SPECIAL 202
563
;	SPECIAL 201
564
;	SPECIAL 200
565
;	SPECIAL 199
566
;	SPECIAL 198
567
;	SPECIAL 197
568
;	SPECIAL 196
569
;	SPECIAL 195
570
;	SPECIAL 194
571
;	SPECIAL 193
572
;	SPECIAL 192
573
;	SPECIAL 191
574
;	SPECIAL 190
575
;	SPECIAL 189
576
;	SPECIAL 188
577
;	SPECIAL 187
578
;	SPECIAL 186
579
;	SPECIAL 185
580
;	SPECIAL 184
581
;	SPECIAL 183
582
;	SPECIAL 182
583
;	SPECIAL 181
584
;	SPECIAL 180
585
;	SPECIAL 179
586
;	SPECIAL 178
587
;	SPECIAL 177
588
;	SPECIAL 176
589
;	SPECIAL 175
590
;	SPECIAL 174
591
;	SPECIAL 173
592
;	SPECIAL 172
593
;	SPECIAL 171
594
;	SPECIAL 170
595
;	SPECIAL 169
596
;	SPECIAL 168
597
;	SPECIAL 167
598
;	SPECIAL 166
599
;	SPECIAL 165
600
;	SPECIAL 164
601
;	SPECIAL 163
602
;	SPECIAL 162
603
;	SPECIAL 161
604
;	SPECIAL 160
605
;	SPECIAL 159
606
;	SPECIAL 158
607
;	SPECIAL 157
608
;	SPECIAL 156
609
;	SPECIAL 155
610
;	SPECIAL 154
611
;	SPECIAL 153
612
;	SPECIAL 152
613
;	SPECIAL 151
614
;	SPECIAL 150
615
;	SPECIAL 149
616
;	SPECIAL 148
617
;	SPECIAL 147
618
;	SPECIAL 146
619
;	SPECIAL 145
620
;	SPECIAL 144
621
;	SPECIAL 143
622
;	SPECIAL 142
623
;	SPECIAL 141
624
;	SPECIAL 140
625
;	SPECIAL 139
626
;	SPECIAL 138
627
;	SPECIAL 137
628
;	SPECIAL 136
629
;	SPECIAL 135
630
;	SPECIAL 134
631
;	SPECIAL 133
632
;	SPECIAL 132
633
;	SPECIAL 131
634
;	SPECIAL 130
635
;	SPECIAL 129
636
;	SPECIAL 128
637
;	SPECIAL 127
638
;	SPECIAL 126
639
;	SPECIAL 125
640
;	SPECIAL 124
641
;	SPECIAL 123
642
;	SPECIAL 122
643
;	SPECIAL 121
644
;	SPECIAL 120
645
;	SPECIAL 119
646
;	SPECIAL 118
647
;	SPECIAL 117
648
;	SPECIAL 116
649
;	SPECIAL 115
650
;	SPECIAL 114
651
;	SPECIAL 113
652
;	SPECIAL 112
653
;	SPECIAL 111
654
;	SPECIAL 110
655
;	SPECIAL 109
656
;	SPECIAL 108
657
;	SPECIAL 107
658
;	SPECIAL 106
659
;	SPECIAL 105
660
;	SPECIAL 104
661
;	SPECIAL 103
662
;	SPECIAL 102
663
;	SPECIAL 101
664
;	SPECIAL 100
665
;	SPECIAL 99
666
;	SPECIAL 98
667
;	SPECIAL 97
668
;	SPECIAL 96
669
;	SPECIAL 95
670
;	SPECIAL 94
671
;	SPECIAL 93
672
;	SPECIAL 92
673
;	SPECIAL 91
674
;	SPECIAL 90
675
;	SPECIAL 89
676
;	SPECIAL 88
677
;	SPECIAL 87
678
;	SPECIAL 86
679
;	SPECIAL 85
680
;	SPECIAL 84
681
;	SPECIAL 83
682
;	SPECIAL 82
683
;	SPECIAL 81
684
;	SPECIAL 80
685
;	SPECIAL 79
686
;	SPECIAL 78
687
;	SPECIAL 77
688
;	SPECIAL 76
689
;	SPECIAL 75
690
;	SPECIAL 74
691
;	SPECIAL 73
692
;	SPECIAL 72
693
;	SPECIAL 71
694
;	SPECIAL 70
695
;	SPECIAL 69
696
;	SPECIAL 68
697
;	SPECIAL 67
698
;	SPECIAL 66
699
;	SPECIAL 65
700
;	SPECIAL 64
701
;	SPECIAL 63
702
;	SPECIAL 62
703
;	SPECIAL 61
704
;	SPECIAL 60
705
;	SPECIAL 59
706
;	SPECIAL 58
707
;	SPECIAL 57
708
;	SPECIAL 56
709
;	SPECIAL 55
710
;	SPECIAL 54
711
;	SPECIAL 53
712
;	SPECIAL 52
713
;	SPECIAL 51
714
;	SPECIAL 50
715
;	SPECIAL 49
716
;	SPECIAL 48
717
;	SPECIAL 47
718
;	SPECIAL 46
719
;	SPECIAL 45
720
;	SPECIAL 44
721
;	SPECIAL 43
722
;	SPECIAL 42
723
;	SPECIAL 41
724
;	SPECIAL 40
725
;	SPECIAL 39
726
;	SPECIAL 38
727
;	SPECIAL 37
728
;	SPECIAL 36
729
;	SPECIAL 35
730
;	SPECIAL 34
731
;	SPECIAL 33
732
;	SPECIAL 32
733
;	SPECIAL 31
734
;	SPECIAL 30
735
;	SPECIAL 29
736
;	SPECIAL 28
737
;	SPECIAL 27
738
;	SPECIAL 26
739
;	SPECIAL 25
740
;	SPECIAL 24
741
;	SPECIAL 23
742
;	SPECIAL 22
743
;	SPECIAL 21
744
;	SPECIAL 20
745
;	SPECIAL 19
746
;	SPECIAL 18
747
;
748
.endif	; __MST__
749

  
750

  
751
;===============================================================
752
; fixed vector section
753
;---------------------------------------------------------------
754
	.section	fvector,ROMDATA
755
	.org	0FFFFDCh
756
UDI:
757
	.lword	dummy_int
758
OVER_FLOW:
759
	.lword	dummy_int
760
BRKI:
761
	.lword	dummy_int
762
ADDRESS_MATCH:
763
	.lword	dummy_int
764
SINGLE_STEP:
765
	.lword	dummy_int
766
WDT:
767
	.lword	dummy_int
768
DBC:
769
	.lword	dummy_int
770
NMI:
771
	.lword	dummy_int
772
RESET:
773
	.lword	start
774
;
775
;*******************************************************************************
776
;
777
;     C Compiler for M16C/80
778
; Copyright (C) 1999 (2000 - 2010) Renesas Electronics Corporation.
779
; and Renesas Solutions Corporation. All rights reserved.
780
;
781
;
782
;*******************************************************************************
783

  
branch/CHAMBELLON/sp4c12/TPSP4c1/TPSP4c1/SessionM32C_Simulator.hsf
1
[HIMDBVersion]
2
2.0
3
[DATABASE_VERSION]
4
"2.3" 
5
[SESSION_DETAILS]
6
"" 
7
[INFORMATION]
8
"" 
9
[GENERAL_DATA]
10
"RESET_CPU_AFTER_DOWNLOAD_TAG" "VARIANT_TRUE_STORE_TAG" 
11
[LANGUAGE]
12
"English" 
13
[CONFIG_INFO_VD1]
14
0 
15
[CONFIG_INFO_VD2]
16
0 
17
[CONFIG_INFO_VD3]
18
0 
19
[CONFIG_INFO_VD4]
20
0 
21
[WINDOW_POSITION_STATE_DATA_VD1]
22
[WINDOW_POSITION_STATE_DATA_VD2]
23
[WINDOW_POSITION_STATE_DATA_VD3]
24
[WINDOW_POSITION_STATE_DATA_VD4]
25
[WINDOW_Z_ORDER]
26
[TARGET_NAME]
27
"M32C Simulator" "" 0 
28
[STATUSBAR_STATEINFO_VD1]
29
"MasterShowState" 1 
30
"ApplicationShowState" 1 
31
"DebuggerShowState" 1 
32
[STATUSBAR_STATEINFO_VD2]
33
"MasterShowState" 1 
34
"ApplicationShowState" 1 
35
"DebuggerShowState" 1 
36
[STATUSBAR_STATEINFO_VD3]
37
"MasterShowState" 1 
38
"ApplicationShowState" 1 
39
"DebuggerShowState" 1 
40
[STATUSBAR_STATEINFO_VD4]
41
"MasterShowState" 1 
42
"ApplicationShowState" 1 
43
"DebuggerShowState" 1 
44
[STATUSBAR_DEBUGGER_PANESTATE_VD1]
45
[STATUSBAR_DEBUGGER_PANESTATE_VD2]
46
[STATUSBAR_DEBUGGER_PANESTATE_VD3]
47
[STATUSBAR_DEBUGGER_PANESTATE_VD4]
48
[DEBUGGER_OPTIONS]
49
"Unknown Options" 
50
[DOWNLOAD_MODULES]
51
"$(CONFIGDIR)\$(PROJECTNAME).x30" 0 "IEEE695_RENESAS" 0 0 1 0 
52
[CONNECT_ON_GO]
53
"FALSE" 
54
[DOWNLOAD_MODULES_AFTER_BUILD]
55
"TRUE" 
56
[REMOVE_BREAKPOINTS_ON_DOWNLOAD]
57
"TRUE" 
58
[DISABLE_MEMORY_ACCESS_PRIOR_TO_COMMAND_FILE_EXECUTION]
59
"FALSE" 
60
[LIMIT_DISASSEMBLY_MEMORY_ACCESS]
61
"FALSE" 
62
[DISABLE_MEMORY_ACCESS_DURING_EXECUTION]
63
"FALSE" 
64
[DEBUGGER_OPTIONS_PROPERTIES]
65
"1" 
66
[COMMAND_FILES]
67
[DEFAULT_DEBUG_FORMAT]
68
"" 
69
[FLASH_DETAILS]
70
"" 0 0 "" 0 "" 0 0 "" 0 0 0 0 0 0 0 "" "" "" "" "" 
71
[BREAKPOINTS]
72
[END]
branch/CHAMBELLON/sp4c12/TPSP4c1/TPSP4c1/DefaultSession.hsf
1
[HIMDBVersion]
2
2.0
3
[DATABASE_VERSION]
4
"2.3" 
5
[SESSION_DETAILS]
6
"" 
7
[INFORMATION]
8
"" 
9
[GENERAL_DATA]
10
"{287A8023-99B5-49E1-A54E-4DDCA43D7959}MapCtrlECX_MAP_FIND_SYMBOL_LIST" "" 
11
"{287A8023-99B5-49E1-A54E-4DDCA43D7959}MapCtrlViews" "0" 
12
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlBatchFileName" "" 
13
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlBreakpointFlag" "-1 " 
14
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlBreakpointStatus" "-1 " 
15
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlBrowseDirectory" "" 
16
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlLogFileName" "" 
17
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlSplitterPosition" "242" 
18
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlViews" "1" 
19
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineCtrlWindowProperties" "17" 
20
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}CmdLineWndInstanceKey0" "{WK_00000001_CmdLine}" 
21
"{313F4FC1-6566-11D5-8BBE-0004E2013C71}TclTkCtrlLogFileName" "" 
22
"{6C4D5B81-FD67-46A9-A089-EA44DCDE47FD}RAMMonitorManagerCtrlBlockInfoFileDir" "" 
23
"{6C4D5B81-FD67-46A9-A089-EA44DCDE47FD}RAMMonitorManagerCtrlBlockInfoFileName" "" 
24
"{7943C44E-7D44-422A-9140-4CF55C88F7D3}DifferenceCtrlViews" "0" 
25
[LANGUAGE]
26
"English" 
27
[CONFIG_INFO_VD1]
28
1 
29
[CONFIG_INFO_VD2]
30
0 
31
[CONFIG_INFO_VD3]
32
0 
33
[CONFIG_INFO_VD4]
34
0 
35
[WINDOW_POSITION_STATE_DATA_VD1]
36
"Help" "TOOLBAR 0" 59419 1 5 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
37
"{WK_00000001_CmdLine}" "WINDOW" 59422 0 1 "0.33" 180 0 0 350 200 17 0 "32771|32772|32778|<<separator>>|32773|32774|<<separator>>|32820|<<separator>>|32801|32824" "0.0" 
38
"{WK_00000001_OUTPUT}" "WINDOW" 59422 0 0 "1.00" 180 534 287 350 200 18 0 "36756|36757|36758|36759|<<separator>>|36746|36747|<<separator>>|39531|<<separator>>|39500|39534|<<separator>>|36687" "0.0" 
39
"{WK_00000002_WORKSPACE}" "WINDOW" 59420 0 0 "1.00" 180 534 287 350 200 18 0 "" "0.0" 
40
"{WK_TB00000001_STANDARD}" "TOOLBAR 0" 59419 0 2 "0.00" 0 0 0 0 0 18 0 "" "0.0" 
41
"{WK_TB00000002_EDITOR}" "TOOLBAR 0" 59419 0 0 "0.00" 0 0 0 0 0 18 0 "" "0.0" 
42
"{WK_TB00000003_BOOKMARKS}" "TOOLBAR 0" 59419 1 1 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
43
"{WK_TB00000004_TEMPLATES}" "TOOLBAR 0" 59419 1 0 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
44
"{WK_TB00000005_SEARCH}" "TOOLBAR 0" 59419 0 1 "0.00" 0 0 0 0 0 18 0 "" "0.0" 
45
"{WK_TB00000007_DEBUG}" "TOOLBAR 0" 59419 2 0 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
46
"{WK_TB00000008_DEBUGRUN}" "TOOLBAR 0" 59419 2 1 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
47
"{WK_TB00000009_VERSIONCONTROL}" "TOOLBAR 0" 59419 1 3 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
48
"{WK_TB00000012_MAP}" "TOOLBAR 0" 59419 1 4 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
49
"{WK_TB00000018_DEFAULTWINDOW}" "TOOLBAR 0" 59419 1 2 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
50
"{WK_TB00000026_MACRO}" "TOOLBAR 0" 59419 1 6 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
51
"{WK_TB00000028_RTOSDEBUG}" "TOOLBAR 0" 59419 2 2 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
52
"{WK_TB00000029_SYSTEMTOOL}" "TOOLBAR 0" 59419 2 3 "0.00" 0 0 0 0 0 17 0 "" "0.0" 
53
[WINDOW_POSITION_STATE_DATA_VD2]
54
[WINDOW_POSITION_STATE_DATA_VD3]
55
[WINDOW_POSITION_STATE_DATA_VD4]
56
[WINDOW_Z_ORDER]
57
"D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\TPSP4c1.c" 
58
"D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\uart0.h" 
59
"D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\uart0.c" 
60
[TARGET_NAME]
61
"" "" 1398362941 
62
[STATUSBAR_STATEINFO_VD1]
63
"MasterShowState" 1 
64
"ApplicationShowState" 1 
65
"DebuggerShowState" 1 
66
[STATUSBAR_STATEINFO_VD2]
67
"MasterShowState" 1 
68
"ApplicationShowState" 1 
69
"DebuggerShowState" 1 
70
[STATUSBAR_STATEINFO_VD3]
71
"MasterShowState" 1 
72
"ApplicationShowState" 1 
73
"DebuggerShowState" 1 
74
[STATUSBAR_STATEINFO_VD4]
75
"MasterShowState" 1 
76
"ApplicationShowState" 1 
77
"DebuggerShowState" 1 
78
[STATUSBAR_DEBUGGER_PANESTATE_VD1]
79
[STATUSBAR_DEBUGGER_PANESTATE_VD2]
80
[STATUSBAR_DEBUGGER_PANESTATE_VD3]
81
[STATUSBAR_DEBUGGER_PANESTATE_VD4]
82
[DEBUGGER_OPTIONS]
83
"" 
84
[DOWNLOAD_MODULES]
85
[CONNECT_ON_GO]
86
"FALSE" 
87
[DOWNLOAD_MODULES_AFTER_BUILD]
88
"TRUE" 
89
[REMOVE_BREAKPOINTS_ON_DOWNLOAD]
90
"FALSE" 
91
[DISABLE_MEMORY_ACCESS_PRIOR_TO_COMMAND_FILE_EXECUTION]
92
"FALSE" 
93
[LIMIT_DISASSEMBLY_MEMORY_ACCESS]
94
"FALSE" 
95
[DISABLE_MEMORY_ACCESS_DURING_EXECUTION]
96
"FALSE" 
97
[DEBUGGER_OPTIONS_PROPERTIES]
98
"1" 
99
[COMMAND_FILES]
100
[DEFAULT_DEBUG_FORMAT]
101
"" 
102
[FLASH_DETAILS]
103
"" 0 0 "" 0 "" 0 0 "" 0 0 0 0 0 0 0 "" "" "" "" "" 
104
[BREAKPOINTS]
105
[END]
branch/CHAMBELLON/sp4c12/TPSP4c1/TPSP4c1/SessionM32C_E8a_SYSTEM.hsf
1
[HIMDBVersion]
2
2.0
3
[DATABASE_VERSION]
4
"2.3" 
5
[SESSION_DETAILS]
6
"" 
7
[INFORMATION]
8
"" 
9
[GENERAL_DATA]
10
"RESET_CPU_AFTER_DOWNLOAD_TAG" "VARIANT_TRUE_STORE_TAG" 
11
[LANGUAGE]
12
"English" 
13
[CONFIG_INFO_VD1]
14
0 
15
[CONFIG_INFO_VD2]
16
0 
17
[CONFIG_INFO_VD3]
18
0 
19
[CONFIG_INFO_VD4]
20
0 
21
[WINDOW_POSITION_STATE_DATA_VD1]
22
[WINDOW_POSITION_STATE_DATA_VD2]
23
[WINDOW_POSITION_STATE_DATA_VD3]
24
[WINDOW_POSITION_STATE_DATA_VD4]
25
[WINDOW_Z_ORDER]
26
[TARGET_NAME]
27
"M32C E8a SYSTEM" "" 0 
28
[STATUSBAR_STATEINFO_VD1]
29
"MasterShowState" 1 
30
"ApplicationShowState" 1 
31
"DebuggerShowState" 1 
32
[STATUSBAR_STATEINFO_VD2]
33
"MasterShowState" 1 
34
"ApplicationShowState" 1 
35
"DebuggerShowState" 1 
36
[STATUSBAR_STATEINFO_VD3]
37
"MasterShowState" 1 
38
"ApplicationShowState" 1 
39
"DebuggerShowState" 1 
40
[STATUSBAR_STATEINFO_VD4]
41
"MasterShowState" 1 
42
"ApplicationShowState" 1 
43
"DebuggerShowState" 1 
44
[STATUSBAR_DEBUGGER_PANESTATE_VD1]
45
[STATUSBAR_DEBUGGER_PANESTATE_VD2]
46
[STATUSBAR_DEBUGGER_PANESTATE_VD3]
47
[STATUSBAR_DEBUGGER_PANESTATE_VD4]
48
[DEBUGGER_OPTIONS]
49
"Unknown Options" 
50
[DOWNLOAD_MODULES]
51
"$(CONFIGDIR)\$(PROJECTNAME).x30" 0 "IEEE695_RENESAS" 0 0 1 0 
52
[CONNECT_ON_GO]
53
"FALSE" 
54
[DOWNLOAD_MODULES_AFTER_BUILD]
55
"TRUE" 
56
[REMOVE_BREAKPOINTS_ON_DOWNLOAD]
57
"FALSE" 
58
[DISABLE_MEMORY_ACCESS_PRIOR_TO_COMMAND_FILE_EXECUTION]
59
"FALSE" 
60
[LIMIT_DISASSEMBLY_MEMORY_ACCESS]
61
"FALSE" 
62
[DISABLE_MEMORY_ACCESS_DURING_EXECUTION]
63
"FALSE" 
64
[DEBUGGER_OPTIONS_PROPERTIES]
65
"1" 
66
[COMMAND_FILES]
67
[DEFAULT_DEBUG_FORMAT]
68
"" 
69
[FLASH_DETAILS]
70
"" 0 0 "" 0 "" 0 0 "" 0 0 0 0 0 0 0 "" "" "" "" "" 
71
[BREAKPOINTS]
72
[END]
branch/CHAMBELLON/sp4c12/TPSP4c1/TPSP4c1/ncrt0.a30
1
;*******************************************************************************
2
;
3
;     C COMPILER for M16C/80
4
; Copyright (C) 1999 (2000 - 2010) Renesas Electronics Corporation.
5
; and Renesas Solutions Corporation. All rights reserved.
6
;
7
;
8
;     ncrt0.a30 : NC308 startup program
9
;
10
;     This program is applicable when using the basic I/O library
11
;       
12
;     $Date: 2005/10/12 11:03:05 $
13
;     $Revision: 1.30 $
14
;
15
;*******************************************************************************
16

  
17
;---------------------------------------------------------------------
18
; HEEP SIZE definition
19
;---------------------------------------------------------------------
20
.if __HEAP__ == 1		; for HEW
21

  
22
HEAPSIZE	.equ	0h
23

  
24
.else
25
.if __HEAPSIZE__ == 0
26

  
27
HEAPSIZE	.equ	300h
28

  
29
.else				; for HEW
30

  
31
HEAPSIZE	.equ	__HEAPSIZE__
32

  
33
.endif
34
.endif
35

  
36
;---------------------------------------------------------------------
37
; STACK SIZE definition
38
;---------------------------------------------------------------------
39
.if __USTACKSIZE__ == 0
40

  
41
STACKSIZE	.equ	300h
42

  
43
.else				; for HEW
44

  
45
STACKSIZE	.equ	__USTACKSIZE__
46

  
47
.endif
48

  
49
;---------------------------------------------------------------------
50
; INTERRUPT STACK SIZE definition
51
;---------------------------------------------------------------------
52
.if __ISTACKSIZE__ == 0
53

  
54
ISTACKSIZE	.equ	300h
55

  
56
.else				; for HEW
57

  
58
ISTACKSIZE	.equ	__ISTACKSIZE__
59

  
60
.endif
61

  
62
;---------------------------------------------------------------------
63
; INTERRUPT VECTOR ADDRESS  definition
64
;---------------------------------------------------------------------
65
VECTOR_ADR 	.equ	0fffd00h
66
SVECTOR_ADR 	.equ	0fffe00h
67

  
68
;---------------------------------------------------------------
69
; special page definition
70
;---------------------------------------------------------------
71
;       macro define for special page
72
;
73
;Format:
74
;	SPECIAL	number
75
;
76

  
77
SPECIAL	.macro	NUM
78
	.org	0FFFFFEH-(NUM*2)
79
	.glb	__SPECIAL_@NUM
80
	.word	__SPECIAL_@NUM  & 0FFFFH
81
.endm
82
;---------------------------------------------------------------------
83
; Section allocation
84
;---------------------------------------------------------------------
85
	.list OFF
86
	.include sect308.inc
87
	.list ON
88

  
89
;---------------------------------------------------------------------
90
; SBDATA area definition
91
;---------------------------------------------------------------------
92
	.glb	__SB__
93
__SB__	.equ	data_SE_top
94

  
95
;====================================================================
96
; Initialize Macro declaration
97
;---------------------------------------------------------------------
98
;
99
; when copy less 64K byte
100
BZERO	.macro	TOP_ ,SECT_
101
	mov.b	#00H, R0L
102
	mov.l	#TOP_, A1
103
	mov.w	#sizeof SECT_ , R3
104
	sstr.b	
105
	.endm
106

  
107
BCOPY .macro	FROM_,TO_,SECT_
108
	mov.l	#FROM_ ,A0
109
	mov.l	#TO_ ,A1
110
	mov.w	#sizeof SECT_ , R3
111
	smovf.b
112
	.endm
113

  
114
; when copy over 64K byte
115
;BZEROL	.macro	TOP_,SECT_
116
;	push.w	#sizeof SECT_ >> 16
117
;	push.w	#sizeof SECT_  & 0ffffh
118
;	pusha	TOP_
119
;	.stk	8
120
;
121
;	.glb	_bzero	
122
;	.call	_bzero,G
123
;	jsr.a	_bzero
124
;	.endm
125
;
126
;
127
;BCOPYL	.macro	FROM_ ,TO_ ,SECT_
128
;	push.w	#sizeof SECT_  >> 16
129
;	push.w	#sizeof SECT_  & 0ffffh
130
;	pusha	TO_
131
;	pusha	FROM_
132
;	.stk	12
133
;
134
;	.glb	_bcopy
135
;	.call	_bcopy,G
136
;	jsr.a	_bcopy
137
;	.endm
138
;
139

  
140

  
141
;====================================================================
142
; Interrupt section start
143
;---------------------------------------------------------------------
144
	.insf	start,S,0
145
	.glb	start
146
	.section	interrupt
147
start:
148
;---------------------------------------------------------------------
149
; after reset,this program will start
150
;---------------------------------------------------------------------
151
	ldc	#istack_top,	isp	;set istack pointer
152
	mov.b	#02h,0ah
153
	mov.b	#00h,04h		;set processer mode 
154
	mov.b	#00h,0ah
155
	ldc	#0080h,	flg
156
	ldc	#stack_top,	sp	;set stack pointer 
157
	ldc	#data_SE_top,	sb	;set sb register 
158

  
159
	fset	b			;switch to bank 1
160
	ldc	#data_SE_top,	sb	;set sb register 
161
	fclr	b			;switch to bank 0
162

  
163
	ldc	#VECTOR_ADR,intb
164

  
165
;====================================================================
166
; NEAR area initialize.
167
;--------------------------------------------------------------------
168
; bss zero clear
169
;--------------------------------------------------------------------
170
	BZERO	bss_SE_top,bss_SE
171
	BZERO	bss_SO_top,bss_SO
172
	BZERO	bss_NE_top,bss_NE
173
	BZERO	bss_NO_top,bss_NO
174

  
175
; for NSD
176
	BZERO	bss_MON1_SE_top,bss_MON1_SE
177
	BZERO	bss_MON2_SE_top,bss_MON2_SE
178
	BZERO	bss_MON3_SE_top,bss_MON3_SE
179
	BZERO	bss_MON4_SE_top,bss_MON4_SE
180

  
181
	BZERO	bss_MON1_SO_top,bss_MON1_SO
182
	BZERO	bss_MON2_SO_top,bss_MON2_SO
183
	BZERO	bss_MON3_SO_top,bss_MON3_SO
184
	BZERO	bss_MON4_SO_top,bss_MON4_SO
185

  
186
	BZERO	bss_MON1_E_top,bss_MON1_E
187
	BZERO	bss_MON2_E_top,bss_MON2_E
188
	BZERO	bss_MON3_E_top,bss_MON3_E
189
	BZERO	bss_MON4_E_top,bss_MON4_E
190

  
191
	BZERO	bss_MON1_O_top,bss_MON1_O
192
	BZERO	bss_MON2_O_top,bss_MON2_O
193
	BZERO	bss_MON3_O_top,bss_MON3_O
194
	BZERO	bss_MON4_O_top,bss_MON4_O
195

  
196

  
197

  
198
;---------------------------------------------------------------------
199
; initialize data section
200
;---------------------------------------------------------------------
201
	BCOPY	data_SEI_top,data_SE_top,data_SE
202
	BCOPY	data_SOI_top,data_SO_top,data_SO
203
	BCOPY	data_NEI_top,data_NE_top,data_NE
204
	BCOPY	data_NOI_top,data_NO_top,data_NO
205

  
206
; for NSD
207
	BCOPY	data_MON1_SEI_top,data_MON1_SE_top,data_MON1_SE
208
	BCOPY	data_MON2_SEI_top,data_MON2_SE_top,data_MON2_SE
209
	BCOPY	data_MON3_SEI_top,data_MON3_SE_top,data_MON3_SE
210
	BCOPY	data_MON4_SEI_top,data_MON4_SE_top,data_MON4_SE
211

  
212
	BCOPY	data_MON1_SOI_top,data_MON1_SO_top,data_MON1_SO
213
	BCOPY	data_MON2_SOI_top,data_MON2_SO_top,data_MON2_SO
214
	BCOPY	data_MON3_SOI_top,data_MON3_SO_top,data_MON3_SO
215
	BCOPY	data_MON4_SOI_top,data_MON4_SO_top,data_MON4_SO
216

  
217
	BCOPY	data_MON1_EI_top,data_MON1_E_top,data_MON1_E
218
	BCOPY	data_MON2_EI_top,data_MON2_E_top,data_MON2_E
219
	BCOPY	data_MON3_EI_top,data_MON3_E_top,data_MON3_E
220
	BCOPY	data_MON4_EI_top,data_MON4_E_top,data_MON4_E
221

  
222
	BCOPY	data_MON1_OI_top,data_MON1_O_top,data_MON1_O
223
	BCOPY	data_MON2_OI_top,data_MON2_O_top,data_MON2_O
224
	BCOPY	data_MON3_OI_top,data_MON3_O_top,data_MON3_O
225
	BCOPY	data_MON4_OI_top,data_MON4_O_top,data_MON4_O
226

  
227

  
228
;====================================================================
229
; FAR area initialize.
230
;---------------------------------------------------------------------
231
; bss zero clear
232
;---------------------------------------------------------------------
233
;	BZERO	bss_SE_top,bss_SE
234
;	BZERO	bss_SO_top,bss_SO
235
;	BZERO	bss_6E_top,bss_6E
236
;	BZERO	bss_6O_top,bss_6O
237
	BZERO	bss_FE_top,bss_FE
238
	BZERO	bss_FO_top,bss_FO
239

  
240
; for NSD
241
;	BZERO	bss_MON1_SE_top,bss_MON1_SE
242
;	BZERO	bss_MON2_SE_top,bss_MON2_SE
243
;	BZERO	bss_MON3_SE_top,bss_MON3_SE
244
;	BZERO	bss_MON4_SE_top,bss_MON4_SE
245
;
246
;	BZERO	bss_MON1_SO_top,bss_MON1_SO
247
;	BZERO	bss_MON2_SO_top,bss_MON2_SO
248
;	BZERO	bss_MON3_SO_top,bss_MON3_SO
249
;	BZERO	bss_MON4_SO_top,bss_MON4_SO
250
;
251
;	BZERO	bss_MON1_6E_top,bss_MON1_6E
252
;	BZERO	bss_MON2_6E_top,bss_MON2_6E
253
;	BZERO	bss_MON3_6E_top,bss_MON3_6E
254
;	BZERO	bss_MON4_6E_top,bss_MON4_6E
255
;
256
;	BZERO	bss_MON1_6O_top,bss_MON1_6O
257
;	BZERO	bss_MON2_6O_top,bss_MON2_6O
258
;	BZERO	bss_MON3_6O_top,bss_MON3_6O
259
;	BZERO	bss_MON4_6O_top,bss_MON4_6O
260
;
261
;	BZERO	bss_MON1_E_top,bss_MON1_E
262
;	BZERO	bss_MON2_E_top,bss_MON2_E
263
;	BZERO	bss_MON3_E_top,bss_MON3_E
264
;	BZERO	bss_MON4_E_top,bss_MON4_E
265
;
266
;	BZERO	bss_MON1_O_top,bss_MON1_O
267
;	BZERO	bss_MON2_O_top,bss_MON2_O
268
;	BZERO	bss_MON3_O_top,bss_MON3_O
269
;	BZERO	bss_MON4_O_top,bss_MON4_O
270

  
271

  
272
;---------------------------------------------------------------------
273
; Copy edata_E(O) section from edata_EI(OI) section
274
;---------------------------------------------------------------------
275
;	BCOPY	data_SEI_top,data_SE_top,data_SE
276
;	BCOPY	data_SOI_top,data_SO_top,data_SO
277
;	BCOPY	data_6EI_top,data_6E_top,data_6E
278
;	BCOPY	data_6OI_top,data_6O_top,data_6O
279
	BCOPY	data_FEI_top,data_FE_top,data_FE
280
	BCOPY	data_FOI_top,data_FO_top,data_FO
281

  
282
; for NSD
283
;	BCOPY	data_MON1_SEI_top,data_MON1_SE_top,data_MON1_SE
284
;	BCOPY	data_MON2_SEI_top,data_MON2_SE_top,data_MON2_SE
285
;	BCOPY	data_MON3_SEI_top,data_MON3_SE_top,data_MON3_SE
286
;	BCOPY	data_MON4_SEI_top,data_MON4_SE_top,data_MON4_SE
287
;
288
;	BCOPY	data_MON1_SOI_top,data_MON1_SO_top,data_MON1_SO
289
;	BCOPY	data_MON2_SOI_top,data_MON2_SO_top,data_MON2_SO
290
;	BCOPY	data_MON3_SOI_top,data_MON3_SO_top,data_MON3_SO
291
;	BCOPY	data_MON4_SOI_top,data_MON4_SO_top,data_MON4_SO
292
;
293
;	BCOPY	data_MON1_6EI_top,data_MON1_6E_top,data_MON1_6E
294
;	BCOPY	data_MON2_6EI_top,data_MON2_6E_top,data_MON2_6E
295
;	BCOPY	data_MON3_6EI_top,data_MON3_6E_top,data_MON3_6E
296
;	BCOPY	data_MON4_6EI_top,data_MON4_6E_top,data_MON4_6E
297
;
298
;	BCOPY	data_MON1_6OI_top,data_MON1_6O_top,data_MON1_6O
299
;	BCOPY	data_MON2_6OI_top,data_MON2_6O_top,data_MON2_6O
300
;	BCOPY	data_MON3_6OI_top,data_MON3_6O_top,data_MON3_6O
301
;	BCOPY	data_MON4_6OI_top,data_MON4_6O_top,data_MON4_6O
302
;
303
;	BCOPY	data_MON1_EI_top,data_MON1_E_top,data_MON1_E
304
;	BCOPY	data_MON2_EI_top,data_MON2_E_top,data_MON2_E
305
;	BCOPY	data_MON3_EI_top,data_MON3_E_top,data_MON3_E
306
;	BCOPY	data_MON4_EI_top,data_MON4_E_top,data_MON4_E
307
;
308
;	BCOPY	data_MON1_OI_top,data_MON1_O_top,data_MON1_O
309
;	BCOPY	data_MON2_OI_top,data_MON2_O_top,data_MON2_O
310
;	BCOPY	data_MON3_OI_top,data_MON3_O_top,data_MON3_O
311
;	BCOPY	data_MON4_OI_top,data_MON4_O_top,data_MON4_O
312

  
313

  
314
	ldc	#stack_top,sp
315

  
316
;	.stk	-??	; Validate this when use BZEROL,BCOPYL
317

  
318
;====================================================================
319
; heap area initialize
320
;---------------------------------------------------------------------
321
.if __HEAP__ != 1
322
	.glb	__mnext
323
	.glb	__msize
324
	mov.l	#(heap_top&0FFFFFFH), __mnext
325
	mov.l	#(HEAPSIZE&0FFFFFFH), __msize
326
.endif
327
;====================================================================
328
; Initialize standard I/O
329
;---------------------------------------------------------------------
330
.if __STANDARD_IO__ == 1
331
	.glb	__init
332
	.call	__init,G
333
	jsr.a	__init
334
.endif
335

  
336
;====================================================================
337
; Call main() function
338
;---------------------------------------------------------------------
339
	ldc	#0h,fb	; for debuger
340

  
341
	.glb	_main
342
	jsr.a	_main
343

  
344
;====================================================================
345
; exit() function
346
;---------------------------------------------------------------------
347
	.glb	_exit
348
	.glb	$exit
349
_exit:			   ; End program
350
$exit:
351
	jmp	_exit
352
	.einsf
353

  
354
;====================================================================
355
; dummy interrupt function
356
;---------------------------------------------------------------------
357
	.glb	dummy_int
358
dummy_int:
359
	reit
360
	.end
361
;*******************************************************************************
362
;
363
;     C COMPILER for M16C/80
364
; Copyright (C) 1999 (2000 - 2010) Renesas Electronics Corporation.
365
; and Renesas Solutions Corporation. All rights reserved.
366
;
367
;
368
;*******************************************************************************
branch/CHAMBELLON/sp4c12/TPSP4c1/TPSP4c1/TPSP4c1.hwp
1
[HIMDBVersion]
2
2.0
3
[DATABASE_VERSION]
4
"2.8" 
5
[PROJECT_DETAILS]
6
"TPSP4c1" "D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1" "D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\TPSP4c1.hwp" "M16C/80,M32C" "Renesas M32C Standard" "Application" "M32C/80" "M32C/87(M32C/87B)" 
7
[INFORMATION]
8
"No project information available" 
9
[TOOL_CHAIN]
10
"Renesas M32C Standard Toolchain" "5.42.00" 
11
[CONFIGURATIONS]
12
"Debug" "D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\Debug" 
13
"Debug_M32C_E8a_SYSTEM" "D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\Debug_M32C_E8a_SYSTEM" 
14
"Debug_M32C_Simulator" "D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\Debug_M32C_Simulator" 
15
"Release" "D:\TP_SP4_CHAMBELLON\sp4c12\TPSP4c1\TPSP4c1\Release" 
16
[BUILD_PHASES]
17
"Renesas M32C Assembler" 1 
18
"Renesas M32C C Compiler" 1 
19
"Renesas M32C Configurator" 1 
20
"Renesas M32C Librarian" 1 
21
"Renesas M32C Linker" 1 
22
"Renesas M32C Stype Converter" 1 
23
[TOOL_ENVIRONMENT]
24
[EXTENSIONS]
25
"Absolute file" "X30" 
26
"Absolute list file" "ALS" 
27
"Assembler error tag file" "ATG" 
28
"Assembly include file" "INC" 
29
"Assembly list file" "LST" 
30
"Assembly source file" "A30" 
31
"Branch Information file" "JIN" 
32
"C header file" "H" 
33
"C source file" "C" 
34
"Configuration file" "CFG" 
35
"Cross reference file" "XRF" 
36
"Hex file" "HEX" 
37
"ID file" "ID" 
38
"Library file" "LIB" 
39
"Library list file" "LLS" 
40
"Linkage error tag file" "LTG" 
41
"Linkage map file" "MAP" 
42
"Preprocessed C source file" "I" 
43
"Relocatable file" "R30" 
44
"S-Record file" "MOT" 
45
"Systemcall file" "MRC" 
46
[FILE_GROUPS]
47
"Absolute file" "BIN" "NONE" "" 
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff