📄 sect.inc
字号:
;""FILE COMMENT""**************************************************************
; System Name : for eduction (NO TRANSFERRING)
; File Name : sect.inc
; Contents : section definition (for OAKS8-LCDBoard support library)
; Model : for OAKS8-LCD Board
; CPU : R8C/Tiny series
; Compiler : NC30WA(V.5.30 Release 1)
; OS : not be used
; Programer : RENESAS Semiconductor Training Center
; Note : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
;******************************************************************************
; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
;******************************************************************************
; History : ---
;""FILE COMMENT END""*********************************************************
;===============================================================================
; section arrenge
;===============================================================================
;-------------------------------------------------------------------------------
; variable data section (RAM)
;-------------------------------------------------------------------------------
; static variable with initial value
.section data_NE,DATA ; static variable with even size
.org 0400H ; start address 00400H
data_NE_top:
.section data_NO,DATA,ALIGN ; static variable with odd size
data_NO_top:
;-------------------------------------------------------------------------------
; static variable without initial value
.section bss_NE,DATA ; static variable with even size
.org 0500H ; start address 00500H
bss_NE_top:
.section bss_NO,DATA,ALIGN ; static variable with odd size
bss_NO_top:
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; stack section
;-------------------------------------------------------------------------------
.section stack,DATA ; stack section
.org 0600H ; start address 00600H
STACKSIZE .equ 255 ; set stack size(256 bytes)
stack_top:
.blkb STACKSIZE ; confirm stack section
; with stack size
STACK_INI: ; start up program section
; start address CC00H
;-------------------------------------------------------------------------------
; code section
;-------------------------------------------------------------------------------
.section startup,CODE ; start up program section
.org 0CC00H ; start address CC00H
;-------------------------------------------------------------------------------
.section program,CODE ; program section
;-------------------------------------------------------------------------------
; fixed data section(ROM)
;-------------------------------------------------------------------------------
; section to save constant, string
.section rom_NE,ROMDATA ; constant with even size
.org 0F000H ; start address F000H
rom_NE_top:
.section rom_NO,ROMDATA,ALIGN ; constant with odd size
rom_NO_top:
;-------------------------------------------------------------------------------
; section to save initial value of static variable with initial value
.section data_NEI,ROMDATA ; initial value with even size
.org 0FC00H
data_NEI_top:
.section data_NOI,ROMDATA,ALIGN ; initial value with odd size
data_NOI_top:
;-------------------------------------------------------------------------------
; variable interrupt vector section
;-------------------------------------------------------------------------------
.section interrupt_vector,CODE ; interrupt_vector section
.org (0FEDCH + 23*4) ; start address 0FEDCH
.glb TimerY ; control key matrix
.lword TimerY ; timer Y (for OAKS8-LCDBoard)
.org (0FEDCH + 28*4) ;
.glb Cmp0 ; control LCD
.lword Cmp0 ; timer C (for OAKS8-LCDBoard)
;
;-------------------------------------------------------------------------------
; fixed interrupt vector section
; *set ID1 to ID7 code at 00H丄set FFH at FFFC(for KD30 to exchange RS232C to FoUSB)
; *when using KD30, fixed vector interrupt can not run in user program
;-------------------------------------------------------------------------------
.section fix_interrupt_vector,CODE
; fix_interrupt_vector section
.org 0FFDCH
.lword DUMMY_INT ; FFDC to F undefined command
.lword DUMMY_INT ; FFE0 to 3 overflow
.lword DUMMY_INT ; FFE4 to 7 BRK command
.lword DUMMY_INT ; FFE8 to B same address
.lword DUMMY_INT ; FFEC to F single step
.lword DUMMY_INT ; FFF0 to 3 monitor timer
.lword DUMMY_INT ; FFF4 to 7 DBC
.lword DUMMY_INT ; FFF8 to B NMI
;
.org 0FFFCH
reset:
.lword start + 0FF000000H ; FFFC to F set reset vector
;******************************************************************************
; end of file
;******************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -