📄 sysreg.asm
字号:
*********************************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -