📄 sect_i0.inc
字号:
;""FILE COMMENT""**************************************************************
; System Name : This program is only for education.
; File Name : sect_i0.inc
; Contents : Practice 8-A Section definition -for INT0 interrupt sample-
; Model : Fit to OAKS16-LCD Board
; CPU : M16C/60 Serials
; Assembler : NC30WA(V.4.00 Release 2 - Entry)
; Linker : (ln30) for M16C Family Version 4.00.01
; OS : no use
; Programer : RENESAS Semiconductor Training Center
; Note : Fit to OAKS16-M30620FCAFP(M16C/62 group,16MHz)
;******************************************************************************
; COPYRIGHT(C) 2003 RENESAS TECHNOLOGY CORPORATION ALL RIGHTS RESERVED
; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
;******************************************************************************
; History : ---
;""FILE COMMENT END""**********************************************************
;-------------------------------------------------------------------------------
; Caution:
; (1)Memory configuration
; It's unneccessary to mind the attribute being near or far
; if you compile with -fFRAM option.
; 亂-fFRAM option亃
; make default attribute of RAM data become far.
; the default attribute of RAM data(variables) is assigned in near area.
; if you do not want to use near area (64 bytes), should use this option
; to change the assignment.
; when compiling in each practice, -fFRAM option has been used.
;-------------------------------------------------------------------------------
;===============================================================================
; Section assignment
;===============================================================================
;-------------------------------------------------------------------------------
; Variable data area (RAM)
;-------------------------------------------------------------------------------
; area of static variable with initial value
.section data_FE,DATA ; static variable with even number size(far)
.org 00400H ; start address
data_FE_top:
.section data_FO,DATA,ALIGN ; static variable with odd number size(far)
data_FO_top:
;-------------------------------------------------------------------------------
; area of static variable without initial value
.section bss_FE,DATA,ALIGN ; static variable with even number size(far)
bss_FE_top:
.section bss_FO,DATA,ALIGN ; static variable with odd number size(far)
bss_FO_top:
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; stack area
;-------------------------------------------------------------------------------
.section stack,DATA ; stack area
STACKSIZE .equ 256 ; set stack size (256bytes)
stack_top:
.blkb STACKSIZE ; assign stack area based on its size
;
STACK_INI: ; initialize ISP
; (interrupt stack pointer)
;-------------------------------------------------------------------------------
; code area
;-------------------------------------------------------------------------------
.section startup,CODE ; startup program area
.org 0E0000H ;
;-------------------------------------------------------------------------------
.section program,CODE ; program area
;-------------------------------------------------------------------------------
; fixed data area (ROM)
;-------------------------------------------------------------------------------
; area to save constant and character
.section rom_FE,ROMDATA ; constant area for even size (far)
.org 0F0000H ;
rom_FE_top:
.section rom_FO,ROMDATA,ALIGN ; constant area for odd size (far)
rom_FO_top:
;-------------------------------------------------------------------------------
; area to save initial values of static variable with initial value
.section data_FEI,ROMDATA,ALIGN ; for even size (far)
data_FEI_top:
.section data_FOI,ROMDATA,ALIGN ; for odd size (far)
data_FOI_top:
;-------------------------------------------------------------------------------
; variable intterupt vector tables
;-------------------------------------------------------------------------------
.section interrupt_vector,CODE ; interrupt_vector section
.org (0FA000H + 76) ; start address is 0FA000H
.lword 0FCB6BH ; UART1 transmit (for KD30)
.lword 0FCB6BH ; UART1 receive (for KD30)
;
.org (0FA000H + 84)
.glb ta0
.lword ta0 ; INT0 interrupt
;
;-------------------------------------------------------------------------------
; fixed intterupt vector tables
;-------------------------------------------------------------------------------
.section fix_interrupt_vector,CODE
; fix_interrupt_vector section
.org 0FFFFCH
reset:
.lword start ; set reset_vector
;******************************************************************************
; end of file
;******************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -