Chapter 5 Detailed Applications
- 90 -
5.9 Memory Allocation
This section describes how memory is allocated for the application program data.
Use the section file provided by MR308 to set memory allocation.
MR308 comes with the following two types of section files:
asm_sec.inc
This file is used when you developed your applications with the assembly language.
Refer to page - 91 - for details about each section.
c_sec.inc
This file is used when you developed your applications with the C language.
c_sec.inc is derived from "asm_sec.inc" by adding sections generated by C compiler NC308.
Refer to page - 92 - for details about each section.
Modify the section allocation and start address settings in this file to suit your system.
The following shows how to modify the section file.
e.g.
If you want to change the program section start address from F0000H to F1000H
.section program
.org 0F0000H ; Correct this address to F1000H
.section program
.org 0F1000H ;