sysreg.asm

来自「TMS320VC33的应用程序 、TMS320VC33的应用程序」· 汇编 代码 · 共 41 行

ASM
41
字号
*********************************************************************************
*  SYSREG.ASM	v1.00								                            *
*  版权(c) 	2003-		北京合众达电子技术有限责任公司			                *
*  设计者:	 刘 宁				                                *
*********************************************************************************
		.file	"sysreg.asm"
		
		.copy	"vc33.inc"	; VC33 Memory-Mapped	Register Declaration

		.def _sysint_enable

*********************************************************************************
*																				*
* 函数定义:uint _sysint_enable(uint setdata) 				  						*
* 功    能:串口初始化                											*
*																				*
* 入口参数:	A---- port:IO空间寄存器的地址									*
* 出口参数:		A---- 回读值													*
* 资源使用:B	       															*
*																				*
*********************************************************************************
_sysint_enable:		LDFI #0,R2
					LDM #0,R3
					LDM IE,R3
					nop
					nop
					nop
					OR R3,R2
					nop
					nop
					nop
					LDI R2,IE
					nop
					nop
					RSBX    GIE        ; enable the interuption
					.if	__far_mode
					FRET
					.else
					RET
					.endif
		             					

⌨️ 快捷键说明

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