⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sect.inc

📁 一个瑞萨单片机的程序。。。供大家学习用。。。。。。。。。。。。。。。。。。
💻 INC
字号:
;""FILE COMMENT""**************************************************************
;  System Name : for eduction (NO TRANSFERRING)
;  File Name   : sect.inc
;  Contents    : section definition (for OAKS8-LCDBoard not 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					; start address 0FEDCH

;-------------------------------------------------------------------------------
; fixed interrupt vector section
;-------------------------------------------------------------------------------
        .section        fix_interrupt_vector,CODE
                                                ; fix_interrupt_vector section
		.org			0FFDCH

reset:
		.lword			start		; set reset vector

;******************************************************************************
;       end of file
;******************************************************************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -