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

📄 new0001.asm

📁 153按收红外遥控码源码,大edsafasfas
💻 ASM
字号:
clr             Time_Delay
		clr             Time_Delay1

		jbc		Status_1,@STATE_9M_BIT
		jmp		state_first	
		jbc		Status_1,@STATE_2M_BIT
		jmp		state_third	
		bs		Status_1,@STATE_9M_BIT
		jmp             ex_int_ret
state_first:
		mov		a,Time_Int_Count
		sub		a,@IR_TIME_9000US+IR_TIME_4500US+2*IR_TIME_MARGIN
		jbs		FLAG,@C
		jmp		error_return
		
		mov		a,Time_Int_Count
		sub		a,@IR_TIME_9000US+IR_TIME_2250US-2*IR_TIME_MARGIN
		jbc		FLAG,@C
		jmp		error_return

		mov		a,Time_Int_Count
		sub		a,@IR_TIME_9000US+IR_TIME_4500US-2*IR_TIME_MARGIN
		jbs		FLAG,@C
		jmp		SET_SECN_2MS
		inc		Ir_Repeat_Times
		jmp		error_return
SET_SECN_2MS:
		bs		Status_1,@STATE_2M_BIT
		bc		Status_1,@STATE_9M_BIT
		mov		a,@0x20
		mov		Remote_Bit_Count,a
		jmp             ex_int_ret
state_third:

		mov		a,Time_Int_Count
		sub		a,@IR_TIME_2250US+2*IR_TIME_MARGIN
		jbs		FLAG,@C
		jmp		error_return

		mov		a,Time_Int_Count
		sub		a,@IR_TIME_1125US-IR_TIME_MARGIN
		jbs		FLAG,@C
		jmp		error_return
		
		mov		a,Time_Int_Count
		sub		a,@4*IR_TIME_MARGIN
		rrc             Remote_Cmd_Code1
		rrc             Remote_Cmd_Code0
		rrc             Remote_Sys_Code1
		rrc             Remote_Sys_Code0
				
		dec		Remote_Bit_Count
		jbs		FLAG,@Z
		JMP		ex_int_ret
set_ok:
		clr		Ir_Repeat_Times
		bs		Status_1,@IR_KEY_OK_BIT
		bs		Status_1,@IR_KEY_DOWN_UP_BIT
error_return:
		bc		Status_1,@STATE_2M_BIT
		bs		Status_1,@STATE_9M_BIT

ex_int_ret:
		clr             Time_Int_Count













		;----------------------------------------------
		;遥控
		inc		Time_Int_Count
		inc             Time_Delay
		mov		a,Time_Delay
		sub		a,@60d
		jbs		FLAG,@Z
		jmp		return_t_int
		inc             Time_Delay1
		clr		Time_Delay

		mov		a,Time_Delay1
		sub		a,@20d
		jbs		FLAG,@Z
		jmp		return_t_int
		clr             Time_Delay1
		clr             Time_Delay
		mov		a,Status_1
		and		a,@0xFC
		mov		Status_1,a
		;clr		Ir_Repeat_Times
		bc		Status_1,@IR_KEY_DOWN_UP_BIT

return_t_int:	

⌨️ 快捷键说明

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