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

📄 interruptstatus.asm

📁 智能语音识别避障机器人 // 语音识别+机器人+超声波测距综合应用方案 // 采用特定人识别技术
💻 ASM
字号:
//========================================================================
//	文件名称:	InterruptStatus.asm
//	功能描述:	为C语言提供的设置R_InterruptStatus的接口函数
//	维护记录:	2006-07-11	V1.0
//========================================================================
.external R_InterruptStatus

.code
//==============================================================================
//汇编语言格式:_ClearInterruptStatus
//功能描述:将R_InterruptStatus的与r1对应的位清0
//入口参数:需要清0的位对应的十六进制数
//出口参数:无
//===============================================================================
.public _ClearInterruptStatus
_ClearInterruptStatus: .proc
	push r1,r1 to [sp]
	r1 ^= 0xffff
	r1 &= [R_InterruptStatus]
	[R_InterruptStatus] = r1
	pop r1,r1 from [sp]
	retf
	.endp
//==============================================================================
//汇编语言格式:_ClearInterruptStatus
//功能描述:将R_InterruptStatus的与r1对应的位置1
//入口参数:需要置1的位对应的十六进制数
//出口参数:无
//===============================================================================
.public _SetInterruptStatus
_SetInterruptStatus: .proc
	push r1,r1 to [sp]
	r1 |= [R_InterruptStatus]
	[R_InterruptStatus] = r1
	pop r1,r1 from [sp]
	retf
	.endp
	

⌨️ 快捷键说明

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