📄 startup.lst
字号:
* R8C/Tiny SERIES ASSEMBLER * SOURCE LIST Thu Oct 14 17:30:55 2004 PAGE 001
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
1 ;""FILE COMMENT""**************************************************************
2 ; System Name : for eduction (NO TRANSFERRING)
3 ; File Name : startup.a30
4 ; Contents : start up program (for OAKS8-LCDBoard support library)
5 ; Model : for OAKS8-LCD Board
6 ; CPU : R8C/Tiny series
7 ; Compiler : NC30WA(V.5.30 Release 1)
8 ; OS : not be used
9 ; Programer : RENESAS Semiconductor Training Center
10 ; Note : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
11 ;******************************************************************************
12 ; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
13 ; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
14 ;******************************************************************************
15 ; History : ---
16 ;""FILE COMMENT END""*********************************************************
17
18 ;==============================================================================
19 ; section assign
20 ;==============================================================================
21 .include \work\startup\sect.inc ; section definition file
22 1 ;""FILE COMMENT""**************************************************************
23 1 ; System Name : for eduction (NO TRANSFERRING)
24 1 ; File Name : sect.inc
25 1 ; Contents : section definition (for OAKS8-LCDBoard support library)
26 1 ; Model : for OAKS8-LCD Board
27 1 ; CPU : R8C/Tiny series
28 1 ; Compiler : NC30WA(V.5.30 Release 1)
29 1 ; OS : not be used
30 1 ; Programer : RENESAS Semiconductor Training Center
31 1 ; Note : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
32 1 ;******************************************************************************
33 1 ; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
34 1 ; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
35 1 ;******************************************************************************
36 1 ; History : ---
37 1 ;""FILE COMMENT END""*********************************************************
38 1
39 1 ;===============================================================================
40 1 ; section arrenge
41 1 ;===============================================================================
42 1 ;-------------------------------------------------------------------------------
43 1 ; variable data section (RAM)
44 1 ;-------------------------------------------------------------------------------
45 1 ; static variable with initial value
46 1 .section data_NE,DATA ; static variable with even size
47 00400 1 .org 0400H ; start address 00400H
48 00400 1 data_NE_top:
49 1 .section data_NO,DATA,ALIGN ; static variable with odd size
50 00000 1 data_NO_top:
51 1
52 1 ;-------------------------------------------------------------------------------
53 1 ; static variable without initial value
54 1 .section bss_NE,DATA ; static variable with even size
55 00500 1 .org 0500H ; start address 00500H
56 00500 1 bss_NE_top:
57 1 .section bss_NO,DATA,ALIGN ; static variable with odd size
58 00000 1 bss_NO_top:
59 1
60 1 ;-------------------------------------------------------------------------------
61 1
62 1 ;-------------------------------------------------------------------------------
* R8C/Tiny SERIES ASSEMBLER * SOURCE LIST Thu Oct 14 17:30:55 2004 PAGE 002
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
63 1 ; stack section
64 1 ;-------------------------------------------------------------------------------
65 1 .section stack,DATA ; stack section
66 00600 1 .org 0600H ; start address 00600H
67 000000FFh 1 STACKSIZE .equ 255 ; set stack size(256 bytes)
68 00600 1 stack_top:
69 00600(0000FFH) 1 .blkb STACKSIZE ; confirm stack section
70 1 ; with stack size
71 006FF 1 STACK_INI: ; start up program section
72 1 ; start address CC00H
73 1 ;-------------------------------------------------------------------------------
74 1 ; code section
75 1 ;-------------------------------------------------------------------------------
76 1 .section startup,CODE ; start up program section
77 0CC00 1 .org 0CC00H ; start address CC00H
78 1 ;-------------------------------------------------------------------------------
79 1 .section program,CODE ; program section
80 1 ;-------------------------------------------------------------------------------
81 1 ; fixed data section(ROM)
82 1 ;-------------------------------------------------------------------------------
83 1 ; section to save constant, string
84 1 .section rom_NE,ROMDATA ; constant with even size
85 0F000 1 .org 0F000H ; start address F000H
86 0F000 1 rom_NE_top:
87 1 .section rom_NO,ROMDATA,ALIGN ; constant with odd size
88 00000 1 rom_NO_top:
89 1 ;-------------------------------------------------------------------------------
90 1 ; section to save initial value of static variable with initial value
91 1 .section data_NEI,ROMDATA ; initial value with even size
92 0FC00 1 .org 0FC00H
93 0FC00 1 data_NEI_top:
94 1 .section data_NOI,ROMDATA,ALIGN ; initial value with odd size
95 00000 1 data_NOI_top:
96 1
97 1 ;-------------------------------------------------------------------------------
98 1 ; variable interrupt vector section
99 1 ;-------------------------------------------------------------------------------
100 1 .section interrupt_vector,CODE ; interrupt_vector section
101 0FF38 1 .org (0FEDCH + 23*4) ; start address 0FEDCH
102 1 .glb TimerY ; control key matrix
103 0FF38 00000000r 1 .lword TimerY ; timer Y (for OAKS8-LCDBoard)
104 1
105 0FF4C 1 .org (0FEDCH + 28*4) ;
106 1 .glb Cmp0 ; control LCD
107 0FF4C 00000000r 1 .lword Cmp0 ; timer C (for OAKS8-LCDBoard)
108 1 ;
109 1 ;-------------------------------------------------------------------------------
110 1 ; fixed interrupt vector section
111 1 ; *set ID1 to ID7 code at 00H丄set FFH at FFFC(for KD30 to exchange RS232C to FoUSB)
112 1 ; *when using KD30, fixed vector interrupt can not run in user program
113 1 ;-------------------------------------------------------------------------------
114 1 .section fix_interrupt_vector,CODE
115 1 ; fix_interrupt_vector section
116 0FFDC 1 .org 0FFDCH
117 0FFDC 00000000r 1 .lword DUMMY_INT ; FFDC to F undefine
118 0FFE0 00000000r 1 .lword DUMMY_INT ; FFE0 to 3 overflow
119 0FFE4 00000000r 1 .lword DUMMY_INT ; FFE4 to 7 BRK comm
120 0FFE8 00000000r 1 .lword DUMMY_INT ; FFE8 to B same add
121 0FFEC 00000000r 1 .lword DUMMY_INT ; FFEC to F single s
122 0FFF0 00000000r 1 .lword DUMMY_INT ; FFF0 to 3 monitor
123 0FFF4 00000000r 1 .lword DUMMY_INT ; FFF4 to 7 DBC
124 0FFF8 00000000r 1 .lword DUMMY_INT ; FFF8 to B NMI
* R8C/Tiny SERIES ASSEMBLER * SOURCE LIST Thu Oct 14 17:30:55 2004 PAGE 003
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
125 1 ;
126 0FFFC 1 .org 0FFFCH
127 0FFFC 1 reset:
128 0FFFC 00000000r 1 .lword start + 0FF000000H ; FFFC to F set reset vector
129 1
130 1 ;******************************************************************************
131 1 ; end of file
132 1 ;******************************************************************************
133 ;==============================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -