- 218 -
7.3 Modifying MR100 Startup Program
MR100 comes with two types of startup programs as described below.
•
start.a30
This startup program is used when you created a program using the assembly language.
•
crt0mr.a30
This startup program is used when you created a program using the C language.
This program is derived from "start.a30" by adding an initialization routine in C language.
The startup programs perform the following:
•
Initialize the processor after a reset.
•
Initialize C language variables (crt0mr.a30 only).
•
Set the system timer.
•
Initialize MR100's data area.
Copy these startup programs from the directory indicated by environment variable "LIB100" to the current directory.
If necessary, correct or add the sections below:
•
Setting processor mode register
Set a processor mode matched to your system to the processor mode register. (58-60th line in crt0mr.a30)
•
Adding user-required initialization program
When there is an initialization program that is required for your application, add it to the 140th line in the C
language startup program (crt0mr.a30).
•
Enable the 138th – 139th line in the C language startup program (crt0mr.a30) if standard I/O function is
used.
Содержание Emulator System M3T-MR100
Страница 3: ...M3T MR100 4 V 1 00 User s Manual User s Manual Rev 1 00 2007 09 Real time OS for R32C 100 Series...
Страница 6: ......
Страница 14: ......
Страница 16: ...xii...
Страница 18: ......
Страница 78: ......
Страница 242: ......
Страница 269: ...253 235 entry_address alm2 236 name ID_alm2 237 exinf 0x12345678 238 239 240 241 242 End of Configuration 243...
Страница 279: ...263...
Страница 290: ......
Страница 294: ......
Страница 304: ...288...
Страница 306: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M3T MR100 4 V 1 00 REJ10J1523 0100 User s Manual...