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

📄 intr_cmp0.a30

📁 一个瑞萨单片机的程序。。。供大家学习用。。。。。。。。。。。。。。。。。。
💻 A30
字号:
;""FILE COMMENT""**************************************************************
;  System Name : for eduction (NO TRANSFERRING)
;  File Name   : intr_cmp0.a30
;  Contents    : compare 0 interrupt processing
;  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""*********************************************************


;""SUBR COMMENT""**************************************************************
; ID              : ---
; Subroutine name : Cmp0
; function        : control compare 0 (timer C) interrupt
;                 : (used as the substitution of the busy flag for LCD control)
; Input           : none
; Output          : none
; Subroutine used : _INT_cmp0
; Stack           : 16 bytes
; Notice          : interrupt program
;                 : necessary to register the address of interrupt program to the 
;                 : interrupt vector table of the section definition file (sect30.inc)
;                 : that is included in the startup program (ncrt0.a30).
; History         : ---
;""SUBR COMMENT END""**********************************************************
        .section        program         ; same as the C program section
        .glb            Cmp0            ; define interrupt program label globally
                                        ; 
        .glb            _INT_cmp0   	; define compare 0 interrupt program globally
;
Cmp0:									; the label for 
                                        ; the address of the interrupt program,
                                        ; set this label 
                                        ; into the interrupt vector table
;
        pushm   R0,R1,R2,R3,A0,A1,FB    ; save the register values used by 
                                        ; interrupt program in the stack
        fset	I
        jsr     _INT_cmp0				; call compare 0 interrupt function

        popm    R0,R1,R2,R3,A0,A1,FB    ; before return to the program being
                                        ; interrupted, revest register value from stack
Cmp0_end:
        reit                            ; return to the program being interrupted


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

⌨️ 快捷键说明

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