📄 intr_i0.a30
字号:
;""FILE COMMENT""**************************************************************
; System Name : This program is only for education.
; File Name : intr_i0.a30
; Contents : Practice 8-A interrupt control -sample-
; Model : 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 : FOR 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""**********************************************************
;""SUBR COMMENT""**************************************************************
; ID : ---
; Subroutine name : int0
; Function : control INT0 interrupt caused by depressing sw9 every time,
; : and left-shift SingleLED to be turned on.
; Input : NON
; Output : NON
; Called subroutine: _INTint0
; Stack : 16bytes
; Causion : this is an interrupt program.
; : the start address of this program must be set in advance
; : to interrupt vector table in file sect.inc.
; History : ---
;""SUBR COMMENT END""**********************************************************
.section program ; have the same section with C program
.glb ta0 ; global declaration
.glb _abc
ta0:
;rot.b #1,03E4H ; left-shift one bit of SingleLED (rotate)
pushm r0,r1,r2,r3,a0,a1,fb
jsr _abc
popm r0,r1,r2,r3,a0,a1,fb
ta0_end:
reit
;""SUBR COMMENT""**************************************************************
; ID :
; Subroutine name : _ei
; Function : setting enable interrupt flag(俬)( enable interrupt).
; Input : NON
; Output : NON
; Called subroutine : NON
; Stack : 0bytes
; Causion : NON
; History : ---
;""SUBR COMMENT END""**********************************************************
.section program ;
;(Qustion)please write a function
.glb _ei ; global declaration
_ei:
fset I ; setting enable interrupt flag
_ei_end:
rts
;""SUBR COMMENT""**************************************************************
; ID : ---
; Subroutine name : _di
; Function : setting disable interrupt flag(俬)( disable interrupt).
; Input : NON
; Output : NON
; Called subroutine : NON
; Stack : 0bytes
; Causion : NON
; History : ---
;""SUBR COMMENT END""**********************************************************
.section program ;
;(Qustion)please write a function
.glb _di ; global declaration
_di:
fclr I ; clearing enable interrupt falg
_di_end:
rts
.end
;******************************************************************************
; end of file
;******************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -