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