int_one.s

来自「AVR基本外设测试程序」· S 代码 · 共 41 行

S
41
字号
	.module INT_ONE.C
	.area vector(rom, abs)
	.org 4
	rjmp _int0_ovf
	.area bss(ram, con, rel)
L2:
	.blkb 2
	.area text(rom, con, rel)
	.dbfile C:\avr3\INT_ONE.C
	.dbfunc e int0_ovf _int0_ovf fV
	.dbsym s tms L2 i
	.even
_int0_ovf::
	st -y,R2
	st -y,R3
	in R2,0x3f
	st -y,R2
	.dbline -1
	.dbline 5
; #include"sga.h" 
; /*=============外部中断一 函数==============*/
; #pragma interrupt_handler int0_ovf:3
; void int0_ovf(void)
; {
	.dbline 7
;   static unsigned int tms;
;   tms=TMS;
	lds R2,_TMS
	lds R3,_TMS+1
	sts L2+1,R3
	sts L2,R2
	.dbline -2
L1:
	ld R2,y+
	out 0x3f,R2
	ld R3,y+
	ld R2,y+
	.dbline 0 ; func end
	reti
	.dbend

⌨️ 快捷键说明

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