?? startup.lst
字號:
* R8C/Tiny,M16C SERIES ASSEMBLER * SOURCE LIST Tue Oct 14 16:11:38 2008 PAGE 001
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
1 ;""FILE COMMENT""**************************************************************
2 ; System Name : This program is only for education.
3 ; File Name : startup.a30
4 ; Contents : startup program
5 ; Model : Fit to OAKS16-LCD Board
6 ; CPU : M16C/60 Serials
7 ; Assembler : NC30WA(V.4.00 Release 2 - Entry)
8 ; Linker : (ln30) for M16C Family Version 4.00.01
9 ; OS : No use
10 ; Programer : RENESAS Semiconductor Training Center
11 ; Note : Fit to OAKS16-M30620FCAFP(M16C/62group,16MHz)
12 ;******************************************************************************
13 ; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION丂AND
14 ; RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
15 ;******************************************************************************
16 ; History : ---
17 ;""FILE COMMENT END""**********************************************************
18
19 ;==============================================================================
20 ; section assignment
21 ;==============================================================================
22 .include sect.inc ; section defining file
23 1 ;""FILE COMMENT""**************************************************************
24 1 ; System Name : This program is only for education.
25 1 ; File Name : sect.inc
26 1 ; Contents : Section definition (for interrupt usage)
27 1 ; Model : Fit to OAKS16-LCD Board
28 1 ; CPU : M16C/60 Serials
29 1 ; Assembler : NC30WA(V.4.00 Release 2 - Entry)
30 1 ; Linker : (ln30) for M16C Family Version 4.00.01
31 1 ; OS : no use
32 1 ; Programer : RENESAS Semiconductor Training Center
33 1 ; Note : Fit to OAKS16-M30620FCAFP(M16C/62 group,16MHz)
34 1 ;******************************************************************************
35 1 ; COPYRIGHT(C) 2003 RENESAS TECHNOLOGY CORPORATION ALL RIGHTS RESERVED
36 1 ; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
37 1 ;******************************************************************************
38 1 ; History : ---
39 1 ;""FILE COMMENT END""**********************************************************
40 1 ;-------------------------------------------------------------------------------
41 1 ; Caution:
42 1 ; (1)Memory configuration
43 1 ; It's unneccessary to mind the attribute being near or far
44 1 ; if you compile with -fFRAM option.
45 1 ; 亂-fFRAM option亃
46 1 ; make default attribute of RAM data become far.
47 1 ; the default attribute of RAM data(variables) is assigned in near area.
48 1 ; if you do not want to use near area (64 bytes), should use this option
49 1 ; to change the assignment.
50 1 ; when compiling in each practice, -fFRAM option has been used.
51 1 ;-------------------------------------------------------------------------------
52 1
53 1
54 1
55 1
56 1 ;===============================================================================
57 1 ; Section assignment
58 1 ;===============================================================================
59 1 ;-------------------------------------------------------------------------------
60 1 ; Variable data area (RAM)
61 1 ;-------------------------------------------------------------------------------
62 1 ; area of static variable with initial value
* R8C/Tiny,M16C SERIES ASSEMBLER * SOURCE LIST Tue Oct 14 16:11:38 2008 PAGE 002
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
63 1 .section data_FE,DATA ; static variable with even number size(far)
64 00400 1 .org 00400H ; start address
65 00400 1 data_FE_top:
66 1 .section data_FO,DATA,ALIGN ; static variable with odd number size(far)
67 00000 1 data_FO_top:
68 1
69 1 ;-------------------------------------------------------------------------------
70 1 ; area of static variable without initial value
71 1 .section bss_FE,DATA,ALIGN ; static variable with even number size(far)
72 00000 1 bss_FE_top:
73 1 .section bss_FO,DATA,ALIGN ; static variable with odd number size(far)
74 00000 1 bss_FO_top:
75 1
76 1 ;-------------------------------------------------------------------------------
77 1
78 1 ;-------------------------------------------------------------------------------
79 1 ; stack area
80 1 ;-------------------------------------------------------------------------------
81 1 .section stack,DATA ; stack area
82 00000100h 1 STACKSIZE .equ 256 ; set stack size (256bytes)
83 00000 1 stack_top:
84 00000(000100H) 1 .blkb STACKSIZE ; assign stack area based on its size
85 1 ;
86 00100 1 STACK_INI: ; initialize ISP
87 1 ; (interrupt stack pointer)
88 1 ;-------------------------------------------------------------------------------
89 1 ; code area
90 1 ;-------------------------------------------------------------------------------
91 1 .section startup,CODE ; startup program area
92 E0000 1 .org 0E0000H ;
93 1 ;-------------------------------------------------------------------------------
94 1 .section program,CODE ; program area
95 1 ;-------------------------------------------------------------------------------
96 1 ; fixed data area (ROM)
97 1 ;-------------------------------------------------------------------------------
98 1 ; area to save constant and character
99 1 .section rom_FE,ROMDATA ; constant area for even size (far)
100 F0000 1 .org 0F0000H ;
101 F0000 1 rom_FE_top:
102 1 .section rom_FO,ROMDATA,ALIGN ; constant area for odd size (far)
103 00000 1 rom_FO_top:
104 1 ;-------------------------------------------------------------------------------
105 1 ; area to save initial values of static variable with initial value
106 1 .section data_FEI,ROMDATA,ALIGN ; for even size (far)
107 00000 1 data_FEI_top:
108 1 .section data_FOI,ROMDATA,ALIGN ; for odd size (far)
109 00000 1 data_FOI_top:
110 1
111 1 ;-------------------------------------------------------------------------------
112 1 ; variable intterupt vector tables
113 1 ;-------------------------------------------------------------------------------
114 1 .section interrupt_vector,CODE ; interrupt_vector section
115 FA04C 1 .org (0FA000H + 76) ; start address is 0FA000H
116 1
117 FA04C 6BCB0F00 1 .lword 0FCB6BH ; UART1 transmit (for KD30)
118 FA050 6BCB0F00 1 .lword 0FCB6BH ; UART1 receive (for KD30)
119 1 ;
120 1 ;-------------------------------------------------------------------------------
121 1 ; fixed intterupt vector tables
122 1 ;-------------------------------------------------------------------------------
123 1 .section fix_interrupt_vector,CODE
124 1 ; fix_interrupt_vector section
* R8C/Tiny,M16C SERIES ASSEMBLER * SOURCE LIST Tue Oct 14 16:11:38 2008 PAGE 003
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
125 FFFFC 1 .org 0FFFFCH
126 1
127 FFFFC 1 reset:
128 FFFFC 00000000r 1 .lword start ; set reset_vector
129 1
130 1 ;******************************************************************************
131 1 ; end of file
132 1 ;******************************************************************************
133 ;==============================================================================
134 ; SFR definition for M16C/60 serials
135 ;==============================================================================
136 .include target.inc ; for M16C/60 serials
137 1 ;""FILE COMMENT""**************************************************************
138 1 ; System Name : This program is only for education.
139 1 ; File Name : target.inc
140 1 ; Contents : SFR definition file for M16C/60 serials (assembly language)
141 1 ; Model : OAKS16-LCD Board
142 1 ; CPU : M16C/60 Serials
143 1 ; Assembler : NC30WA(V.4.00 Release 2 - Entry)
144 1 ; Linker : (ln30) for M16C Family Version 4.00.01
145 1 ; OS : No use
146 1 ; Programer : RENESAS Semiconductor Training Center
147 1 ; Note : Fit to OAKS16-M30620FCAFP(M16C/62 group,16MHz)
148 1 ;******************************************************************************
149 1 ; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION丂AND
150 1 ; RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
151 1 ;******************************************************************************
152 1 ; History : ---
153 1 ;""FILE COMMENT END""**********************************************************
154 1
155 1 ;******************************************************************************
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -