📄 sect_i0.inc
字号:
;""FILE COMMENT""**************************************************************
; System Name : for eduction (NO TRANSFERRING)
; File Name : sect_i0.inc
; Contents : section definition(for OAKS8-LCDBoard not support library but interrupt)
; 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: ; initialization (stack bottom)
; of interrupt stack pointer (ISP)
;-------------------------------------------------------------------------------
; 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 + 29*4) ; start address 0FEDCH
.glb int0 ; define global reference
.lword int0 ; set INT0 start label of
; interrupt program at
; INT0 interrupt vector
;-------------------------------------------------------------------------------
; 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乣F undefined command
.lword DUMMY_INT ; FFE0乣3 overflow
.lword DUMMY_INT ; FFE4乣7 BRK command
.lword DUMMY_INT ; FFE8乣B same address
.lword DUMMY_INT ; FFEC乣F single step
.lword DUMMY_INT ; FFF0乣3 monitor timer
.lword DUMMY_INT ; FFF4乣7 DBC
.lword DUMMY_INT ; FFF8乣B NMI
;
.org 0FFFCH
reset:
.lword start + 0FF000000H ; FFFC乣F set reset vector
;******************************************************************************
; end of file
;******************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -