亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hilon.asm

?? hilon B協議編程
?? ASM
?? 第 1 頁 / 共 4 頁
字號:
	ldb	axl,[cx]+
	cmpb	r0,ykdoing
	jne	not_modi_relay_time
	cmpb	axl,#0ffh
	je	set_null_linkrelay
	ldb	RLI,linkrelayI
	ldb	RLLowU,linkrelayLowU
	ldb	RLOverU,linkrelayOverU
	ldb	RLF,linkrelayF
	ldb	RLPF,linkrelayPF
	stb	axl,RLI[dx]
	call	relay_check_set
	jbsm	rlcheckf,md_link_relay_data_error
	ljmp	do_modify_suc
set_null_linkrelay:
	stb	axl,linkrelayI[dx]
	ljmp	do_modify_suc
;-------------------------------------------------------
relay_check_set:
	rlcheckf	set	tmpflag
	clrbit	rlcheckf
	cmpb	RLI,#0ffh
	je	relay_check_set01
	cmpb	RLI,#00
	je	relay_check_set01
	setbit	rlcheckf
	ret
relay_check_set01:
	cmpb	RLLowU,#0ffh
	je	relay_check_set02
	cmpb	RLLowU,#01
	je	relay_check_set02
	setbit	rlcheckf
	ret
relay_check_set02:
        cmpb    RLOverU,#0ffh
        je      relay_check_set02_a
        cmpb    RLOverU,#04h
	jc	relay_check_set02_end
	cmpb	RLOverU,RLI
	je	relay_check_set02_end
	cmpb	RLOverU,RLLowU
	jne	relay_check_set02_a
        sjmp    relay_check_set02_end

relay_check_set02_a:
	cmpb	RLF,#0ffh
	je	relay_check_set03
	cmpb	RLF,#04
	jc	relay_check_set02_end
	cmpb	RLF,RLI
	je	relay_check_set02_end
	cmpb	RLF,RLLowU
        je      relay_check_set02_end
        cmpb    RLF,RLOverU
	jne	relay_check_set03
relay_check_set02_end:
	setbit	rlcheckf
	ret

relay_check_set03:
	cmpb	RLPF,#0ffh
	je	relay_check_set04
	cmpb	RLPF,#04
	jc	relay_check_set03_end
	cmpb	RLPF,RLI
	je	relay_check_set03_end
	cmpb	RLPF,RLLowU
	je	relay_check_set03_end
	cmpb	RLPF,RLOverU
	je	relay_check_set03_end
	cmpb	RLPF,RLF
	jne	relay_check_set04
relay_check_set03_end:
	setbit	rlcheckf
	ret
relay_check_set04:
	stb	RLI,linkrelayI
        ldb     RLI,linkrelayLowU
        cmpb    RLI,RLLowU
        je      not_need_process_low_voltage_relay
        stb	RLLowU,linkrelayLowU
        cmpb    RLLowU,#0ffh
        jne     low_voltage_process_00
        andb    yk,#0fdh                        ; open the second relay
        call    yk_exe_output
        sjmp    not_need_process_low_voltage_relay
low_voltage_process_00:
        orb     yk,#02h                         ; close the second relay
        call    yk_exe_output
not_need_process_low_voltage_relay:	
	stb	RLOverU,linkrelayOverU
	stb	RLF,linkrelayF
	stb	RLPF,linkrelayPF
	ret
;--------------------------------------------------------------- 
modify_inputfunc_set:
	ldb	axl,reclen
	cmpb	axl,#inputfunc_len
	jne	md_inputfunc_data_error
	ld	bx,#inputfunc
	ldb	axh,#08
save_input_func:
	ldb	axl,[cx]+
	cmpb	axl,#01
	jh	md_inputfunc_data_error
	stb	axl,[bx]+
	djnz	axh,save_input_func
	ljmp	do_modify_suc
md_inputfunc_data_error:
	ljmp	do_modify_dataerr
;----------------------------------------------------------------
clear_part_energy:
; clear part of quantity of electricity
	setbit	crcpassf
	ldb	axl,reclen
	cmpb	axl,#set0_len
	jne	exit_clear_part
	ldb	bxl,[cx]
	cmpb	bxl,#06			; wpa,wpb,wpc,wqa,wqb,wqc
	jc	exit_clear_part
	shlb	bxl,#02
	clrb	bxh
	st	r0,energy_buf[bx]
	st	r0,energy_buf+2[bx]
	st	r0,eng_sum_buf[bx]
	st	r0,eng_sum_buf+2[bx]
	ljmp	do_modify_suc

exit_clear_part:
	sjmp	do_modify_dataerr	
;----------------------------------------------------------------
answer_remote_pulse:
	ldb	axl,reclen
	cmpb	axl,#short_ask_len
	jne	short_ask_ym_error
	ld	sndpt,#sndadd
	ldb	sndlen,#32
	ld	dx,#pulse_buf
	st	r0,cx
;
answer_pulse_count_01:
	ld	ax,[dx]+
	ld	bx,[dx]+
        cmpb    r0,inputfunc[cx]
        jne     answer_pulse_count_02
	stb	r0,[sndpt]+             ; if the channel input yx,not including pulse count
	stb	r0,[sndpt]+
	stb	r0,[sndpt]+
	stb	r0,[sndpt]+ 
        sjmp    answer_pulse_count_03        
answer_pulse_count_02:     
	stb	bxh,[sndpt]+
	stb	bxl,[sndpt]+
	stb	axh,[sndpt]+
	stb	axl,[sndpt]+
answer_pulse_count_03:
        inc     cx
	cmp	cx,#07
        jnh     answer_pulse_count_01
;
	ljmp	do_answer_ending
short_ask_ym_error:
	ljmp	short_ask_data_error
;----------------------------------------------------------------
modify_dead_zone_value:
	setbit	crcpassf
	ldb	axl,reclen
	cmpb	axl,#set0_len
	jne	exit_md_dead_zone
	ldbze	axl,[cx]
	cmpb	axl,#100
	jh	exit_md_dead_zone
	stb	axl,dead_zone
	call	autosending_yc_set
	ljmp	do_modify_suc
exit_md_dead_zone:
	sjmp	do_modify_dataerr				
;----------------------------------------------------------------
clr_part_remote_pulse:
	setbit	crcpassf
	ldb	axl,reclen
	cmpb	axl,#set0_len
	jne	exit_clr_part_pulse
	ldbze	axl,[cx]
	cmpb	axl,#07
	jh	exit_clr_part_pulse
	shl	ax,#02
	st	r0,pulse_buf[ax]
	st	r0,pulse_buf+2[ax]
	ljmp	do_modify_suc
exit_clr_part_pulse:
	sjmp	do_modify_dataerr
;----------------------------------------------------------------
answer_module_normal_name:
	ldb	sndlen,#17
;	bmovm	sndpt,#normal_name,#8		; can't use this style for byte start
	ld	ax,#normal_name
	ld	bxl,#16
answer_name_loop:
	ldb	bxh,[ax]+
	stb	bxh,[sndpt]+
	djnz	bxl,answer_name_loop
	ljmp	do_answer_ending
;----------------------------------------------------------------
answer_module_sequence_num:
	ldb	sndlen,#13
;	bmovm	sndpt,#hdware_edition,#6	; can't use this style for byte start
	ld	ax,#hdware_edition
	ld	bxl,#12
answer_sequence_num_loop:
	ldb	bxh,[ax]+
	stb	bxh,[sndpt]+
	djnz	bxl,answer_sequence_num_loop
	ljmp	do_answer_ending
;----------------------------------------------------------------
answer_dead_zone_value:
	ldb	sndlen,#02
	ldb	bxl,dead_zone
	stb	bxl,[sndpt]+
	ljmp	do_answer_ending
;----------------------------------------------------------------
modify_module_sequence_num:
	setbit	crcpassf
	ldb	axl,reclen
	cmpb	axl,#seq_num_len
	jne	exit_md_seq_number
	ld	bx,#hdware_edition
	ldb	axh,#12
save_sequence_num:
	ldb	axl,[cx]+
	cmpb	axl,#'0'
	jnc	exit_md_seq_number
	cmpb	axl,#'9'				; #####????
	jh	exit_md_seq_number
	stb	axl,[bx]+
	djnz	axh,save_sequence_num
	ljmp	do_modify_suc
exit_md_seq_number:
	ljmp	do_modify_dataerr
;----------------------------------------------------------------
return_debug_msg:
; return message to make sure received correct,just for debug
	ldb	funccode,#7fh
	stb	r0,masaddr
	ldb	axl,#01
	stb	axl,[sndpt]+
	ldb	sndlen,axl
	sjmp	do_answer_ending
;================================================================
do_answer_ending:
	ld	sndpt,#sndadd
	stb	masaddr,objectaddr
	jbsm	brdcastf,exit_without_answer
	call	can_send
	ret
exit_without_answer:
	clrbit	brdcastf
	clrbit	rec_readyf
	ret
;--------------------------------------------------------
do_modify_suc:
	ld	sndpt,#sndadd
	ldb	bxl,#stat_set_normal
	stb	bxl,[sndpt]
	sjmp	do_modify_end_com

do_modify_dataerr:
	clrbit	crcpassf
	ld	sndpt,#sndadd
	ldb	bxl,#stat_data_err
	stb	bxl,[sndpt]
	sjmp	do_modify_end_com

do_modify_funcerr:
	clrbit	crcpassf
	ld	sndpt,#sndadd
	ldb	bxl,#stat_func_err
	stb	bxl,[sndpt]
	sjmp	do_modify_end_com

do_modify_oper_fail:
	clrbit	crcpassf
	ld	sndpt,#sndadd
	ldb	bxl,#stat_oper_fail
	stb	bxl,[sndpt]
	sjmp	do_modify_end_com

do_modify_end_com:
	ldb	sndlen,#01h
	ld	sndpt,#sndadd
	stb	masaddr,objectaddr
	ldb	funccode,#stat_insure
	jbsm	brdcastf,exit_without_answer
	jbcm	crcpassf,exit_without_save
	call	can_send
	setbit	saveflashf
	call	save_csboot0
	ret
exit_without_save:
	call	can_send
	ret
;--------------------------------------------------------
judge_yc_autosending:
	jbcm	autosendf,judge_yc_send_fail
	jbsm	yc_forbidf,judge_yc_send_fail
	jbcm	autosendycf,judge_yc_send_fail
	sjmp	judge_yc_autosend_00
judge_yc_send_fail:
	ret
judge_yc_autosend_00:
	clrbit	autosendycf
	ldb	axl,systemtype
	cmpb	axl,#sys3p4w1ct
	jh	judge_yc_3p3w
	ld	cx,#ua                          ; 3p4w only judge line_n voltage
	ld	dx,#uarem
	sjmp	judge_yc1_autosend
judge_yc1_ask_end:
	ljmp	judge_ask_important_yc
judge_yc_3p3w:
	ld	cx,#uab                         ; 3p3w only judge line_line voltage
	ld	dx,#uabrem
judge_yc1_autosend:
	ld	fx,u_zone
	ldb	exl,#03
judge_yc_3p3w_voltage:
	ld	ax,[cx]+
	ld	bx,[dx]+
	cmp	ax,bx
	jh	judge_yc_3p3w_01
	sub	ax,bx,ax
	sjmp	judge_yc_3p3w_02
judge_yc_3p3w_01:
	sub	ax,bx
judge_yc_3p3w_02:
	cmp	ax,fx
	jh	judge_yc1_ask_end
	djnz	exl,judge_yc_3p3w_voltage

	ld	cx,#ia
	ld	dx,#iarem
	ld	fx,i_zone
	ldb	exl,#03
judge_yc1_current:
	ld	ax,[cx]+
	ld	bx,[dx]+
	cmp	ax,bx
	jh	judge_yc_3p3w_03
	sub	ax,bx,ax
	sjmp	judge_yc_3p3w_04
judge_yc_3p3w_03:
	sub	ax,bx
judge_yc_3p3w_04:
	cmp	ax,fx
	jh	judge_ask_important_yc
	djnz	exl,judge_yc1_current

	ld	ax,in
	ld	bx,inrem
	cmp	ax,bx
	jh	judge_yc_3p3w_05
	sub	ax,bx,ax
	sjmp	judge_yc_3p3w_06
judge_yc_3p3w_05:
	sub	ax,bx
judge_yc_3p3w_06:
	ld	fx,i_zone
	cmp	ax,fx
	jh	judge_ask_important_yc

	ld	ax,freq
	cmp	r0,ax
	je	freq_need_judge_autosend
	cmp	ax,#low_freq_limit
	jnh	not_need_judge_freq_autosend
	cmp	ax,#high_freq_limit
	jh	not_need_judge_freq_autosend
freq_need_judge_autosend:
	ld	bx,freqrem
	cmp	ax,bx
	jh	judge_yc_3p3w_07
	sub	ax,bx,ax
	sjmp	judge_yc_3p3w_08
judge_yc_3p3w_07:
	sub	ax,bx
judge_yc_3p3w_08:
	ld	fx,f_zone
	cmp	ax,fx
	jh	judge_ask_important_yc

not_need_judge_freq_autosend:
	ld	ax,pf
	ld	bx,cosrem
	cmp	ax,bx
	jh	judge_yc_3p3w_09
	sub	ax,bx,ax
	sjmp	judge_yc_3p3w_0a
judge_yc_3p3w_09:
	sub	ax,bx
judge_yc_3p3w_0a:
	cmp	ax,pf_zone
	jnh	judge_yc2_autosend				
judge_ask_important_yc:
	bmovm	#uabrem,#uab,#9
	ld	ax,in
	st	ax,inrem
	ld	ax,freq
	st	ax,freqrem
	ld	ax,pf
	st	ax,cosrem
	call	apply_ask_important_yc
	ret	

judge_yc2_autosend:
	ld	cx,#wfpowl
	ld	dx,#wfpowreml
	ld	gx,p_zonel
	ld	hx,p_zoneh
	ldb	axl,#02
judge_yc2_power:
	push	ax
	ld	ax,[cx]+
	ld	bx,[cx]+
	ld	ex,[dx]+
	ld	fx,[dx]+
	cmpl	ax,ex
	jh	judge_autosend_yc2_01
	sub	ax,ex,ax
	subc	fx,bx
	ld	bx,fx
	sjmp	judge_autosend_yc2_02
judge_autosend_yc2_01:
	sub	ax,ex
	subc	bx,fx
judge_autosend_yc2_02:
	cmpl	ax,gx
	jh	judge_ask_yc2_for_power
	pop	ax
	djnz	axl,judge_yc2_power
	sjmp	judge_yc3_autosend

judge_ask_yc2_for_power:
	pop	ax
	bmovm	#wfpowrem,#wfpowl,#4
	call	apply_ask_common_yc
	ret

judge_yc3_autosend:
	ldb	axl,systemtype
	cmpb	axl,#sys3p4w1ct
	jnh	judge_autosend_yc3_01
	ret
judge_yc3_ask_end:
	ljmp	judge_ask_subordinate_yc
judge_autosend_yc3_01:
	ld	cx,#freqa
	ld	dx,#freqarem
	ld	fx,f_zone
	ldb	exl,#03
judge_yc3_frequent:
	ld	ax,[cx]+
	ld	bx,[dx]+
	cmp	ax,bx
	jh	judge_autosend_yc3_02
	sub	ax,bx,ax
	sjmp	judge_autosend_yc3_03
judge_autosend_yc3_02:
	sub	ax,bx
judge_autosend_yc3_03:
	cmp	ax,fx
	jh	judge_yc3_ask_end
	djnz	exl,judge_yc3_frequent	
	
	ld	cx,#pfa
	ld	dx,#cosarem
	ld	fx,pf_zone
	ldb	exl,#03
judge_yc3_powerfactor:
	ld	ax,[cx]+
	ld	bx,[dx]+
	cmp	ax,bx
	jh	judge_autosend_yc3_04
	sub	ax,bx,ax
	sjmp	judge_autosend_yc3_05

judge_autosend_yc3_04:
	sub	ax,bx
judge_autosend_yc3_05:
	cmp	ax,fx
	jh	judge_yc3_ask_end
	djnz	exl,judge_yc3_powerfactor

	ld	cx,#power_buf
	ld	dx,#wfpowarem
	ld	gx,p_zonel
	st	hx,p_zoneh
	ldb	axl,#06
judge_yc3_power:
	push	ax
	ld	ax,[cx]+
	ld	bx,[cx]+
	ld	ex,[dx]+
	ld	fx,[dx]+
	cmpl	ax,ex
	jh	judge_autosend_yc3_06
	sub	ax,ex,ax
	subc	fx,bx
	ld	bx,fx
	sjmp	judge_autosend_yc3_07
judge_autosend_yc3_06:
	sub	ax,ex
	subc	bx,fx
judge_autosend_yc3_07:
	cmpl	ax,gx
	jh	apply_ask_for_power
	pop	ax
	djnz	axl,judge_yc3_power
	ret

apply_ask_for_power:
	pop	ax
judge_ask_subordinate_yc:
	bmovm	#freqarem,#freqa,#06
	bmovm	#wfpowarem,#power_buf,#12
	call	apply_ask_subordinate_yc
	ret
;--------------------------------------------------------
do_modify_ending_debug:
	ld	sndpt,#sndadd
	ld	recpt,#recadd
	ldb	bxl,reclen
do_md_debug_01:
	ldb	bxh,[recpt]+
	stb	bxh,[sndpt]+
	djnz	bxl,do_md_debug_01

	ld	sndpt,#sndadd
	ldb	bxl,reclen
	stb	bxl,sndlen
	stb	masaddr,objectaddr
	jbsm	brdcastf,exit_without_answer_00
	call	can_send
	ret
exit_without_answer_00:
	ljmp	exit_without_answer
;================================================================
; 	END END END END END 
	end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品污www在线观看| 日韩专区欧美专区| 欧美国产一区在线| 久久久.com| 国产午夜精品久久久久久久| 久久综合九色欧美综合狠狠| 日韩欧美在线影院| 精品理论电影在线| www国产亚洲精品久久麻豆| 精品国产污污免费网站入口| 欧美成人欧美edvon| 久久久亚洲国产美女国产盗摄| 精品福利视频一区二区三区| 久久影视一区二区| 中文在线资源观看网站视频免费不卡| 国产亚洲一本大道中文在线| 国产精品另类一区| 日韩伦理av电影| 亚洲成av人片在线观看无码| 日本aⅴ免费视频一区二区三区| 免费成人深夜小野草| 国产精品一二三| 99久久er热在这里只有精品15 | 成人激情免费网站| jlzzjlzz亚洲女人18| 91福利区一区二区三区| 91精品国模一区二区三区| 在线亚洲一区二区| 欧美怡红院视频| 欧美大胆人体bbbb| 久久午夜电影网| 欧美国产日韩精品免费观看| 中文字幕免费一区| 亚洲六月丁香色婷婷综合久久| 亚洲综合清纯丝袜自拍| 亚洲国产精品视频| 日本aⅴ精品一区二区三区| 轻轻草成人在线| 激情综合网天天干| 成人免费视频国产在线观看| 91丝袜美腿高跟国产极品老师 | 夜色激情一区二区| 亚洲国产视频网站| 免费观看日韩电影| 国产成人精品综合在线观看| 国产美女精品在线| 9l国产精品久久久久麻豆| 精品欧美一区二区久久| 精品国产乱码久久久久久夜甘婷婷| 久久久久综合网| 亚洲精品视频在线| 日韩精品久久久久久| 国产一区二区免费看| 成人精品免费看| 欧美性色黄大片| 精品久久久久久无| 中文字幕五月欧美| 亚洲午夜久久久久久久久久久| 午夜欧美电影在线观看| 国产成人综合在线| 欧美中文一区二区三区| 欧美不卡在线视频| 亚洲免费av高清| 强制捆绑调教一区二区| 成人在线一区二区三区| 欧美亚洲高清一区二区三区不卡| 91精品在线免费观看| 国产欧美日韩亚州综合| 夜夜嗨av一区二区三区| 国产一本一道久久香蕉| 欧美性大战久久久久久久| 91精品国产欧美一区二区成人| 久久只精品国产| 亚洲精品国久久99热| 免费观看久久久4p| 日本道精品一区二区三区| 久久综合成人精品亚洲另类欧美| 一区二区三区四区五区视频在线观看| 久久精品国产99久久6| 99这里只有精品| 日韩精品一区二区三区swag| 一区二区三区在线不卡| 国产成人亚洲精品青草天美| 欧美日韩国产免费一区二区| 亚洲国产精品成人综合| 蜜桃av一区二区三区电影| 91最新地址在线播放| 欧美videos大乳护士334| 久久精品一区二区| 一区二区三区成人在线视频| 成人性生交大片免费看中文| 欧美一区二区三区不卡| 亚洲综合视频在线| 成人激情小说网站| 久久精品欧美一区二区三区麻豆| 日本vs亚洲vs韩国一区三区| 色欧美日韩亚洲| 国产精品成人免费精品自在线观看| 久久电影网站中文字幕| 欧美日韩大陆在线| 亚洲天天做日日做天天谢日日欢| 麻豆视频观看网址久久| 日本韩国一区二区| 亚洲免费av高清| 99久久久无码国产精品| 日本一区二区电影| 国产福利一区在线观看| 欧美不卡一区二区三区四区| 午夜精品视频在线观看| 91福利视频久久久久| 亚洲欧美日韩久久| 91视频观看免费| 成人欧美一区二区三区1314| 国产成人免费在线视频| 久久嫩草精品久久久久| 经典三级视频一区| 欧美一区二区三区视频在线观看 | 国产精品久久久久精k8| 国产成人免费视频一区| 国产日韩欧美综合一区| 经典三级一区二区| 久久免费的精品国产v∧| 国产激情一区二区三区桃花岛亚洲| 欧美sm美女调教| 久久99久久久久久久久久久| 日韩精品一区二区三区在线播放| 免费观看一级特黄欧美大片| 欧美一区二区三区日韩| 激情综合网av| 精品国产伦一区二区三区观看方式 | 欧美极品aⅴ影院| 国产成人亚洲综合a∨猫咪| 国产欧美中文在线| 丰满亚洲少妇av| 国产精品区一区二区三区| 99这里只有久久精品视频| 亚洲免费av在线| 欧美精品久久99| 日韩国产精品大片| 欧美一卡二卡在线| 国产精品资源网| 国产精品乱子久久久久| 色综合天天综合给合国产| 一区二区高清免费观看影视大全| 97精品国产露脸对白| 一区二区三区日韩在线观看| 日韩一区二区免费视频| 国内成人自拍视频| 中文字幕亚洲精品在线观看| 91福利视频久久久久| 日韩精品一卡二卡三卡四卡无卡| 精品久久国产97色综合| 成人美女在线视频| 亚洲在线成人精品| 日韩精品一区二区三区四区| 国产69精品一区二区亚洲孕妇 | 久久99精品久久久久婷婷| 国产清纯在线一区二区www| 91毛片在线观看| 日韩精品欧美精品| 久久精品视频免费观看| 在线观看国产一区二区| 九色综合狠狠综合久久| 亚洲欧洲精品一区二区精品久久久 | 亚洲一区二区三区四区在线免费观看 | 亚洲五月六月丁香激情| 欧美电影免费观看高清完整版在线| 风流少妇一区二区| 天天操天天干天天综合网| 久久精品在线观看| 欧美三级日本三级少妇99| 国产综合久久久久影院| 亚洲激情自拍视频| 欧美va亚洲va国产综合| 色美美综合视频| 蜜臀精品一区二区三区在线观看 | 成人欧美一区二区三区1314| 91麻豆精品国产91久久久使用方法 | 国产成人精品影视| 一区二区三区波多野结衣在线观看 | 一本在线高清不卡dvd| 乱中年女人伦av一区二区| 亚洲图片你懂的| 久久综合久色欧美综合狠狠| 日本精品一级二级| 国产99久久久国产精品免费看| 亚洲18女电影在线观看| 国产精品久久网站| 欧美成人三级电影在线| 欧美性色欧美a在线播放| 成人黄色大片在线观看| 美女视频一区二区三区| 亚洲与欧洲av电影| 日韩一区在线看| 欧美tk丨vk视频| 欧美成人video| 69堂国产成人免费视频| 色诱亚洲精品久久久久久| 国产成人鲁色资源国产91色综| 久久精品免费观看|