;--------------------------------------------------------
; File Created by ChiponCC : aolisn inc.
; Version 3.0.4#6752 (Jun  6 2016 11:07:59) (MSVC)
; This file was generated Mon Jul 04 10:17:19 2016
;--------------------------------------------------------
; chipon port for the 16-bit core
;--------------------------------------------------------
;	.file	"../kf8ts27_touch_w_lib.c"
	.radix dec
	.include "KF8TS2716.inc"
;--------------------------------------------------------
; external declarations
;--------------------------------------------------------
	.extern	_init_mcu
	.extern	__R2PCL
	.extern	_TOUCH_DEBUG_TRS_DEAL
	.extern	_TOUCH_DEBUG_SEND_OUT
	.extern	_delay_ms
	.extern	_delay_us
	.extern	_PSW_bits
	.extern	_P0_bits
	.extern	_P2_bits
	.extern	_P1_bits
	.extern	_P3_bits
	.extern	_INTCTL_bits
	.extern	_EIF1_bits
	.extern	_EIF2_bits
	.extern	_T1CTL_bits
	.extern	_PWMCTL_bits
	.extern	_BANK_bits
	.extern	_ADSCANCTL_bits
	.extern	_VDACS_bits
	.extern	_ANSEH_bits
	.extern	_ADCCTL0_bits
	.extern	_OPTR_bits
	.extern	_IP0_bits
	.extern	_IP1_bits
	.extern	_IP2_bits
	.extern	_TR0_bits
	.extern	_TR2_bits
	.extern	_TR1_bits
	.extern	_OSCSTA_bits
	.extern	_IP3_bits
	.extern	_VRECTL_bits
	.extern	_EIE1_bits
	.extern	_EIE2_bits
	.extern	_PCTL_bits
	.extern	_OSCCTL_bits
	.extern	_ANSEL_bits
	.extern	_PUR0_bits
	.extern	_IOCL_bits
	.extern	_ADCCTL1_bits
	.extern	_P0LR_bits
	.extern	_P2LR_bits
	.extern	_P1LR_bits
	.extern	_P3LR_bits
	.extern	_TR3_bits
	.extern	_EIE3_bits
	.extern	_EIF3_bits
	.extern	_CTCTL0_bits
	.extern	_ADCINTCTL_bits
	.extern	_PUR1_bits
	.extern	_PUR2_bits
	.extern	_CTCTL1_bits
	.extern	_INTEDGCTL_bits
	.extern	_VBIASCTL_bits
	.extern	_VBIAS1EN_bits
	.extern	_VBIAS2EN_bits
	.extern	_VDAC_bits
	.extern	_RSCTL_bits
	.extern	_BRCTL_bits
	.extern	_TSCTL_bits
	.extern	_SSCICTL0_bits
	.extern	_SSCICTL1_bits
	.extern	_SSCISTA_bits
	.extern	_SSCIMSK_bits
	.extern	_WDTPS_bits
	.extern	_MULCTL_bits
	.extern	_DIVCTL_bits
	.extern	_LEDCTL_bits
	.extern	_LEDPRE_bits
	.extern	_LEDDATA0_bits
	.extern	_LEDDATA1_bits
	.extern	_LEDDATA2_bits
	.extern	_LEDDATA3_bits
	.extern	_LEDDATA4_bits
	.extern	_LEDDATA5_bits
	.extern	_LEDDATA6_bits
	.extern	_LEDDATA7_bits
	.extern	_LEDOMS1_bits
	.extern	_LEDODS0_bits
	.extern	_LEDOMS0_bits
	.extern	_LEDODS1_bits
	.extern	_LEDLUM_bits
	.extern	_T4CTL_bits
	.extern	_sentbuf1
	.extern	_sentbuf2
	.extern	_sentbuf3
	.extern	_sentbuf4
	.extern	__KF8_LIBi_channel_flag_
	.extern	__KF8_LIBc_channel_
	.extern	__KF8_LIBc_channel_Buf
	.extern	__KF8_LIBi_Date_Change_
	.extern	__KF8_LIBc_baseline_count_
	.extern	__KF8_LIBi_buff_hit_
	.extern	__KF8_LIBi_buff_baseline_
	.extern	__KF8_LIBc_touch_count_
	.extern	_CHS_AMOUNT
	.extern	_TCS_AMOUNT
	.extern	__KF8_Disturb_Protect_Circle_
	.extern	__KF8_DoubleKey_Compages_Limitable_Circle_
	.extern	__KF8_Key_Max_Pressed_Limitable_Circle_
	.extern	__KF8_BaseLine_Update_Circle_Count_For_UP_
	.extern	__KF8_BaseLine_Update_Circle_Count_For_Down_
	.extern	__KF8_Define_Disturb_Channels_Amount_
	.extern	__KF8_BasicLine_UP_Noise_Threshold_
	.extern	__KF8_BasicLine_Down_Noise_Threshold_
	.extern	__KF8_Data_Steady_Threshold_Set_
	.extern	__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_
	.extern	__KF8_Inside_Reference_Channel_Declare_
	.extern	__KF8_Config_Finger_Threshold
	.extern	__KF8_Water_Monitor_
	.extern	__KF8_CONFIG_FINGER_THRESHOLD_IN_WATER_
	.extern	_Double_Key_SET_EN_1
	.extern	_Double_Key_SET_EN_2
	.extern	_Double_Key_SET_EN_3
	.extern	__KF8_TOUCH_CH_EN
	.extern	_T0
	.extern	_PCL
	.extern	_PSW
	.extern	_P0
	.extern	_P2
	.extern	_P1
	.extern	_P3
	.extern	_PCH
	.extern	_INTCTL
	.extern	_EIF1
	.extern	_EIF2
	.extern	_T1L
	.extern	_T1H
	.extern	_T1CTL
	.extern	_PWM1L
	.extern	_PWM1H
	.extern	_PWMCTL
	.extern	_PP1
	.extern	_BANK
	.extern	_ADSCANCTL
	.extern	_VDACS
	.extern	_ANSEH
	.extern	_ADCDATA0H
	.extern	_ADCCTL0
	.extern	_OPTR
	.extern	_IP0
	.extern	_IP1
	.extern	_IP2
	.extern	_TR0
	.extern	_TR2
	.extern	_TR1
	.extern	_OSCSTA
	.extern	_IP3
	.extern	_VRECAL1
	.extern	_VRECTL
	.extern	_EIE1
	.extern	_EIE2
	.extern	_PCTL
	.extern	_OSCCTL
	.extern	_OSCCAL0
	.extern	_ANSEL
	.extern	_PP2
	.extern	_PWM2L
	.extern	_PWM2H
	.extern	_PUR0
	.extern	_IOCL
	.extern	_OSCCAL1
	.extern	_NVMDATAH
	.extern	_NVMDATAL
	.extern	_NVMADDRH
	.extern	_NVMADDRL
	.extern	_NVMCTL0
	.extern	_NVMCTL1
	.extern	_ADCDATA0L
	.extern	_ADCCTL1
	.extern	_P0LR
	.extern	_P2LR
	.extern	_P1LR
	.extern	_P3LR
	.extern	_TR3
	.extern	_EIE3
	.extern	_EIF3
	.extern	_OSCCAL2
	.extern	_OSCCAL3
	.extern	_T3CTL
	.extern	_T3L
	.extern	_ADCDATA1H
	.extern	_ADCDATA1L
	.extern	_CTCTL0
	.extern	_ADCINTCTL
	.extern	_ADCDATA2H
	.extern	_ADCDATA2L
	.extern	_ADCDATA3H
	.extern	_T3H
	.extern	_PUR1
	.extern	_PUR2
	.extern	_CTCTL1
	.extern	_INTEDGCTL
	.extern	_ADCDATA3L
	.extern	_VBIASCTL
	.extern	_VBIAS1EN
	.extern	_VBIAS2EN
	.extern	_VDAC
	.extern	_RSCTL
	.extern	_TXSDR
	.extern	_RXSDR
	.extern	_BRCTL
	.extern	_TSCTL
	.extern	_EUBRGL
	.extern	_EUBRGH
	.extern	_SSCICTL0
	.extern	_SSCICTL1
	.extern	_SSCISTA
	.extern	_SSCIBUFR
	.extern	_SSCIMSK
	.extern	_WDTPS
	.extern	_MULAH
	.extern	_MULAL
	.extern	_MULBH
	.extern	_MULBL
	.extern	_MULCTL
	.extern	_MULRES3
	.extern	_MULRES2
	.extern	_MULRES1
	.extern	_MULRES0
	.extern	_DIVCTL
	.extern	_DIVAH
	.extern	_DIVAL
	.extern	_DIVB
	.extern	_DIVQH
	.extern	_DIVQL
	.extern	_DIVR
	.extern	_LEDCTL
	.extern	_LEDPRE
	.extern	_LEDDATA0
	.extern	_LEDDATA1
	.extern	_LEDDATA2
	.extern	_LEDDATA3
	.extern	_LEDDATA4
	.extern	_LEDDATA5
	.extern	_LEDDATA6
	.extern	_LEDDATA7
	.extern	_LEDOMS1
	.extern	_LEDODS0
	.extern	_LEDOMS0
	.extern	_LEDODS1
	.extern	_VRECAL2
	.extern	_VRECAL3
	.extern	_LEDLUM
	.extern	_T4L
	.extern	_T4H
	.extern	_T4REL
	.extern	_T4REH
	.extern	_T4CTL
	.extern	_RC32KCAL

	.extern I0R1
	.extern I0R7
	.extern I0PSW
	.extern I0PCH
	.extern I1R1
	.extern I1R7
	.extern I1PSW
	.extern I1PCH
	.extern STK11
	.extern STK10
	.extern STK09
	.extern STK08
	.extern STK07
	.extern STK06
	.extern STK05
	.extern STK04
	.extern STK03
	.extern STK02
	.extern STK01
	.extern STK00
;--------------------------------------------------------
; global declarations
;--------------------------------------------------------
	.global	__KF8TS27_Get_Ver_Waterproof_
	.global	__KF8TS27_Touch_TEST_Waterproof_
	.global	__KF8TS27_Touch_Process_Waterproof_
	.global	__KF8TS27_Init_Touch_Waterproof_
	.global	__KF8TS27_Lib_Set_Waterproof_Parameter
	.global	__KF8_lib_Wave_Protect_Time_Count_TS2_W_
	.global	__KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_
	.global	__KF8_lib_Key_Double_Timer_Protect_TS2_W_
	.global	__KF8_Work_Delay_Count_For_Flag_TS2_W_
	.global	__KF8_Touch_Sys_Work_Standing_Flag_TS2_W_
	.global	__KF8_lib_Key_Down_Count_TS2_W_
	.global	__KF8_LIBc_finger_OUT_First_TS2_W_
	.global	__KF8_LIBc_finger_OUT_Second_TS2_W_
	.global	__KF8_LIBc_water_monitor_TS2_W_
	.global	__KF8_LIBc_water_monitor_count_TS2_W_
	.global	__KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	.global	__KF8_LIBc_finger_OUT_Second_MAX_TS2_W_
	.global	__KF8_lib_Finded_MAX_I_TS2_W_
	.global	__KF8_lib_Finded_MAX_J_TS2_W_
	.global	__KF8_lib_Finded_MAX_I_Buf_TS2_W_
	.global	__KF8_lib_Finded_MAX_J_Buf_TS2_W_
	.global	__KF8_lib_Finded_MAX_COUNT_TS2_W_
	.global	__KF8_lib_CH_No_WA_Change_Flag_TS2_W_
	.global	__KF8_lib_CH_DW_Change_Count_TS2_W_
	.global	__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	.global	__KF8_lib_CH_DW_Change_Flag_TS2_W_
	.global	__KF8_lib_CH_UP_Change_Count_TS2_W_
	.global	__KF8_lib_bahualvtemportemp_TS2_W_
	.global	__KF8_lib_Date_Uchar_Temp_TS2_W_
	.global	_change_buf_KF8_Lib_TS2_W_
	.global	_result_temp_KF8_Lib_TS2_W_
	.global	_i_KF8_lib_TS2_W_
	.global	_Addr_Copy_Char_KF8_Lib_TS2_W_
	.global	_Addr_Copy_Int_KF8_Lib_TS2_W_
	.global	__KF8_LIBi_Touch_New_Date_TS2_W_
	.global	__KF8_Temp_Cur_A_TS2_W_
	.global	__KF8_Temp_Cur_B_TS2_W_
	.global	__KF8_LIBt_buff_bit_TS2_W_

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
UD_kf8ts27_touch_w_lib_0	.udata
__KF8_lib_Wave_Protect_Time_Count_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_1	.udata
__KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_2	.udata
__KF8_lib_Key_Double_Timer_Protect_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_3	.udata
__KF8_lib_Touch_Bits_	.res	1

UD_kf8ts27_touch_w_lib_4	.udata
__KF8_Work_Delay_Count_For_Flag_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_5	.udata
__KF8_Touch_Sys_Work_Standing_Flag_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_6	.udata
__KF8_lib_Key_Down_Count_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_7	.udata
__KF8_LIBc_finger_OUT_First_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_8	.udata
__KF8_LIBc_finger_OUT_Second_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_9	.udata
__KF8_LIBc_water_monitor_count_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_10	.udata
__KF8_LIBc_finger_OUT_First_MAX_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_11	.udata
__KF8_LIBc_finger_OUT_Second_MAX_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_12	.udata
__KF8_lib_Finded_MAX_I_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_13	.udata
__KF8_lib_Finded_MAX_J_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_14	.udata
__KF8_lib_Finded_MAX_I_Buf_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_15	.udata
__KF8_lib_Finded_MAX_J_Buf_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_16	.udata
__KF8_lib_Finded_MAX_COUNT_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_17	.udata
__KF8_lib_CH_No_WA_Change_Flag_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_18	.udata
__KF8_lib_CH_DW_Change_Count_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_19	.udata
__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_	.res	4

UD_kf8ts27_touch_w_lib_20	.udata
__KF8_lib_CH_DW_Change_Flag_TS2_W_	.res	4

UD_kf8ts27_touch_w_lib_21	.udata
__KF8_lib_CH_UP_Change_Count_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_22	.udata
__KF8_lib_bahualvtemportemp_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_23	.udata
__KF8_lib_Date_Uchar_Temp_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_24	.udata
_change_buf_KF8_Lib_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_25	.udata
_result_temp_KF8_Lib_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_26	.udata
_i_KF8_lib_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_27	.udata
_Addr_Copy_Char_KF8_Lib_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_28	.udata
_Addr_Copy_Int_KF8_Lib_TS2_W_	.res	1

UD_kf8ts27_touch_w_lib_29	.udata
__KF8_LIBi_Touch_New_Date_TS2_W_	.res	4

UD_kf8ts27_touch_w_lib_30	.udata
__KF8_Temp_Cur_A_TS2_W_	.res	2

UD_kf8ts27_touch_w_lib_31	.udata
__KF8_Temp_Cur_B_TS2_W_	.res	2

;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
UDL_kf8ts27_touch_w_lib_0	.udata
r0x1017	.res	1
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------

ID_kf8ts27_touch_w_lib_0	.idata
__KF8_LIBc_water_monitor_TS2_W_
	.db	0xff


ID_kf8ts27_touch_w_lib_1	.code
__KF8_LIBt_buff_bit_TS2_W_
	RRET R0, #0x01
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x02
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x04
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x08
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x10
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x20
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x40
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x80
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x01
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x02
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x04
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x08
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x10
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x20
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x40
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x80
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x01
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x02
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x04
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x08
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x10
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x00
	RRET R0, #0x20
	RRET R0, #0x00

;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;	.udata_ovr


func.__KF8TS27_Get_Ver_Waterproof_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS27_Get_Ver_Waterproof_	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS27_Get_Ver_Waterproof_	;Function start
; 2 exit points
;	op : RETURN
;	.line	4404; "../kf8ts27_touch_w_lib.c"	return Ver_27_W;
	MOV	R0,# 0x84
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __KF8TS27_Get_Ver_Waterproof_



func.__KF8TS27_Touch_TEST_Waterproof_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS27_Touch_TEST_Waterproof_	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS27_Touch_TEST_Waterproof_	;Function start
; 2 exit points
;	op : INLINEASM
	CLR PSW,0
	BANKSEL __KF8_LIBc_channel_
	RLCR __KF8_LIBc_channel_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV _Addr_Copy_Int_KF8_Lib_TS2_W_,R0
	
;	op : INLINEASM
	;;
	BANKSEL __KF8_lib_Touch_Bits_ ;;
	JB __KF8_lib_Touch_Bits_,3
	JMP Read_T3_IN2
Read_T4_IN2:
	BANKSEL _T4H
	MOV R1,_T4H
	BANKSEL _T4L
	MOV R0,_T4L
	JMP Read_T_End2
Read_T3_IN2:
	BANKSEL _T3H
	MOV R1,_T3H
	BANKSEL _T3L
	MOV R0,_T3L
Read_T_End2:
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_+1,R1
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_,R0
	;;
	CLR PSW,0
	RRC __KF8_LIBi_Touch_New_Date_TS2_W_+1
	RRC __KF8_LIBi_Touch_New_Date_TS2_W_
	;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;偏移量
	ADD R0,# (__KF8_LIBi_buff_hit_ + 1)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	CLR PSW,0
	RRC R1
	ST [R0],R1
	DEC R0
	LD R1,[R0]
	RRC R1
	ST [R0],R1
	;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	ADD __KF8_LIBi_Touch_New_Date_TS2_W_,R1
	INC R0
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	JNB PSW,0
	INC R1
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	ADD R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	BANKSEL __KF8_LIBi_buff_hit_
	ST [R0],R1
	DEC R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_
	BANKSEL __KF8_LIBi_buff_hit_
	ST [R0],R1
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	4261; "../kf8ts27_touch_w_lib.c"	if(!_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Work_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 0
	JMP	_00071_DS_
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_ ;;_KF8_LIBi_buff_hit_ low
	LD R1,[R0]
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ low
	ST [R0],R1
	;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_ ;; _KF8_LIBi_buff_hit_ high
	LD R1,[R0]
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ high
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_ ;;偏移量
	ADD R0, #(__KF8_LIBc_touch_count_)
	MOV R1,#0X00
	BANKSEL __KF8_LIBc_touch_count_
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_ ;;偏移量
	ADD R0, #(__KF8_LIBc_baseline_count_)
	MOV R1,#0x00
	BANKSEL __KF8_LIBc_baseline_count_
	ST [R0],R1
	
;	op : IFX
;	.line	4310; "../kf8ts27_touch_w_lib.c"	if(_KF8_LIBc_channel_==0)
	MOV	R0,# 0x00
	BANKSEL	__KF8_LIBc_channel_
	ORL	R0, __KF8_LIBc_channel_
	JB	PSW, 2
	JMP	_00071_DS_
;	op : +
;	.line	4314; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Date_Uchar_Temp_TS2_W_++;
	BANKSEL	__KF8_lib_Date_Uchar_Temp_TS2_W_
	INC	__KF8_lib_Date_Uchar_Temp_TS2_W_
;	op : >
;swapping arguments (AOP_TYPEs 1/3)
;unsigned compare: left >= lit(0x41=65), size=1
;	.line	4315; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Date_Uchar_Temp_TS2_W_>64) //每扫描1圈记一次，n圈后进入工作状态
	MOV	R0,# 0x41
	BANKSEL	__KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB	R0, __KF8_lib_Date_Uchar_Temp_TS2_W_
;comparing bytes at offset 0
	JB	PSW, 0
	JMP	_00071_DS_
;	op : =
;	.line	4317; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Work_Flag=1;  //进入工作状态
	BANKSEL	__KF8_lib_Touch_Bits_
	SET	__KF8_lib_Touch_Bits_, 0
;	op : LABEL
;	op : INLINEASM
_00071_DS_
	MOV R1,# high (_CHS_AMOUNT+0)
	MOV R0,# low (_CHS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBc_channel_
	INC __KF8_LIBc_channel_
	XOR R0,__KF8_LIBc_channel_
	JNB PSW,2
	CLR __KF8_LIBc_channel_
	
;	op : =
;	.line	4349; "../kf8ts27_touch_w_lib.c"	T3H = 0;T3L = 0;
	BANKSEL	_T3H
	CLR	_T3H
;	op : =
	BANKSEL	_T3L
	CLR	_T3L
;	op : GET_VALUE_AT_ADDRESS
;	.line	4350; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 2
	JMP	_00073_DS_
;	op : INLINEASM
	MOVB #0x00
	CLR 0x53,5
	
;	op : LABEL
;	op : INLINEASM
_00073_DS_
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_
	ADD R0, # low (__KF8_TOUCH_CH_EN+0)
	MOV R1, # high (__KF8_TOUCH_CH_EN+0)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	ORL R0,#0xC0 ;;
	BANKSEL _INTCTL
	CLR _INTCTL,6
	CLR _INTCTL,7 ;
	BANKSEL _CTCTL0
	MOV _CTCTL0,R0
	NOP
	JB _CTCTL0,6 ;
	JMP $-3
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	4382; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 2
	JMP	_00075_DS_
;	op : INLINEASM
	MOVB #0x00
	SET 0x53,5
	
;	op : LABEL
;	op : GET_VALUE_AT_ADDRESS
_00075_DS_
;	.line	4389; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Count_Use_T4)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 3
	JMP	_00077_DS_
;	op : =
;	.line	4391; "../kf8ts27_touch_w_lib.c"	T4L = 0;    T4H = 0; 	T4ON=1;		// T3 T4 如果分频 外部可设置
	BANKSEL	_T4L
	CLR	_T4L
;	op : =
	BANKSEL	_T4H
	CLR	_T4H
;	op : =
	BANKSEL	_T4CTL_bits
	SET	_T4CTL_bits, 0
;	op : LABEL
;	op : =
_00077_DS_
;	.line	4393; "../kf8ts27_touch_w_lib.c"	AIEL=1;		AIEH=1;// 恢复中断使能
	BANKSEL	_INTCTL_bits
	SET	_INTCTL_bits, 6
;	op : =
	BANKSEL	_INTCTL_bits
	SET	_INTCTL_bits, 7
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __KF8TS27_Touch_TEST_Waterproof_



func.__KF8TS27_Touch_Process_Waterproof_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS27_Touch_Process_Waterproof_	;Function start
; 2 exit points
;has an exit
;functions called:
;   __KF8_LIBf_scan_channel_
;   __KF8_LiBf_KEY_Deal_AND_BaseLine_Up
;   __KF8_LIBf_scan_channel_
;   __KF8_LiBf_KEY_Deal_AND_BaseLine_Up
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS27_Touch_Process_Waterproof_	;Function start
; 2 exit points
;	op : INLINEASM
	CLR PSW,0
	BANKSEL __KF8_LIBc_channel_
	RLCR __KF8_LIBc_channel_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV _Addr_Copy_Int_KF8_Lib_TS2_W_,R0
	
;	op : INLINEASM
	;;
	BANKSEL __KF8_lib_Touch_Bits_ ;;
	JB __KF8_lib_Touch_Bits_,3
	JMP Read_T3_IN
Read_T4_IN:
	BANKSEL _T4H
	MOV R1,_T4H
	BANKSEL _T4L
	MOV R0,_T4L
	JMP Read_T_End
Read_T3_IN:
	BANKSEL _T3H
	MOV R1,_T3H
	BANKSEL _T3L
	MOV R0,_T3L
Read_T_End:
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_+1,R1
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_,R0
	;;
	;;---------------------------------
	;;==
	MOV R0,#(2)
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	ADD __KF8_LIBi_Touch_New_Date_TS2_W_,R0
	JNB PSW,0
	INC __KF8_LIBi_Touch_New_Date_TS2_W_+1
	;;==;
	MOV R0,#2
	INC R0
	JMP IIR_Deal_NEXT_1
IIR_Deal_DO_1:
	CLR PSW,0
	RRC __KF8_LIBi_Touch_New_Date_TS2_W_+1
	RRC __KF8_LIBi_Touch_New_Date_TS2_W_
IIR_Deal_NEXT_1:
	DECJZ R0
	JMP IIR_Deal_DO_1
	;;-----------------------------------
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_buff_hit_+0)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_,R1
	INC R0
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_+1,R1 ;
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV R0,__KF8_Temp_Cur_A_TS2_W_
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV __KF8_Temp_Cur_B_TS2_W_,R0
	MOV __KF8_Temp_Cur_B_TS2_W_+1,R1 ;
	;;==
	MOV R0,#(2)
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	ADD __KF8_Temp_Cur_B_TS2_W_,R0
	JNB PSW,0
	INC __KF8_Temp_Cur_B_TS2_W_+1
	;;==;
	MOV R0,#2
	INC R0
	JMP IIR_Deal_NEXT_2
IIR_Deal_DO_2:
	CLR PSW,0
	RRC __KF8_Temp_Cur_B_TS2_W_+1
	RRC __KF8_Temp_Cur_B_TS2_W_
IIR_Deal_NEXT_2:
	DECJZ R0
	JMP IIR_Deal_DO_2 ;
	MOV R0,__KF8_Temp_Cur_B_TS2_W_
	MOV R1,__KF8_Temp_Cur_B_TS2_W_+1
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB __KF8_Temp_Cur_A_TS2_W_,R0
	JB PSW,0
	DEC __KF8_Temp_Cur_A_TS2_W_+1
	SUB __KF8_Temp_Cur_A_TS2_W_+1,R1
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	ADD __KF8_Temp_Cur_A_TS2_W_,R0
	JNB PSW,0
	INC R1
	ADD __KF8_Temp_Cur_A_TS2_W_+1,R1 ;
	MOV R1,__KF8_Temp_Cur_A_TS2_W_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_buff_hit_+0)
	BANKSEL __KF8_LIBi_buff_hit_
	ST[R0],R1
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV R1,__KF8_Temp_Cur_A_TS2_W_+1
	INC R0
	BANKSEL __KF8_LIBi_buff_hit_
	ST[R0],R1
	;;-----------------------------------
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	4006; "../kf8ts27_touch_w_lib.c"	if(!_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Work_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 0
	JMP	_00050_DS_
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_ ;;_KF8_LIBi_buff_hit_ low
	LD R1,[R0]
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ low
	ST [R0],R1
	;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_ ;; _KF8_LIBi_buff_hit_ high
	LD R1,[R0]
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ high
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_ ;;偏移量
	ADD R0, #(__KF8_LIBc_touch_count_)
	MOV R1,#0X00
	BANKSEL __KF8_LIBc_touch_count_
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_ ;;偏移量
	ADD R0, #(__KF8_LIBc_baseline_count_)
	MOV R1,#0x00
	BANKSEL __KF8_LIBc_baseline_count_
	ST [R0],R1
	
;	op : IFX
;	.line	4054; "../kf8ts27_touch_w_lib.c"	if(_KF8_LIBc_channel_==0)
	MOV	R0,# 0x00
	BANKSEL	__KF8_LIBc_channel_
	ORL	R0, __KF8_LIBc_channel_
	JB	PSW, 2
	JMP	_00051_DS_
;	op : INLINEASM
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	INC __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0, #0x40
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB R0, __KF8_lib_Date_Uchar_Temp_TS2_W_
	JB PSW, 0
	JMP label_over
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_, 0
label_over:
	
;	op : GOTO
	JMP	_00051_DS_
;	op : LABEL
;	op : INLINEASM
_00050_DS_
	BANKSEL __KF8_Work_Delay_Count_For_Flag_TS2_W_
	INC __KF8_Work_Delay_Count_For_Flag_TS2_W_
	MOV R0,#0X01
	BANKSEL __KF8_Touch_Sys_Work_Standing_Flag_TS2_W_
	JB PSW,2 ;;255+1的溢出后
	MOV __KF8_Touch_Sys_Work_Standing_Flag_TS2_W_,R0
	
;	op : CALL
;	.line	4099; "../kf8ts27_touch_w_lib.c"	_KF8_LIBf_scan_channel_(); //扫描AD通道,计算变化率，做变化统计
	PAGESEL	__KF8_LIBf_scan_channel_
	CALL	__KF8_LIBf_scan_channel_
	PAGESEL	$
;	op : IFX
;	.line	4101; "../kf8ts27_touch_w_lib.c"	if(_KF8_LIBc_channel_==0)
	MOV	R0,# 0x00
	BANKSEL	__KF8_LIBc_channel_
	ORL	R0, __KF8_LIBc_channel_
	JB	PSW, 2
	JMP	_00051_DS_
;	op : CALL
;	.line	4103; "../kf8ts27_touch_w_lib.c"	_KF8_LiBf_KEY_Deal_AND_BaseLine_Up();
	PAGESEL	__KF8_LiBf_KEY_Deal_AND_BaseLine_Up
	CALL	__KF8_LiBf_KEY_Deal_AND_BaseLine_Up
	PAGESEL	$
;	op : LABEL
;	op : INLINEASM
_00051_DS_
	MOV R1,# high (_CHS_AMOUNT+0)
	MOV R0,# low (_CHS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBc_channel_
	INC __KF8_LIBc_channel_
	XOR R0,__KF8_LIBc_channel_
	JNB PSW,2
	CLR __KF8_LIBc_channel_
	
;	op : =
;	.line	4128; "../kf8ts27_touch_w_lib.c"	T3H = 0;T3L = 0;
	BANKSEL	_T3H
	CLR	_T3H
;	op : =
	BANKSEL	_T3L
	CLR	_T3L
;	op : GET_VALUE_AT_ADDRESS
;	.line	4129; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 2
	JMP	_00053_DS_
;	op : INLINEASM
	MOVB #0x00
	CLR 0x53,5
	
;	op : LABEL
;	op : INLINEASM
_00053_DS_
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_
	ADD R0, # low (__KF8_TOUCH_CH_EN+0)
	MOV R1, # high (__KF8_TOUCH_CH_EN+0)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	ORL R0,#0xC0 ;;
	BANKSEL _INTCTL
	CLR _INTCTL,6
	CLR _INTCTL,7 ;
	BANKSEL _CTCTL0
	MOV _CTCTL0,R0
	NOP
	JB _CTCTL0,6 ;
	JMP $-3
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	4161; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 2
	JMP	_00055_DS_
;	op : INLINEASM
	MOVB #0x00
	SET 0x53,5
	
;	op : LABEL
;	op : GET_VALUE_AT_ADDRESS
_00055_DS_
;	.line	4168; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Count_Use_T4)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 3
	JMP	_00057_DS_
;	op : =
;	.line	4170; "../kf8ts27_touch_w_lib.c"	T4L = 0;    T4H = 0; 	T4ON=1;		// T3 T4 如果分频 外部可设置
	BANKSEL	_T4L
	CLR	_T4L
;	op : =
	BANKSEL	_T4H
	CLR	_T4H
;	op : =
	BANKSEL	_T4CTL_bits
	SET	_T4CTL_bits, 0
;	op : LABEL
;	op : =
_00057_DS_
;	.line	4172; "../kf8ts27_touch_w_lib.c"	AIEL=1;		AIEH=1;// 恢复中断使能
	BANKSEL	_INTCTL_bits
	SET	_INTCTL_bits, 6
;	op : =
	BANKSEL	_INTCTL_bits
	SET	_INTCTL_bits, 7
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __KF8TS27_Touch_Process_Waterproof_



func.__KF8_LIBf_scan_channel_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8_LIBf_scan_channel_	;Function start
; 2 exit points
;has an exit
;functions called:
;   __KF8_lib_Baihualv_get_
;   __KF8_lib_Baihualv_get_
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8_LIBf_scan_channel_	;Function start
; 2 exit points
;	op : INLINEASM
	CLR PSW,0
	BANKSEL __KF8_LIBc_channel_
	RLCR __KF8_LIBc_channel_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV _Addr_Copy_Int_KF8_Lib_TS2_W_,R0
	
;	op : INLINEASM
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,#0x01
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_,R0
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+3)
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0,__KF8_LIBc_channel_
	INC R0
	PAGESEL RLCSel
	JMP RLCSel
RLCDeal:
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	CLR PSW,0
	RLC __KF8_LIBi_Touch_New_Date_TS2_W_
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+3)
RLCSel:
	PAGESEL RLCDeal
	DECJZ R0
	JMP RLCDeal
	
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R1,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R1,#(__KF8_LIBi_buff_hit_+0)
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_buff_hit_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_, R0
	;;;;;;;;;;;;;;;
	INC R1
	BANKSEL __KF8_LIBi_buff_hit_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV (__KF8_Temp_Cur_A_TS2_W_+1), R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R1,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R1,#(__KF8_LIBi_buff_baseline_+0)
	;;;;
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV __KF8_Temp_Cur_B_TS2_W_, R0
	;;;;
	INC R1
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV (__KF8_Temp_Cur_B_TS2_W_+1), R0
	
;	op : CALL
;	.line	2960; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Baihualv_get_();
	PAGESEL	__KF8_lib_Baihualv_get_
	CALL	__KF8_lib_Baihualv_get_
	PAGESEL	$
;	op : INLINEASM
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	PAGESEL lable_06271109
	JB (__KF8_lib_bahualvtemportemp_TS2_W_ + 1),7 ;
	JMP lable_06271109 ;
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,#low(__KF8_BasicLine_UP_Noise_Threshold_)
	MOV R1,#high(__KF8_BasicLine_UP_Noise_Threshold_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R0,__KF8_lib_bahualvtemportemp_TS2_W_
	PAGESEL lable_06271109
	JNB PSW, 0 ;;
	JMP lable_06271109 ;
	BANKSEL __KF8_lib_CH_UP_Change_Count_TS2_W_
	INC __KF8_lib_CH_UP_Change_Count_TS2_W_
lable_06271109:
	
;	op : INLINEASM
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	PAGESEL lable_06261552
	JNB (__KF8_lib_bahualvtemportemp_TS2_W_ + 1),7 ;
	JMP lable_06261552 ;
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,#low(__KF8_BasicLine_Down_Noise_Threshold_)
	MOV R1,#high(__KF8_BasicLine_Down_Noise_Threshold_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R0,__KF8_lib_bahualvtemportemp_TS2_W_
	PAGESEL lable_06261552
	JB PSW, 0 ;;
	JMP lable_06261552 ;
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	MOV R1,(__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+1)
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0 ,__KF8_LIBi_Touch_New_Date_TS2_W_
	AND R1,(__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	ORL R0,R1
	PAGESEL lable_06261552
	JB PSW,2
	JMP lable_06261552
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	MOV R0,(__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+2)
	MOV R1,(__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+3)
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,(__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	AND R1,(__KF8_LIBi_Touch_New_Date_TS2_W_+3)
	ORL R0,R1
	PAGESEL lable_06261552
	JB PSW,2
	JMP lable_06261552
	;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R1,(__KF8_lib_CH_DW_Change_Flag_TS2_W_+1)
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0 ,__KF8_LIBi_Touch_New_Date_TS2_W_
	AND R1,(__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	ORL R0,R1
	PAGESEL lable_06261552
	JB PSW,2
	JMP lable_06261552
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,(__KF8_lib_CH_DW_Change_Flag_TS2_W_+2)
	MOV R1,(__KF8_lib_CH_DW_Change_Flag_TS2_W_+3)
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,(__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	AND R1,(__KF8_LIBi_Touch_New_Date_TS2_W_+3)
	ORL R0,R1
	PAGESEL lable_06261552
	JB PSW,2
	JMP lable_06261552
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Count_TS2_W_
	INC __KF8_lib_CH_DW_Change_Count_TS2_W_
lable_06261552:
;	op : INLINEASM
	;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R0,__KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV _change_buf_KF8_Lib_TS2_W_,R0
	MOV _change_buf_KF8_Lib_TS2_W_+1,R1
	;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+0)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	SUB _change_buf_KF8_Lib_TS2_W_,R1
	INC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	JB PSW,0
	INC R1
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	SUB _change_buf_KF8_Lib_TS2_W_+1,R1
	;;
	PAGESEL _KF8_LIBf_scan_channel_DS_0003
	JB _change_buf_KF8_Lib_TS2_W_+1,7
	JMP _KF8_LIBf_scan_channel_DS_0003
	CPL _change_buf_KF8_Lib_TS2_W_
	CPL _change_buf_KF8_Lib_TS2_W_+1
	INC _change_buf_KF8_Lib_TS2_W_
	JNB PSW,2
	INC _change_buf_KF8_Lib_TS2_W_+1
	;;
_KF8_LIBf_scan_channel_DS_0003:
	MOV R1,#High(__KF8_Data_Steady_Threshold_Set_+0)
	MOV R0,#Low(__KF8_Data_Steady_Threshold_Set_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;
	MOV R1,_change_buf_KF8_Lib_TS2_W_+1
	XOR R1,#0x00
	PAGESEL _KF8_LIBf_scan_channel_DS_0004
	JB PSW,2 ;;
	JMP _KF8_LIBf_scan_channel_DS_0004 ;
	SUB R0,_change_buf_KF8_Lib_TS2_W_ ;;
	PAGESEL _KF8_LIBf_scan_channel_DS_0005
	JB PSW,0 ;;
	JMP _KF8_LIBf_scan_channel_DS_0005 ;
	;;
_KF8_LIBf_scan_channel_DS_0004:
	BANKSEL __KF8_LIBc_channel_
	MOV R0,__KF8_LIBc_channel_
	ADD R0,#(__KF8_LIBc_baseline_count_+0)
	MOV R1,#0x00
	BANKSEL __KF8_LIBc_baseline_count_
	ST [R0],R1
_KF8_LIBf_scan_channel_DS_0005:
	
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+0)
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_
	BANKSEL __KF8_LIBi_Date_Change_
	ST [R0],R1
	INC R0
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	BANKSEL __KF8_LIBi_Date_Change_
	ST [R0],R1
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	3166; "../kf8ts27_touch_w_lib.c"	if(!_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Protect_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 1
	JMP	_00042_DS_
;	op : INLINEASM
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R1,__KF8_lib_CH_DW_Change_Flag_TS2_W_+1
	;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	AND R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	ORL R1,R0
	PAGESEL lable_10301649
	JB PSW,2
	JMP lable_10301649
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_+2
	MOV R1,__KF8_lib_CH_DW_Change_Flag_TS2_W_+3
	;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	AND R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	ORL R1,R0
	PAGESEL lable_06290931
	JNB PSW,2
	JMP lable_06290931
	;;;;;;;;;;;;;;;;;;;;;;;;
lable_10301649:
	MOV R0,#low(__KF8_CONFIG_FINGER_THRESHOLD_IN_WATER_+0)
	MOV R1,#high(__KF8_CONFIG_FINGER_THRESHOLD_IN_WATER_+0)
	PAGESEL lable_06290946
	JMP lable_06290946
	;;;;;;;;;;;;;;;;;;;;;;;;
lable_06290931:
	MOV R0,#low(__KF8_Config_Finger_Threshold+0)
	MOV R1,#high(__KF8_Config_Finger_Threshold+0)
	;;;;;;;;;;;;;;;;;;;;;;
lable_06290946:
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0, _Addr_Copy_Int_KF8_Lib_TS2_W_
	JNB PSW,0
	INC R1
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	INCR __KF8_lib_Date_Uchar_Temp_TS2_W_
	;;;;;;;;;;;;;;;;;
	JNB PSW,2
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_+1,R0
	
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+1)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	PAGESEL lable_06291011
	JNB R1,7
	JMP lable_06291011
	;;;;;;;;;;;;;;;;;;;;
	DEC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R1,__KF8_lib_bahualvtemportemp_TS2_W_
	;;;;;
	INC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	JB PSW,0
	INC R1
	;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	PAGESEL lable_06291011
	JNB PSW,0 ;;
	JMP lable_06291011
	;;;
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV _change_buf_KF8_Lib_TS2_W_+1,R1
	DEC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV _change_buf_KF8_Lib_TS2_W_,R1
	;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	SUB _change_buf_KF8_Lib_TS2_W_,R1
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	JB PSW,0
	INC R1
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	SUB _change_buf_KF8_Lib_TS2_W_+1,R1
	;;;;;;;;;;;;;;;;;;;;;;;;;
	CLR R0
	BANKSEL __KF8_lib_Finded_MAX_COUNT_TS2_W_
	XOR R0,__KF8_lib_Finded_MAX_COUNT_TS2_W_
	PAGESEL lable_06291022
	JB PSW,2
	JMP lable_06291022
	;;; ;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0,__KF8_LIBc_channel_
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV __KF8_lib_Finded_MAX_I_TS2_W_,R0
	;;;
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV R0,_change_buf_KF8_Lib_TS2_W_
	MOV R1,_change_buf_KF8_Lib_TS2_W_+1
	BANKSEL __KF8_lib_Finded_MAX_I_Buf_TS2_W_
	MOV __KF8_lib_Finded_MAX_I_Buf_TS2_W_,R0
	MOV __KF8_lib_Finded_MAX_I_Buf_TS2_W_+1,R1
	;;;
	MOV R0,#0x01
	BANKSEL __KF8_lib_Finded_MAX_COUNT_TS2_W_
	MOV __KF8_lib_Finded_MAX_COUNT_TS2_W_,R0
	PAGESEL lable_06291011
	JMP lable_06291011
lable_06291022:
	; 3433 "../kf8ts27_touch_w_lib.c"
lable_06291042:
	;;;
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV R0,_change_buf_KF8_Lib_TS2_W_
	BANKSEL __KF8_lib_Finded_MAX_J_Buf_TS2_W_
	SUB R0,__KF8_lib_Finded_MAX_J_Buf_TS2_W_
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV R0,_change_buf_KF8_Lib_TS2_W_+1
	JB PSW,0
	INC R0
	BANKSEL __KF8_lib_Finded_MAX_J_Buf_TS2_W_
	SUB R0,__KF8_lib_Finded_MAX_J_Buf_TS2_W_+1
	PAGESEL lable_06291011
	JNB PSW,0 ;;
	JMP lable_06291011
	;;;;
	BANKSEL __KF8_lib_Finded_MAX_I_Buf_TS2_W_
	MOV R0,__KF8_lib_Finded_MAX_I_Buf_TS2_W_
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	SUB R0,_change_buf_KF8_Lib_TS2_W_
	BANKSEL __KF8_lib_Finded_MAX_I_Buf_TS2_W_
	MOV R0,__KF8_lib_Finded_MAX_I_Buf_TS2_W_+1
	JB PSW,0
	INC R0
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	SUB R0,_change_buf_KF8_Lib_TS2_W_+1
	PAGESEL lable_06291124
	JNB PSW,0 ;;
	JMP lable_06291124
	;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0,__KF8_LIBc_channel_
	BANKSEL __KF8_lib_Finded_MAX_J_TS2_W_
	MOV __KF8_lib_Finded_MAX_J_TS2_W_,R0
	;;;
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV R0,_change_buf_KF8_Lib_TS2_W_
	MOV R1,_change_buf_KF8_Lib_TS2_W_+1
	BANKSEL __KF8_lib_Finded_MAX_J_Buf_TS2_W_
	MOV __KF8_lib_Finded_MAX_J_Buf_TS2_W_,R0
	MOV __KF8_lib_Finded_MAX_J_Buf_TS2_W_+1,R1
	PAGESEL lable_06291011
	JMP lable_06291011
	;;;;
lable_06291124:
	;;;
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV R0,__KF8_lib_Finded_MAX_I_TS2_W_
	BANKSEL __KF8_lib_Finded_MAX_J_TS2_W_
	MOV __KF8_lib_Finded_MAX_J_TS2_W_,R0
	;;;
	BANKSEL __KF8_lib_Finded_MAX_I_Buf_TS2_W_
	MOV R0,__KF8_lib_Finded_MAX_I_Buf_TS2_W_
	MOV R1,__KF8_lib_Finded_MAX_I_Buf_TS2_W_+1
	BANKSEL __KF8_lib_Finded_MAX_J_Buf_TS2_W_
	MOV __KF8_lib_Finded_MAX_J_Buf_TS2_W_,R0
	MOV __KF8_lib_Finded_MAX_J_Buf_TS2_W_+1,R1
	;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0,__KF8_LIBc_channel_
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV __KF8_lib_Finded_MAX_I_TS2_W_,R0
	;;;
	BANKSEL _change_buf_KF8_Lib_TS2_W_
	MOV R0,_change_buf_KF8_Lib_TS2_W_
	MOV R1,_change_buf_KF8_Lib_TS2_W_+1
	BANKSEL __KF8_lib_Finded_MAX_I_Buf_TS2_W_
	MOV __KF8_lib_Finded_MAX_I_Buf_TS2_W_,R0
	MOV __KF8_lib_Finded_MAX_I_Buf_TS2_W_+1,R1
lable_06291011:
	
;	op : INLINEASM
	;;
	MOV R1,#Low(6)
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB __KF8_lib_bahualvtemportemp_TS2_W_,R1
	JB PSW,0
	DEC __KF8_lib_bahualvtemportemp_TS2_W_+1
	
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+1)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	PAGESEL _DS_UP_Key_Count_003
	JNB R1,7
	JMP _DS_UP_Key_Count_003
	DEC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R1,__KF8_lib_bahualvtemportemp_TS2_W_ ;
	PAGESEL _DS_UP_Key_Count_002
	JB PSW,0 ;
	JMP _DS_UP_Key_Count_002
_DS_UP_Key_Count_003:
	
;	op : INLINEASM
	BANKSEL __KF8_LIBc_channel_
	MOV R0,__KF8_LIBc_channel_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R1
	MOV R1,#High(_TCS_AMOUNT+0)
	MOV R0,#Low(_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	INC R0
	SUB R0,__KF8_lib_Date_Uchar_Temp_TS2_W_ ;
	PAGESEL _DS_UP_Key_Count_001
	JB PSW,0
	JMP _DS_UP_Key_Count_001
	
;	op : INLINEASM
	MOV R1,# high (_TCS_AMOUNT+0)
	MOV R0,# low (_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CLR PSW,0
	RLC R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	
;	op : INLINEASM
	BANKSEL __KF8_LIBc_channel_
	MOV R1, __KF8_LIBc_channel_
	ADD R1, #(__KF8_LIBc_touch_count_)
	BANKSEL __KF8_LIBc_touch_count_
	LD R0,[R1]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB R0, __KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_010101
	JB PSW, 0
	JMP lable_010101
	BANKSEL __KF8_LIBc_touch_count_
	LD R0,[R1]
	INC R0
	ST [R1],R0
	PAGESEL lable_020202
	JMP lable_020202
lable_010101:
	BANKSEL __KF8_LIBc_touch_count_
	CLR R0
	ST [R1], R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_
	ADD R0, #low (__KF8_TOUCH_CH_EN)
	MOV R1, #high (__KF8_TOUCH_CH_EN)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;;
	CLR PSW,0
	RLC R0
	RLC R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_ , R0
	;;;;;;;;;;;;;;;;;;;;
	ADD R0,#low(__KF8_LIBt_buff_bit_TS2_W_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS2_W_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CPL R0
	BANKSEL __KF8_LIBi_channel_flag_
	AND __KF8_LIBi_channel_flag_, R0
	;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0, __KF8_lib_Date_Uchar_Temp_TS2_W_
	INC R0
	ADD R0,#low(__KF8_LIBt_buff_bit_TS2_W_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS2_W_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CPL R0
	BANKSEL __KF8_LIBi_channel_flag_
	AND (__KF8_LIBi_channel_flag_+1), R0
	;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0, __KF8_lib_Date_Uchar_Temp_TS2_W_
	INC R0
	INC R0
	ADD R0,#low(__KF8_LIBt_buff_bit_TS2_W_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS2_W_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CPL R0
	BANKSEL __KF8_LIBi_channel_flag_
	AND (__KF8_LIBi_channel_flag_+2), R0
	;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0, __KF8_lib_Date_Uchar_Temp_TS2_W_
	INC R0
	INC R0
	INC R0
	ADD R0,#low(__KF8_LIBt_buff_bit_TS2_W_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS2_W_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CPL R0
	BANKSEL __KF8_LIBi_channel_flag_
	AND (__KF8_LIBi_channel_flag_+3), R0
	;;;;
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	;;;;;;;
	MOV R0, #0X00
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	ORL R0, __KF8_lib_Key_Down_Count_TS2_W_
	JB PSW, 2
	DEC __KF8_lib_Key_Down_Count_TS2_W_
	;;;;;;;;;;;;;;;;;
	MOV R0,#0X00
	ORL R0, __KF8_lib_Key_Down_Count_TS2_W_
	PAGESEL lable_030303
	JNB PSW, 2
	JMP lable_030303
	;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV R0, __KF8_LIBc_finger_OUT_First_TS2_W_
	BANKSEL __KF8_LIBc_channel_
	XOR R0, __KF8_LIBc_channel_
	PAGESEL lable_050505
	JB PSW, 2
	JMP lable_050505
	;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV R0, __KF8_LIBc_finger_OUT_Second_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	XOR R0, __KF8_LIBc_finger_OUT_First_TS2_W_
	PAGESEL lable_040404
	JB PSW, 2
	JMP lable_040404
	MOV R0,#0XFF
	MOV __KF8_LIBc_finger_OUT_First_TS2_W_ , R0
	;;;;;;;;;;;;;;;;;
	MOV R0,#0X00
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	MOV __KF8_lib_Key_Down_Count_TS2_W_ ,R0
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	MOV __KF8_LIBc_finger_OUT_First_MAX_TS2_W_,R0
	MOV __KF8_LIBc_finger_OUT_First_MAX_TS2_W_+1,R0
	;;;;;;;;;;;;;;;;;;
	PAGESEL lable_050505
	JMP lable_050505
	;;;;;;;;;
lable_040404:
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV R0, __KF8_LIBc_finger_OUT_Second_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV __KF8_LIBc_finger_OUT_First_TS2_W_ ,R0
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_MAX_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_Second_MAX_TS2_W_
	MOV R1,__KF8_LIBc_finger_OUT_Second_MAX_TS2_W_+1
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	MOV __KF8_LIBc_finger_OUT_First_MAX_TS2_W_,R0
	MOV __KF8_LIBc_finger_OUT_First_MAX_TS2_W_+1,R1
	PAGESEL lable_050505
	JMP lable_050505
lable_030303:
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV R0, #0XFF
	MOV __KF8_LIBc_finger_OUT_First_TS2_W_, R0
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	CLR __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	CLR __KF8_LIBc_finger_OUT_First_MAX_TS2_W_+1
lable_050505:
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV R0,#0XFF
	MOV __KF8_LIBc_finger_OUT_Second_TS2_W_,R0
	MOV R0,#0X00
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS2_W_
	MOV __KF8_lib_Key_Double_Timer_Protect_TS2_W_, R0
	MOV (__KF8_lib_Key_Double_Timer_Protect_TS2_W_+1), R0
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_
	MOV __KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_, R0
	MOV (__KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_+1), R0
	BANKSEL __KF8_LIBc_finger_OUT_Second_MAX_TS2_W_
	CLR __KF8_LIBc_finger_OUT_Second_MAX_TS2_W_
	CLR __KF8_LIBc_finger_OUT_Second_MAX_TS2_W_+1
lable_020202:
	
;	op : INLINEASM
_DS_UP_Key_Count_001:
	
;	op : INLINEASM
	PAGESEL _DS_UP_Key_Count_004
	JMP _DS_UP_Key_Count_004
_DS_UP_Key_Count_002:
;	op : INLINEASM
	MOV R1,# high (_TCS_AMOUNT+0)
	MOV R0,# low (_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	INC R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R1,__KF8_LIBc_channel_
	ADD R1,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R0,[R1]
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL label_18_18_18
	JNB PSW,0 ;;
	JMP label_18_18_18
	BANKSEL __KF8_LIBc_touch_count_
	LD R0,[R1]
	DEC R0
	ST [R1],R0
label_18_18_18:
	
;	op : INLINEASM
_DS_UP_Key_Count_004:
	
;	op : LABEL
;	op : ENDFUNCTION
_00042_DS_
	CRET	
; exit point of __KF8_LIBf_scan_channel_



func.__KF8_LiBf_KEY_Deal_AND_BaseLine_Up	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8_LiBf_KEY_Deal_AND_BaseLine_Up	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8_LiBf_KEY_Deal_AND_BaseLine_Up	;Function start
; 2 exit points
;	op : INLINEASM
	MOV R0,#0x01
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_,R0
	CLR __KF8_LIBi_Touch_New_Date_TS2_W_+1
	CLR __KF8_LIBi_Touch_New_Date_TS2_W_+2
	CLR __KF8_LIBi_Touch_New_Date_TS2_W_+3
	
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS2_W_
	CLR _i_KF8_lib_TS2_W_
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_Judge_:
	MOV R0,#low(_CHS_AMOUNT+0)
	MOV R1,#high(_CHS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL _i_KF8_lib_TS2_W_
	SUB R0,_i_KF8_lib_TS2_W_
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_End_ ;;
	JNB PSW,0 ;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_End_
	;PAGESEL $ ;;
	
;	op : INLINEASM
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_Start_:
	;;
	CLR PSW,0
	BANKSEL _i_KF8_lib_TS2_W_
	RLCR _i_KF8_lib_TS2_W_ ;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV _Addr_Copy_Int_KF8_Lib_TS2_W_,R0
	
;	op : IFX
;	.line	602; "../kf8ts27_touch_w_lib.c"	if(_KF8_Touch_Sys_Work_Standing_Flag_TS2_W_)
	MOV	R0,# 0x00
	BANKSEL	__KF8_Touch_Sys_Work_Standing_Flag_TS2_W_
	ORL	R0, __KF8_Touch_Sys_Work_Standing_Flag_TS2_W_
	JNB	PSW, 2
	JMP	_00030_DS_
;	op : INLINEASM
	MOV R0,#low(__KF8_Inside_Reference_Channel_Declare_+0)
	MOV R1,#high(__KF8_Inside_Reference_Channel_Declare_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;;;;;;;;
	MOV R1,#high(__KF8_TOUCH_CH_EN+0)
	MOV R0,#low(__KF8_TOUCH_CH_EN+0)
	BANKSEL _i_KF8_lib_TS2_W_
	ADD R0, _i_KF8_lib_TS2_W_
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_PW_PRO_DS_0001_
	JB PSW,2
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_PW_PRO_DS_0001_
	;;;
	;;;
	MOV R1,#High(__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_+0)
	MOV R0,#Low(__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0 ;;;
	;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+1)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	DEC R0
	;;;
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0002_
	JB R1,7
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0002_
	LD R1,[R0]
	CPL R1
	INC R1
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0003_
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0003_
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0002_:
	LD R1,[R0]
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0003_:
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB R1,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_PW_PRO_DS_0001_
	JNB PSW,0 ;;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_PW_PRO_DS_0001_
	;;;
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_,1 ;;
	;;;
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS2_W_+1 ;;
	;;;
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_PW_PRO_DS_0001_:
	
;	op : INLINEASM
	MOV R1,#High(__KF8_Define_Disturb_Channels_Amount_+0)
	MOV R0,#Low(__KF8_Define_Disturb_Channels_Amount_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Count_TS2_W_
	MOV R1,__KF8_lib_CH_DW_Change_Count_TS2_W_
	BANKSEL __KF8_lib_CH_UP_Change_Count_TS2_W_
	ADD R1,__KF8_lib_CH_UP_Change_Count_TS2_W_
	;;;;;;;
	SUB R0,R1
	PAGESEL lable_06291651
	JB PSW,0
	JMP lable_06291651
	;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_,1 ;;;
	;;
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS2_W_+1
	BANKSEL __KF8_lib_Touch_Bits_
	CLR __KF8_lib_Touch_Bits_,7 ;;
	PAGESEL lable_06291657
	JMP lable_06291657
lable_06291651:
	;;;
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0, __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_+1
	ORL R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_+2
	ORL R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_+3
	JB PSW,2
	JMP lable_06291657
	BANKSEL __KF8_lib_Touch_Bits_
	JB __KF8_lib_Touch_Bits_,1
	SET __KF8_lib_Touch_Bits_,7
lable_06291657:
	
;	op : LABEL
;	op : INLINEASM
_00030_DS_
	;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+0)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_, R1
	INC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_+1,R1
	PAGESEL lable_06291924
	JB R1,7
	JMP lable_06291924
	;;;;;;;;;;;;;;;;;;;;;;;;
	AND R1,#0X07
	PAGESEL lable_06291924
	JB PSW,2
	JMP lable_06291924
	;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,#low(__KF8_BasicLine_UP_Noise_Threshold_)
	MOV R1,#high(__KF8_BasicLine_UP_Noise_Threshold_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R0,__KF8_lib_bahualvtemportemp_TS2_W_
	JNB PSW, 0
	JMP lable_06292025
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0, _i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_baseline_count_)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1, [R0]
	MOV R0, #(100)
	XOR R1, R0
	JB PSW ,2
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_ ;;_KF8_LIBi_buff_hit_ low
	LD R1,[R0]
	;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ low
	ST [R0],R1
	;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_ ;; _KF8_LIBi_buff_hit_ high
	LD R1,[R0]
	;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_ ;;
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ high
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	CPLR __KF8_LIBi_Touch_New_Date_TS2_W_
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	AND __KF8_lib_CH_DW_Change_Flag_TS2_W_, R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	CPLR (__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	AND (__KF8_lib_CH_DW_Change_Flag_TS2_W_+1), R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	CPLR (__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	AND (__KF8_lib_CH_DW_Change_Flag_TS2_W_+2), R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	CPLR (__KF8_LIBi_Touch_New_Date_TS2_W_+3)
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	AND (__KF8_lib_CH_DW_Change_Flag_TS2_W_+3), R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# low (_TCS_AMOUNT+0)
	MOV R1,# high (_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0, _i_KF8_lib_TS2_W_
	ADD R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1, [R0]
	INC R1
	;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB R1, __KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_06291941
	JB PSW, 0
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_touch_count_
	CLR R1
	ST [R0],R1
	JMP lable_06291941
	;;;;;;;;;;;;
lable_06291924:
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	PAGESEL lable_06292025
	JNB R1,7
	JMP lable_06292025
	MOV __KF8_lib_bahualvtemportemp_TS2_W_+1
	PAGESEL lable_06151941
	JB PSW,2
	JMP lable_06151941
	;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,#low(__KF8_BasicLine_Down_Noise_Threshold_)
	MOV R1,#high(__KF8_BasicLine_Down_Noise_Threshold_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R0,__KF8_lib_bahualvtemportemp_TS2_W_
	PAGESEL lable_06292025
	JB PSW,0
	JMP lable_06292025
lable_06151941:
	;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Touch_Bits_
	PAGESEL lable_06300912
	JB __KF8_lib_Touch_Bits_, 1
	JMP lable_06300912
	;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_baseline_count_+0)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1,[R0]
	XOR R1,#Low(-20) ;;
	PAGESEL lable_06300936
	JNB PSW,2
	JMP lable_06300936
	;;;;;;;;;;;;;;;;;;;;;;
	MOV R1,#High(__KF8_Disturb_Protect_Circle_+0)
	MOV R0,#Low(__KF8_Disturb_Protect_Circle_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	XOR R0,__KF8_lib_Wave_Protect_Time_Count_TS2_W_
	PAGESEL lable_06300941
	JB PSW,2 ;;
	JMP lable_06300941
	;;
	MOV R1,#High(__KF8_Disturb_Protect_Circle_+1)
	MOV R0,#Low(__KF8_Disturb_Protect_Circle_+1)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	XOR R0,(__KF8_lib_Wave_Protect_Time_Count_TS2_W_+1)
	PAGESEL lable_06300941
	JB PSW,2 ;;
	JMP lable_06300941
	;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06300936:
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_,R0
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+1,R1
	;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+2,R0
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+3,R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06300941:
	;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	AND R1,__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+1
	AND R0,__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	ORL R1,R0
	JB PSW,2
	JMP lable_06291941
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	AND R1,__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+3
	AND R0,__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+2
	ORL R1,R0
	PAGESEL lable_06291941
	JB PSW,2
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;;;;;
	;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_,R0
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+1,R1
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+2,R0
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+3,R1
	;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS2_W_+1
	;;;;;;;;;;;;;;;;;;;;;;;;;
	PAGESEL lable_06291941
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;
lable_06300912:
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	ADD R1,#(__KF8_LIBc_baseline_count_+0)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R0,[R1]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;
	MOV R1,#High(__KF8_BaseLine_Update_Circle_Count_For_Down_+0)
	MOV R0,#Low(__KF8_BaseLine_Update_Circle_Count_For_Down_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_06301048
	JB PSW,2
	JMP lable_06301048
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	ADD R1,#(__KF8_LIBc_baseline_count_+0)
	BANKSEL __KF8_LIBc_baseline_count_
	CLR R0
	ST [R1],R0
	;;;;;;;;;;;;;;;;;;
lable_06301048:
	MOV R1,#High(_TCS_AMOUNT+0)
	MOV R0,#Low(_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB R1,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_06291941
	JNB PSW,0 ;;
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_,R0
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+1,R1
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+2,R0
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+3,R1
	;;;;;;;;;;;;;;;;;;;;;;
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;;;
lable_06292025:
	;;;;;;;;;;
	PAGESEL lable_06301109
	BANKSEL __KF8_lib_Touch_Bits_
	JNB __KF8_lib_Touch_Bits_,1 ;;
	JMP lable_06301109
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	CPL R1
	CPL R0
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	AND __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+1,R1
	AND __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_,R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	CPL R1
	CPL R0
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	AND __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+3,R1
	AND __KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_+2,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06301109:
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	ADD R1,#(__KF8_LIBc_baseline_count_+0)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R0,[R1]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;
	MOV R1,#High(__KF8_BaseLine_Update_Circle_Count_For_Down_+0)
	MOV R0,#Low(__KF8_BaseLine_Update_Circle_Count_For_Down_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_06301127
	JNB PSW,2
	JMP lable_06301127
	;;
	MOV R1,#High(__KF8_BaseLine_Update_Circle_Count_For_UP_+0)
	MOV R0,#Low(__KF8_BaseLine_Update_Circle_Count_For_UP_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_06291941
	JB PSW,2
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06301127:
	;;
	;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_baseline_count_+0)
	BANKSEL __KF8_LIBc_baseline_count_
	CLR R1
	ST [R0],R1
	;;;;;;;;;
	;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	PAGESEL lable_06301401
	JNB R1,7
	JMP lable_06301401
	;;;;;;;;;;;;;;;;;
	MOV __KF8_lib_bahualvtemportemp_TS2_W_+1
	PAGESEL lable_06301404
	JB PSW,2
	JMP lable_06301404
	;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,#low(__KF8_BasicLine_Down_Noise_Threshold_)
	MOV R1,#high(__KF8_BasicLine_Down_Noise_Threshold_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	SUB R0,__KF8_lib_bahualvtemportemp_TS2_W_
	PAGESEL lable_06301404
	JNB PSW,0
	JMP lable_06301404
	;;;;;;;;;;;;;;;;;;;;;
	; 1274 "../kf8ts27_touch_w_lib.c"
lable_06301401:
	;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	CPL R1
	CPL R0
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	AND __KF8_lib_CH_DW_Change_Flag_TS2_W_+1,R1
	AND __KF8_lib_CH_DW_Change_Flag_TS2_W_,R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	CPL R1
	CPL R0
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	AND __KF8_lib_CH_DW_Change_Flag_TS2_W_+3,R1
	AND __KF8_lib_CH_DW_Change_Flag_TS2_W_+2,R0
	PAGESEL lable_06301437
	JMP lable_06301437
	;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06301404:
	;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_First_TS2_W_
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	XOR R0,R1
	PAGESEL lable_06291941
	JNB PSW,2
	JMP lable_06291941
	;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_Second_TS2_W_
	XOR R0,R1
	PAGESEL lable_06291941
	JNB PSW,2
	JMP lable_06291941
	;;;;;;;;;;;;
	PAGESEL lable_06291941
	BANKSEL __KF8_lib_Touch_Bits_
	JB __KF8_lib_Touch_Bits_,7 ;;
	JMP lable_06291941
	;;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06301437:
	;;
	;;
	;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_buff_baseline_+0)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_,R1
	INC R0
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_+1,R1
	;;;
	MOV R1,#0x01
_KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0001:
	CLR PSW,0
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	RRC __KF8_Temp_Cur_A_TS2_W_+1
	RRC __KF8_Temp_Cur_A_TS2_W_
	CLR PSW,0
	RLC R1
	MOV R0,R1
	XOR R0,#(8)
	PAGESEL _KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0001
	JB PSW,2
	JMP _KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0001
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_buff_hit_+0)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV __KF8_Temp_Cur_B_TS2_W_,R1
	INC R0
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV __KF8_Temp_Cur_B_TS2_W_+1,R1
	;;;
	MOV R1,#0x01
_KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0002:
	CLR PSW,0
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	RRC __KF8_Temp_Cur_B_TS2_W_+1
	RRC __KF8_Temp_Cur_B_TS2_W_
	CLR PSW,0
	RLC R1
	MOV R0,R1
	XOR R0,#(8)
	PAGESEL _KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0002
	JB PSW,2
	JMP _KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0002
	;;;
	;;;;
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV R1,__KF8_Temp_Cur_A_TS2_W_
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	SUB __KF8_Temp_Cur_B_TS2_W_,R1
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV R1,__KF8_Temp_Cur_A_TS2_W_+1
	JB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	SUB __KF8_Temp_Cur_B_TS2_W_+1,R1
	;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_buff_baseline_+0)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	ADD R1, __KF8_Temp_Cur_B_TS2_W_
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;;
	INC R0
	LD R1,[R0]
	JNB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	ADD R1,__KF8_Temp_Cur_B_TS2_W_+1
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;
	;;
	;;
	;;
	;;
	;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+1)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	PAGESEL lable_06301449
	JB R1,7
	JMP lable_06301449
	;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_buff_baseline_+0)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	ADD R1,#0x01
	ST [R0],R1
	INC R0
	LD R1,[R0]
	JNB PSW,0
	INC R1
	ST [R0],R1
	PAGESEL lable_06291941
	JMP lable_06291941
lable_06301449:
	;;
	DEC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	XOR R1,#0x00
	PAGESEL lable_06301449
	JNB PSW,2
	JMP lable_06301449
	;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_buff_baseline_+0)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	ADD R1,#0xFF
	ST [R0],R1
	INC R0
	LD R1,[R0]
	JB PSW,0
	DEC R1
	ST [R0],R1
lable_06291941:
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	1449; "../kf8ts27_touch_w_lib.c"	LD R1,[R0]
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 1
	JMP	_00032_DS_
;	op : INLINEASM
	;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	ADD R1,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R0,[R1]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;
	MOV R1,#High(_TCS_AMOUNT+0)
	MOV R0,#Low(_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SUB R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0007_
	JNB PSW,0 ;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0007_
	;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	ADD R1,#(__KF8_LIBc_touch_count_+0)
	CLR R0
	BANKSEL __KF8_LIBc_touch_count_
	ST [R1],R0
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0007_:
	
;	op : LABEL
;	op : INLINEASM
_00032_DS_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+1)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_baseline_count_+0)
	;;
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0008_
	JNB R1,7
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0008_
	;;--
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1,[R0]
	DEC R1
	ST [R0],R1
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0009_
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0009_
	;;++
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0008_:
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1,[R0]
	INC R1
	ST [R0],R1
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_DS_0009_:
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	1552; "../kf8ts27_touch_w_lib.c"	if(!_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Protect_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 1
	JMP	_00034_DS_
;	op : INLINEASM
	;;;;;;;;;;;;
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV R0,__KF8_lib_Finded_MAX_I_TS2_W_
	BANKSEL _i_KF8_lib_TS2_W_
	XOR R0,_i_KF8_lib_TS2_W_
	PAGESEL lable_07021644
	JNB PSW,2 ;;
	JMP lable_07021644
	MOV R0,_i_KF8_lib_TS2_W_
	BANKSEL __KF8_lib_Finded_MAX_J_TS2_W_
	XOR R0,__KF8_lib_Finded_MAX_J_TS2_W_
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_Else_IF
	JB PSW,2 ;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_Else_IF
	;;;;;;;;;;;;
lable_07021644:
	;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R1
	;;;
	MOV R1,#High(_TCS_AMOUNT+0)
	MOV R0,#Low(_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;
	SUB R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_07021648
	JNB PSW,0 ;;
	JMP lable_07021648
	;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	INC R1
	ST [R0],R1
	;;;;;;;;;;;;;;;
lable_07021648:
	MOV R1,# high (__KF8_DoubleKey_Compages_Limitable_Circle_+0)
	MOV R0,# low (__KF8_DoubleKey_Compages_Limitable_Circle_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;
	BANKSEL _result_temp_KF8_Lib_TS2_W_
	MOV _result_temp_KF8_Lib_TS2_W_,R0
	;;;;;;;;;;
	MOV R1,# high (__KF8_DoubleKey_Compages_Limitable_Circle_+1)
	MOV R0,# low (__KF8_DoubleKey_Compages_Limitable_Circle_+1)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;
	BANKSEL _result_temp_KF8_Lib_TS2_W_
	MOV (_result_temp_KF8_Lib_TS2_W_+1),R0
	ORL R0,_result_temp_KF8_Lib_TS2_W_
	PAGESEL lable_07021657
	JNB PSW,2
	JMP lable_07021657
	;;;;;;;;;;;;;;;;;;;;;;;;;;
	;;
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	MOV R0, __KF8_lib_Key_Down_Count_TS2_W_
	XOR R0,# 0x01
	PAGESEL lable_07021657
	JB PSW, 2
	JMP lable_07021657
	;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _result_temp_KF8_Lib_TS2_W_
	MOV R0,(_result_temp_KF8_Lib_TS2_W_+1)
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS2_W_
	SUB R0,(__KF8_lib_Key_Double_Timer_Protect_TS2_W_+1)
	PAGESEL lable_ds_
	JB PSW,2
	JMP lable_ds_
	;;;;;;;;;;;
	BANKSEL _result_temp_KF8_Lib_TS2_W_
	MOV R0,_result_temp_KF8_Lib_TS2_W_
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS2_W_
	SUB R0,__KF8_lib_Key_Double_Timer_Protect_TS2_W_
	;;;;;;;;;;;
lable_ds_:
	PAGESEL lable_07021657
	JNB PSW, 0
	JMP lable_07021657
	;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS2_W_
	INC __KF8_lib_Key_Double_Timer_Protect_TS2_W_
	JNB PSW, 2
	INC (__KF8_lib_Key_Double_Timer_Protect_TS2_W_ + 1)
	;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _result_temp_KF8_Lib_TS2_W_
	MOV R0,(_result_temp_KF8_Lib_TS2_W_+1)
	MOV R1,_result_temp_KF8_Lib_TS2_W_
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS2_W_
	XOR R0,(__KF8_lib_Key_Double_Timer_Protect_TS2_W_+1)
	XOR R1,__KF8_lib_Key_Double_Timer_Protect_TS2_W_
	PAGESEL lable_07021657
	ORL R0,R1
	JB PSW,2
	JMP lable_07021657
	;;;;;;
	MOV R0,# 0x02
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	MOV __KF8_lib_Key_Down_Count_TS2_W_, R0
	;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV R0, __KF8_LIBc_finger_OUT_First_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV __KF8_LIBc_finger_OUT_Second_TS2_W_, R0
	;;;;;;;;;;;;;;;;;;
	;;;;;;;;;
	;;;;;;;;;;
lable_07021657:
	;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R1
	;;
	MOV R1,#High(_TCS_AMOUNT+0)
	MOV R0,#Low(_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_End
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	JB PSW,2 ;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_End
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	MOV R0,__KF8_LIBi_channel_flag_
	ORL R0,__KF8_LIBi_channel_flag_+1
	ORL R0,__KF8_LIBi_channel_flag_+2
	ORL R0,__KF8_LIBi_channel_flag_+3
	PAGESEL lable_07021756
	JNB PSW,2 ;;
	JMP lable_07021756
	;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV R0, __KF8_lib_Finded_MAX_I_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	XOR R0, __KF8_LIBc_finger_OUT_First_TS2_W_
	PAGESEL lable_07022000
	JNB PSW,2
	JMP lable_07022000
	;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Finded_MAX_J_TS2_W_
	MOV R0, __KF8_lib_Finded_MAX_J_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	XOR R0, __KF8_LIBc_finger_OUT_First_TS2_W_
	PAGESEL lable_07022000
	JNB PSW,2
	JMP lable_07022000
	;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV R0, __KF8_lib_Finded_MAX_I_TS2_W_
	BANKSEL _i_KF8_lib_TS2_W_
	XOR R0, _i_KF8_lib_TS2_W_
	PAGESEL lable_07022000
	JNB PSW,2
	JMP lable_07022000
	PAGESEL lable_07021902
	JMP lable_07021902
	;;;;;;;;;;;;;;;;;;;;;;;;;
lable_07022000:
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	;;
	MOV R1,#0x01
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	XOR __KF8_lib_Key_Down_Count_TS2_W_,R1
	PAGESEL lable_07021902
	JB PSW ,2
	JMP lable_07021902
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	SWAPR R0, __KF8_LIBc_finger_OUT_First_TS2_W_
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	ORL __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Char_KF8_Lib_TS2_W_
	CLR _Addr_Copy_Char_KF8_Lib_TS2_W_
lable_KF8_SP_LOOP:
	;;;;;;;;;;;;;;;;;;;;;
	MOV R1,# high (_Double_Key_SET_EN_1+0)
	MOV R0,# low (_Double_Key_SET_EN_1+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_07021933
	JNB PSW,2
	JMP lable_07021933
	;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R1,# high (_Double_Key_SET_EN_2+0)
	MOV R0,# low (_Double_Key_SET_EN_2+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_07021933
	JNB PSW,2
	JMP lable_07021933
	;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R1,# high (_Double_Key_SET_EN_3+0)
	MOV R0,# low (_Double_Key_SET_EN_3+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	XOR R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_07021933
	JNB PSW,2
	JMP lable_07021933
	;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Char_KF8_Lib_TS2_W_
	MOV R1,#0X01
	XOR _Addr_Copy_Char_KF8_Lib_TS2_W_,R1
	PAGESEL lable_07021902
	JNB PSW,2
	JMP lable_07021902
	;;;;;;;;;;;;;;;;;;;;
	MOV _Addr_Copy_Char_KF8_Lib_TS2_W_,R1
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	SWAP __KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL lable_KF8_SP_LOOP
	JMP lable_KF8_SP_LOOP
	;;;;;;;;;;;;;;;;;;;;;
lable_07021933:
	MOV R0,#0X02
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	MOV __KF8_lib_Key_Down_Count_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0, _i_KF8_lib_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV __KF8_LIBc_finger_OUT_Second_TS2_W_, R0
	;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	ADD R1,#(__KF8_LIBc_baseline_count_+0)
	BANKSEL __KF8_LIBc_baseline_count_
	CLR R0
	ST [R1],R0
	;;;;;;;;;;;;;;;;;;;;;
	;;
	MOV R1,#High(__KF8_TOUCH_CH_EN+0)
	MOV R0,#Low(__KF8_TOUCH_CH_EN+0)
	BANKSEL _i_KF8_lib_TS2_W_
	ADD R0,_i_KF8_lib_TS2_W_
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CLR PSW,0
	RLC R0
	RLC R0
	ADD R0,#Low(__KF8_LIBt_buff_bit_TS2_W_+0)
	MOV R1,#High(__KF8_LIBt_buff_bit_TS2_W_+0)
	JNB PSW,0
	INC R1
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0 ;;
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	ORL __KF8_LIBi_channel_flag_,R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS2_W_ ;;
	INC R0
	JNB PSW,2
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	ORL __KF8_LIBi_channel_flag_+1,R0
	;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS2_W_ ;;
	INC R0
	INC R0
	JNB PSW,2
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	ORL __KF8_LIBi_channel_flag_+2,R0
	;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS2_W_ ;;
	INC R0
	INC R0
	INC R0
	JNB PSW,2
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	ORL __KF8_LIBi_channel_flag_+3,R0
	;;;;;;;;;;;;;;;;;;;;;;;
	PAGESEL lable_07061503
	JMP lable_07061503
	;;;;;;;;;;;;;
lable_07021902:
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	CLR R1
	ST [R0],R1
	PAGESEL lable_07061503
	JMP lable_07061503
	;;;;;;;;;;;;;;;;;
lable_07021756:
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV R0,__KF8_lib_Finded_MAX_I_TS2_W_
	BANKSEL _i_KF8_lib_TS2_W_
	XOR R0,_i_KF8_lib_TS2_W_
	PAGESEL lable_07061509
	JNB PSW,2 ;;
	JMP lable_07061509
	;;;
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	CLR R1
	BANKSEL __KF8_LIBc_touch_count_
	ST [R0],R1
	PAGESEL lable_07061503
	JMP lable_07061503
	;;;;;;;;;;;;;;;;;
lable_07061509:
	;;
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#Low(__KF8_TOUCH_CH_EN+0)
	MOV R1,#High(__KF8_TOUCH_CH_EN+0)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CLR PSW,0
	RLC R0
	RLC R0
	ADD R0,#Low(__KF8_LIBt_buff_bit_TS2_W_+0)
	MOV R1,#High(__KF8_LIBt_buff_bit_TS2_W_+0)
	JNB PSW,0
	INC R1
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R0
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	MOV __KF8_LIBi_channel_flag_,R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	INC R0
	JNB PSW,2
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	MOV __KF8_LIBi_channel_flag_+1,R0
	;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	INC R0
	INC R0
	JNB PSW,2
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	MOV __KF8_LIBi_channel_flag_+2,R0
	;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	INC R0
	INC R0
	INC R0
	JNB PSW,2
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBi_channel_flag_
	MOV __KF8_LIBi_channel_flag_+3,R0
	;;;;;;;;;;;;;;
	;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV __KF8_LIBc_finger_OUT_First_TS2_W_,R0
	;;
	MOV R1,#0x01
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	MOV __KF8_lib_Key_Down_Count_TS2_W_,R1
	;;
	MOV R0,#0xFF
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV __KF8_LIBc_finger_OUT_Second_TS2_W_,R0
	;;;
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS2_W_
	CLR __KF8_lib_Key_Double_Timer_Protect_TS2_W_+1
	MOV R0,#0X01
	MOV __KF8_lib_Key_Double_Timer_Protect_TS2_W_ ,R0
	;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R1,_i_KF8_lib_TS2_W_
	ADD R1,#(__KF8_LIBc_baseline_count_+0)
	BANKSEL __KF8_LIBc_baseline_count_
	CLR R0
	ST [R1],R0
	;;;;;;;;;;
lable_07061503:
	;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	INC R1
	ST [R0],R1
	;;;
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_End
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_End
	;;;;;;;;;;;;;;
	;;;;;;;;;;;;;;;;;;
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_Else_IF:
	;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	MOV __KF8_lib_Date_Uchar_Temp_TS2_W_,R1
	;;;
	MOV R1,#High(_TCS_AMOUNT+0)
	MOV R0,#Low(_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;
	SUB R0,__KF8_lib_Date_Uchar_Temp_TS2_W_
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_End
	JNB PSW,0 ;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_End
	;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	ADD R0,#(__KF8_LIBc_touch_count_+0)
	CLR R1
	BANKSEL __KF8_LIBc_touch_count_
	ST [R0],R1
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_Key_Get_DS_End:
	
;	op : INLINEASM
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	XOR R0,__KF8_LIBc_finger_OUT_First_TS2_W_
	PAGESEL lable_07061747
	JB PSW ,2
	JMP lable_07061747
	;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+0)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_,R1
	;;;;;;;;;;;;;;;;
	INC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_+1,R1
	;;;;;;;;;;;
	ADD R1,#0X80
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_First_MAX_TS2_W_+1
	ADD R0,#0X80
	;;;;
	SUB R1,R0
	PAGESEL lable_07061742
	JB PSW ,2
	JMP lable_07061742
	;;;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	SUB R1,__KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	;;;
	;;;
lable_07061742:
	PAGESEL lable_07061747
	JNB PSW,0
	JMP lable_07061747
	;;;;;;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R0,__KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	MOV __KF8_LIBc_finger_OUT_First_MAX_TS2_W_,R0
	MOV __KF8_LIBc_finger_OUT_First_MAX_TS2_W_+1,R1
	;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_First_TS2_W_
	BANKSEL __KF8_LIBc_water_monitor_TS2_W_
	MOV __KF8_LIBc_water_monitor_TS2_W_,R0
	;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_water_monitor_count_TS2_W_
	CLR R0
	MOV __KF8_LIBc_water_monitor_count_TS2_W_,R0
	;;;;;;;;;;;
	;;;;;;;;;;;
	;;;;;;;;;
lable_07061747:
	BANKSEL _i_KF8_lib_TS2_W_
	MOV R0,_i_KF8_lib_TS2_W_
	BANKSEL __KF8_LIBc_water_monitor_TS2_W_
	XOR R0, __KF8_LIBc_water_monitor_TS2_W_
	PAGESEL lable_07061649
	JB PSW ,2
	JMP lable_07061649
	;;;;;;;;;;;;
	BANKSEL __KF8_lib_Touch_Bits_
	PAGESEL lable_07061649
	JNB __KF8_lib_Touch_Bits_, 7
	JMP lable_07061649
	;;;;;;
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS2_W_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS2_W_
	ADD R0,#(__KF8_LIBi_Date_Change_+0)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_,R1
	;;;;;;;;;;;;;;;;
	INC R0
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV __KF8_lib_bahualvtemportemp_TS2_W_+1,R1
	;;;;;;;;;;;;;;;;;;;;;;;;;
	PAGESEL lable_06161453
	JNB __KF8_lib_bahualvtemportemp_TS2_W_+1,7
	JMP lable_06161453
	;;;;;;;
	MOV __KF8_lib_bahualvtemportemp_TS2_W_+1
	PAGESEL lable_06161625
	JB PSW,2
	JMP lable_06161625
	;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,#low(__KF8_Water_Monitor_)
	MOV R1,#high(__KF8_Water_Monitor_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;
	SUB R0,__KF8_lib_bahualvtemportemp_TS2_W_
	PAGESEL lable_06161453
	JB PSW,0
	JMP lable_06161453
	;;;;;;;;;;;;;;;;;;
	;;;;;;;;;;;;;;;;
lable_06161625:
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_First_MAX_TS2_W_+1
	ADD R0, #0x80
	ADD R0, #0x80
	PAGESEL lable_06161736
	JB PSW,2
	JMP lable_06161736
	MOV R0, #0x0f
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	SUB R0, __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
lable_06161736:
	PAGESEL lable_06161453
	JB PSW, 0
	JMP lable_06161453
	;;;;;;;;;;;;;;;;;;;
lable_06161451:
	;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_First_MAX_TS2_W_+1
	MOV R1,#0X14
	SUB R1,__KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	JB PSW,0
	DEC R0
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_ ,R1
	MOV __KF8_Temp_Cur_A_TS2_W_+1,R0
	;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_+1
	;;;;;;;;;;;
	ADD R1,#0X80
	ADD R0,#0X80
	SUB R1,R0
	PAGESEL lable_06161810
	JB PSW ,2
	JMP lable_06161810
	;;;;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R1,__KF8_lib_bahualvtemportemp_TS2_W_
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB R1,__KF8_Temp_Cur_A_TS2_W_
	;;;
lable_06161810:
	PAGESEL lable_07061649
	JB PSW,0
	JMP lable_07061649
	;;;;;;;;;
	BANKSEL __KF8_LIBc_water_monitor_count_TS2_W_
	INC __KF8_LIBc_water_monitor_count_TS2_W_
	;;;;;;;;;;;
	MOV R0,#0X0A
	XOR R0,__KF8_LIBc_water_monitor_count_TS2_W_
	PAGESEL lable_07061649
	JB PSW,2
	JMP lable_07061649
	;;;;;;;
	;;;;
	BANKSEL __KF8_LIBc_water_monitor_count_TS2_W_
	CLR __KF8_LIBc_water_monitor_count_TS2_W_
	;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_,R0
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+1,R1
	;;
	BANKSEL __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	CLR __KF8_LIBc_finger_OUT_First_MAX_TS2_W_
	PAGESEL lable_07061649
	JMP lable_07061649
	;;;;;;;;;;
	;;;;;
	;;;
lable_06161453:
	BANKSEL __KF8_LIBc_water_monitor_TS2_W_
	MOV R0,#0xff
	MOV __KF8_LIBc_water_monitor_TS2_W_,R0
	BANKSEL __KF8_LIBc_water_monitor_count_TS2_W_
	CLR __KF8_LIBc_water_monitor_count_TS2_W_
lable_07061649:
	
;	op : LABEL
;	op : LEFT_OP
_00034_DS_
;	.line	2404; "../kf8ts27_touch_w_lib.c"	_KF8_LIBi_Touch_New_Date_TS2_W_<<=1;
	CLR	PSW, 0
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS2_W_
	RLC	__KF8_LIBi_Touch_New_Date_TS2_W_
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS2_W_
	RLC	(__KF8_LIBi_Touch_New_Date_TS2_W_ + 1)
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS2_W_
	RLC	(__KF8_LIBi_Touch_New_Date_TS2_W_ + 2)
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS2_W_
	RLC	(__KF8_LIBi_Touch_New_Date_TS2_W_ + 3)
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS2_W_
	INC _i_KF8_lib_TS2_W_
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_Judge_ ;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_Judge_
	PAGESEL $ ;;
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_FOR_Deal_End_:
	
;	op : INLINEASM
	BANKSEL __KF8_lib_CH_DW_Change_Count_TS2_W_
	CLR __KF8_lib_CH_DW_Change_Count_TS2_W_
	BANKSEL __KF8_lib_CH_UP_Change_Count_TS2_W_
	CLR __KF8_lib_CH_UP_Change_Count_TS2_W_
	;;;
	MOV R0,#0xFF
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV __KF8_lib_Finded_MAX_I_TS2_W_,R0
	BANKSEL __KF8_lib_Finded_MAX_J_TS2_W_
	MOV __KF8_lib_Finded_MAX_J_TS2_W_,R0
	;;;
	BANKSEL __KF8_lib_Finded_MAX_J_Buf_TS2_W_
	CLR __KF8_lib_Finded_MAX_J_Buf_TS2_W_
	CLR __KF8_lib_Finded_MAX_J_Buf_TS2_W_+1
	;;;
	BANKSEL __KF8_lib_Finded_MAX_I_Buf_TS2_W_
	CLR __KF8_lib_Finded_MAX_I_Buf_TS2_W_
	CLR __KF8_lib_Finded_MAX_I_Buf_TS2_W_+1
	;;;
	BANKSEL __KF8_lib_Finded_MAX_COUNT_TS2_W_
	CLR __KF8_lib_Finded_MAX_COUNT_TS2_W_
	;;;
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_Deal_End_
	BANKSEL __KF8_lib_Touch_Bits_
	JB __KF8_lib_Touch_Bits_,1 ;;
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_Deal_End_ ;;
	;;;
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	INC __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	JNB PSW,2
	INC __KF8_lib_Wave_Protect_Time_Count_TS2_W_+1
	;;;
	MOV R1,#High(__KF8_Disturb_Protect_Circle_+0)
	MOV R0,#Low(__KF8_Disturb_Protect_Circle_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_,R0 ;;
	;;
	MOV R1,#High(__KF8_Disturb_Protect_Circle_+1)
	MOV R0,#Low(__KF8_Disturb_Protect_Circle_+1)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_+1,R0 ;;
	;;;
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	MOV R0,__KF8_lib_Wave_Protect_Time_Count_TS2_W_
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB R0,__KF8_Temp_Cur_A_TS2_W_
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS2_W_
	MOV R0,__KF8_lib_Wave_Protect_Time_Count_TS2_W_+1
	JB PSW,0
	INC R0
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB R0,__KF8_Temp_Cur_A_TS2_W_+1
	PAGESEL _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_Deal_End_
	JNB PSW,0
	JMP _KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_Deal_End_
	;;_KF8_lib_Touch_Bits_._bitx_x._bit1_1=0;
	BANKSEL __KF8_lib_Touch_Bits_
	CLR __KF8_lib_Touch_Bits_,1 ;;
_KF8_LiBf_KEY_Deal_AND_BaseLine_Up_DS_Deal_End_:
	
;	op : INLINEASM
	MOV R1,# high (__KF8_Key_Max_Pressed_Limitable_Circle_+0)
	MOV R0,# low (__KF8_Key_Max_Pressed_Limitable_Circle_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_,R0
	;;;;;;;;;;;;;;
	MOV R1,# high (__KF8_Key_Max_Pressed_Limitable_Circle_+1)
	MOV R0,# low (__KF8_Key_Max_Pressed_Limitable_Circle_+1)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV __KF8_Temp_Cur_A_TS2_W_+1,R0
	ORL R0,__KF8_Temp_Cur_A_TS2_W_
	;;;;;;;
	PAGESEL lable_07061952
	JNB PSW,2
	JMP lable_07061952
	;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	MOV R0,__KF8_LIBi_channel_flag_
	ORL R0,__KF8_LIBi_channel_flag_+1
	ORL R0,__KF8_LIBi_channel_flag_+2
	ORL R0,__KF8_LIBi_channel_flag_+3
	PAGESEL lable_07061952
	JNB PSW,2 ;;
	JMP lable_07061952
	;;;;;;;;;;;;;
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_
	INC __KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_
	JNB PSW, 2
	INC (__KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_ + 1)
	;;;;;;;;;;;;;;;;
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV R0,__KF8_Temp_Cur_A_TS2_W_
	MOV R1,__KF8_Temp_Cur_A_TS2_W_+1
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_
	XOR R0,__KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_
	XOR R1,__KF8_lib_MAX_KEY_Vaule_Time_Count_TS2_W_+1
	ORL R0,R1
	PAGESEL lable_07061952
	JB PSW,2
	JMP lable_07061952
	;;;
	BANKSEL __KF8_lib_Touch_Bits_
	CLR __KF8_lib_Touch_Bits_, 7
	;;
	BANKSEL __KF8_lib_Key_Down_Count_TS2_W_
	MOV R0, __KF8_lib_Key_Down_Count_TS2_W_
	XOR R0,# 0x02
	PAGESEL lable_07062010
	JB PSW, 2
	JMP lable_07062010
	;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,#0x01
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_,R0
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+3)
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_Second_TS2_W_
	INC R0
	JMP RLC_07070955
RLCDeal_07070955:
	CLR PSW,0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	RLC __KF8_LIBi_Touch_New_Date_TS2_W_
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+3)
RLC_07070955:
	DECJZ R0
	JMP RLCDeal_07070955
	;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R1,__KF8_lib_CH_DW_Change_Flag_TS2_W_+1
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	AND R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	ORL R0,R1
	PAGESEL lable_10311439
	JB PSW,2
	JMP lable_10311439
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_+2
	MOV R1,__KF8_lib_CH_DW_Change_Flag_TS2_W_+3
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	AND R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	ORL R0,R1
	PAGESEL lable_07071023
	JNB PSW,2
	JMP lable_07071023
lable_10311439:
	;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_Second_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_ ;;_KF8_LIBi_buff_hit_ low
	LD R1,[R0]
	;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_Second_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ low
	ST [R0],R1
	;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_Second_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_ ;; _KF8_LIBi_buff_hit_ high
	LD R1,[R0]
	;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_Second_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;
	ST [R0],R1
	;;;;
	PAGESEL lable_07062010
	JMP lable_07062010
	;;;;;
lable_07071023:
	;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_,R0
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+1,R1
	;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+2,R0
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+3,R1
	;;;;;;
	;;
lable_07062010:
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,#0x01
	MOV __KF8_LIBi_Touch_New_Date_TS2_W_,R0
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	CLR (__KF8_LIBi_Touch_New_Date_TS2_W_+3)
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	MOV R0,__KF8_LIBc_finger_OUT_First_TS2_W_
	INC R0
	JMP RLC_07071019
RLCDeal_07071019:
	CLR PSW,0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	RLC __KF8_LIBi_Touch_New_Date_TS2_W_
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+1)
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+2)
	RLC (__KF8_LIBi_Touch_New_Date_TS2_W_+3)
RLC_07071019:
	DECJZ R0
	JMP RLCDeal_07071019
	;;;;;;;;;
	;;
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R1,__KF8_lib_CH_DW_Change_Flag_TS2_W_+1
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	AND R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	ORL R0,R1
	PAGESEL lable_10311444
	JB PSW,2
	JMP lable_10311444
	;;;;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	MOV R0,__KF8_lib_CH_DW_Change_Flag_TS2_W_+2
	MOV R1,__KF8_lib_CH_DW_Change_Flag_TS2_W_+3
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	AND R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	AND R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	ORL R0,R1
	PAGESEL lable_07071001
	JNB PSW,2
	JMP lable_07071001
lable_10311444:
	;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_First_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_ ;;_KF8_LIBi_buff_hit_ low
	LD R1,[R0]
	;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_First_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;_KF8_LIBi_buff_baseline_ low
	ST [R0],R1
	;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_First_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_ ;; _KF8_LIBi_buff_hit_ high
	LD R1,[R0]
	;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS2_W_
	CLR PSW,0
	RLCR __KF8_LIBc_finger_OUT_First_TS2_W_
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;
	ST [R0],R1
	;;;;
	PAGESEL lable_10221513
	JMP lable_10221513
	;;;;;
lable_07071001:
	;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+1
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_,R0
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+1,R1
	;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS2_W_
	MOV R0,__KF8_LIBi_Touch_New_Date_TS2_W_+2
	MOV R1,__KF8_LIBi_Touch_New_Date_TS2_W_+3
	BANKSEL __KF8_lib_CH_DW_Change_Flag_TS2_W_
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+2,R0
	ORL __KF8_lib_CH_DW_Change_Flag_TS2_W_+3,R1
	;;;;;
lable_10221513:
	; 2862 "../kf8ts27_touch_w_lib.c"
lable_07061952:
	
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __KF8_LiBf_KEY_Deal_AND_BaseLine_Up



func.__KF8TS27_Init_Touch_Waterproof_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS27_Init_Touch_Waterproof_	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS27_Init_Touch_Waterproof_	;Function start
; 2 exit points
;	op : =
;	.line	397; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_En_Base_Update_Flag=1;	 	//初始化			..判断来过水后，基线只允许突然上升，和更窄范围变动
	BANKSEL	__KF8_lib_Touch_Bits_
	SET	__KF8_lib_Touch_Bits_, 7
;	op : =
;	.line	399; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Get_Baihualv_Sign_Flag=0;	//初始化                        ..计算变化率符号缓存标记
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 5
;	op : =
;	.line	401; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Protect_Flag =0;			//初始化                         ..保护不判断，计数还原
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 1
;	op : =
;	.line	402; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Work_Flag =0;				//初始化                         ..其实32圈取样，随后判断按键
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 0
;	op : =
;	.line	408; "../kf8ts27_touch_w_lib.c"	_KF8_Work_Delay_Count_For_Flag_TS2_W_=0;
	BANKSEL	__KF8_Work_Delay_Count_For_Flag_TS2_W_
	CLR	__KF8_Work_Delay_Count_For_Flag_TS2_W_
;	op : =
;	.line	409; "../kf8ts27_touch_w_lib.c"	_KF8_Touch_Sys_Work_Standing_Flag_TS2_W_ = 0;
	BANKSEL	__KF8_Touch_Sys_Work_Standing_Flag_TS2_W_
	CLR	__KF8_Touch_Sys_Work_Standing_Flag_TS2_W_
;	op : =
;	.line	410; "../kf8ts27_touch_w_lib.c"	_KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_=0;
	BANKSEL	__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	CLR	__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	BANKSEL	__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	CLR	(__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_ + 1)
	BANKSEL	__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	CLR	(__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_ + 2)
	BANKSEL	__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_
	CLR	(__KF8_lib_CH_DW_Change_Dealed_Flag_TS2_W_ + 3)
;	op : =
;	.line	412; "../kf8ts27_touch_w_lib.c"	_KF8_lib_CH_DW_Change_Flag_TS2_W_=0;
	BANKSEL	__KF8_lib_CH_DW_Change_Flag_TS2_W_
	CLR	__KF8_lib_CH_DW_Change_Flag_TS2_W_
	BANKSEL	__KF8_lib_CH_DW_Change_Flag_TS2_W_
	CLR	(__KF8_lib_CH_DW_Change_Flag_TS2_W_ + 1)
	BANKSEL	__KF8_lib_CH_DW_Change_Flag_TS2_W_
	CLR	(__KF8_lib_CH_DW_Change_Flag_TS2_W_ + 2)
	BANKSEL	__KF8_lib_CH_DW_Change_Flag_TS2_W_
	CLR	(__KF8_lib_CH_DW_Change_Flag_TS2_W_ + 3)
;	op : =
;	.line	415; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Finded_MAX_I_Buf_TS2_W_=0;_KF8_lib_Finded_MAX_J_Buf_TS2_W_=0;
	BANKSEL	__KF8_lib_Finded_MAX_I_Buf_TS2_W_
	CLR	__KF8_lib_Finded_MAX_I_Buf_TS2_W_
	BANKSEL	__KF8_lib_Finded_MAX_I_Buf_TS2_W_
	CLR	(__KF8_lib_Finded_MAX_I_Buf_TS2_W_ + 1)
;	op : =
	BANKSEL	__KF8_lib_Finded_MAX_J_Buf_TS2_W_
	CLR	__KF8_lib_Finded_MAX_J_Buf_TS2_W_
	BANKSEL	__KF8_lib_Finded_MAX_J_Buf_TS2_W_
	CLR	(__KF8_lib_Finded_MAX_J_Buf_TS2_W_ + 1)
;	op : =
;	.line	416; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Finded_MAX_COUNT_TS2_W_=0;
	BANKSEL	__KF8_lib_Finded_MAX_COUNT_TS2_W_
	CLR	__KF8_lib_Finded_MAX_COUNT_TS2_W_
;	op : =
;	.line	417; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Key_Down_Count_TS2_W_=0;
	BANKSEL	__KF8_lib_Key_Down_Count_TS2_W_
	CLR	__KF8_lib_Key_Down_Count_TS2_W_
;	op : INLINEASM
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;set 0xFF
	MOV R0,#0xFF
	BANKSEL __KF8_lib_Finded_MAX_I_TS2_W_
	MOV __KF8_lib_Finded_MAX_I_TS2_W_,R0
	BANKSEL __KF8_lib_Finded_MAX_J_TS2_W_
	MOV __KF8_lib_Finded_MAX_J_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,#low(_CHS_AMOUNT)
	MOV R1,#high(_CHS_AMOUNT)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_LIBc_channel_
	MOV __KF8_LIBc_channel_,R0
	; 463 "../kf8ts27_touch_w_lib.c"
	;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	CLR __KF8_LIBc_channel_
	;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	CLR __KF8_LIBi_channel_flag_
	BANKSEL __KF8_LIBi_channel_flag_
	CLR (__KF8_LIBi_channel_flag_+1)
	CLR (__KF8_LIBi_channel_flag_+2)
	CLR (__KF8_LIBi_channel_flag_+3)
	;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS2_W_
	CLR __KF8_lib_Date_Uchar_Temp_TS2_W_
	;;;;;;;;;;;;;;
	
;	op : INLINEASM
	MOV R0, # low (__KF8_TOUCH_CH_EN+0)
	MOV R1, # high (__KF8_TOUCH_CH_EN+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	ORL R0,#0x80
	BANKSEL CTCTL0
	MOV CTCTL0,R0
	
;	op : =
;	.line	480; "../kf8ts27_touch_w_lib.c"	#if 0
	BANKSEL	_T3L
	CLR	_T3L
;	op : =
	BANKSEL	_T3H
	CLR	_T3H
;	op : GET_VALUE_AT_ADDRESS
;	.line	482; "../kf8ts27_touch_w_lib.c"	CTCTL0 =_KF8_TOUCH_CH_EN[0]|0x80;
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 2
	JMP	_00019_DS_
;	op : INLINEASM
	MOVB #0x00
	CLR 0x53,5
	
;	op : LABEL
;	op : INLINEASM
_00019_DS_
	BANKSEL _CTCTL0
	SET _CTCTL0,6
	NOP
	JB _CTCTL0,6
	JMP $-3
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	524; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 2
	JMP	_00021_DS_
;	op : INLINEASM
	MOVB #0x00
	SET 0x53,5
	
;	op : LABEL
;	op : GET_VALUE_AT_ADDRESS
_00021_DS_
;	.line	532; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Count_Use_T4)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 3
	JMP	_00023_DS_
;	op : =
;	.line	534; "../kf8ts27_touch_w_lib.c"	T4L = 0;    T4H = 0; 	T4ON=1;		// T3 T4 如果分频 外部可设置
	BANKSEL	_T4L
	CLR	_T4L
;	op : =
	BANKSEL	_T4H
	CLR	_T4H
;	op : =
	BANKSEL	_T4CTL_bits
	SET	_T4CTL_bits, 0
;	op : LABEL
;	op : =
_00023_DS_
;	.line	536; "../kf8ts27_touch_w_lib.c"	T3IF=0;		T3IE=1;
	BANKSEL	_EIF2_bits
	CLR	_EIF2_bits, 7
;	op : =
	BANKSEL	_EIE2_bits
	SET	_EIE2_bits, 7
;	op : =
;	.line	537; "../kf8ts27_touch_w_lib.c"	AIEL=1;		AIEH=1;		// 这里不考虑外部已经开启中断，T3开始起始T4未开始情况下被中断问题，因仅第一个数据，后面被更新，该数据无实质作用。
	BANKSEL	_INTCTL_bits
	SET	_INTCTL_bits, 6
;	op : =
	BANKSEL	_INTCTL_bits
	SET	_INTCTL_bits, 7
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __KF8TS27_Init_Touch_Waterproof_



func.__KF8_lib_Baihualv_get_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8_lib_Baihualv_get_	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8_lib_Baihualv_get_	;Function start
; 2 exit points
;	op : INLINEASM
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV R0,__KF8_Temp_Cur_B_TS2_W_
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB __KF8_Temp_Cur_A_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV R1,(__KF8_Temp_Cur_B_TS2_W_+1)
	JB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB (__KF8_Temp_Cur_A_TS2_W_+1),R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	JB PSW,0
	JMP label_3_3_3
	JMP label_4_4_4
label_3_3_3:
	;;
	BANKSEL __KF8_lib_Touch_Bits_
	CLR __KF8_lib_Touch_Bits_, 5
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	CPL __KF8_Temp_Cur_A_TS2_W_
	BANKSEL (__KF8_Temp_Cur_A_TS2_W_+1)
	CPL (__KF8_Temp_Cur_A_TS2_W_+1)
	INC __KF8_Temp_Cur_A_TS2_W_
	JNB PSW,2
	INC (__KF8_Temp_Cur_A_TS2_W_+1)
	PAGESEL label_5_5_5
	JMP label_5_5_5
label_4_4_4:
	;;
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_, 5
label_5_5_5:
	
;	op : INLINEASM
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	MOV R0, (__KF8_Temp_Cur_A_TS2_W_ + 1)
	AND R0,# 0xfc
	JB PSW, 2
	JMP label_6_6_6
	;;;;;;;;;;;;;;;;;;;;;;小于;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0x06
	INC R0
	PAGESEL label_7_7_7
	JMP label_7_7_7
label_8_8_8:
	CLR PSW, 0
	RLC __KF8_Temp_Cur_A_TS2_W_
	RLC (__KF8_Temp_Cur_A_TS2_W_ + 1)
label_7_7_7:
	DECJZ R0
	JMP label_8_8_8
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0x08
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	ADD __KF8_Temp_Cur_B_TS2_W_, R0
	PAGESEL label_9_9_9
	JB PSW, 0
	JMP label_9_9_9
	INC (__KF8_Temp_Cur_B_TS2_W_ + 1)
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
label_9_9_9:
	MOV R0,# 0x04
	INC R0
	JMP label_10_10_10
label_11_11_11:
	CLR PSW, 0
	RRC (__KF8_Temp_Cur_B_TS2_W_ + 1)
	RRC __KF8_Temp_Cur_B_TS2_W_
label_10_10_10:
	DECJZ R0
	JMP label_11_11_11
	JMP label_13_13_13
	;;;;;;;;;;;;;;;;;;;;;;大于等于;;;;;;;;;;;;;;;;;;;;;;;;
label_6_6_6:
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	CLR PSW, 0
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	RLC __KF8_Temp_Cur_A_TS2_W_
	RLC (__KF8_Temp_Cur_A_TS2_W_ + 1)
	CLR PSW, 0
	RLC __KF8_Temp_Cur_A_TS2_W_
	RLC (__KF8_Temp_Cur_A_TS2_W_ + 1)
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0x80
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	ADD __KF8_Temp_Cur_B_TS2_W_, R0
	PAGESEL label_12_12_12
	JB PSW, 0
	JMP label_12_12_12
	INC (__KF8_Temp_Cur_B_TS2_W_ + 1)
label_12_12_12:
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0, (__KF8_Temp_Cur_B_TS2_W_ + 1)
	MOV __KF8_Temp_Cur_B_TS2_W_, R0
	CLR (__KF8_Temp_Cur_B_TS2_W_ + 1)
label_13_13_13:
	
;	op : INLINEASM
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	CLR __KF8_lib_bahualvtemportemp_TS2_W_
	CLR __KF8_lib_bahualvtemportemp_TS2_W_+1 ;;
label_17_17_17:
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV R0,__KF8_Temp_Cur_B_TS2_W_
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB __KF8_Temp_Cur_A_TS2_W_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_Temp_Cur_B_TS2_W_
	MOV R1,(__KF8_Temp_Cur_B_TS2_W_+1)
	JB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_A_TS2_W_
	SUB (__KF8_Temp_Cur_A_TS2_W_+1),R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	JB PSW,0
	JMP label_15_15_15
	JMP label_14_14_14
label_15_15_15:
	;;
	JMP label_16_16_16
label_14_14_14:
	;;
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	INC __KF8_lib_bahualvtemportemp_TS2_W_
	MOV R0,__KF8_lib_bahualvtemportemp_TS2_W_
	SUB R0,#(200)
	JB PSW,0
	JMP label_16_16_16 ;
	JMP label_17_17_17 ;
label_16_16_16:
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	371; "../kf8ts27_touch_w_lib.c"	if(_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Get_Baihualv_Sign_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 5
	JMP	_00015_DS_
;	op : INLINEASM
	BANKSEL __KF8_lib_bahualvtemportemp_TS2_W_
	CPL __KF8_lib_bahualvtemportemp_TS2_W_
	CPL __KF8_lib_bahualvtemportemp_TS2_W_+1 ;;
	INC __KF8_lib_bahualvtemportemp_TS2_W_
	JNB PSW,2 ;;
	INC __KF8_lib_bahualvtemportemp_TS2_W_+1 ;;
	
;	op : LABEL
;	op : ENDFUNCTION
_00015_DS_
	CRET	
; exit point of __KF8_lib_Baihualv_get_



func.__KF8TS27_Lib_Set_Waterproof_Parameter	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS27_Lib_Set_Waterproof_Parameter	;Function start
; 2 exit points
;has an exit
;1 compiler assigned register :
;   r0x1017
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS27_Lib_Set_Waterproof_Parameter	;Function start
; 2 exit points
;	op : RECEIVE
;	.line	166; "../kf8ts27_touch_w_lib.c"	void _KF8TS27_Lib_Set_Waterproof_Parameter(unsigned char parameterin)
	BANKSEL	r0x1017
	MOV	r0x1017, R0
;	op : IFX
;	.line	168; "../kf8ts27_touch_w_lib.c"	if(parameterin==0)
	MOV	R0,# 0x00
	BANKSEL	r0x1017
	ORL	R0, r0x1017
	JB	PSW, 2
	JMP	_00007_DS_
;	op : =
;	.line	170; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Count_Use_T4=1;
	BANKSEL	__KF8_lib_Touch_Bits_
	SET	__KF8_lib_Touch_Bits_, 3
;	op : =
;	.line	171; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B=0;
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 2
;	op : GOTO
	JMP	_00009_DS_
;	op : LABEL
;	op : EQ_OP
_00007_DS_
;	.line	173; "../kf8ts27_touch_w_lib.c"	else if(parameterin==1)
	BANKSEL	r0x1017
	MOVZ	R0, r0x1017
	XOR	R0,# 0x01
	JB	PSW, 2
	JMP	_00004_DS_
;	op : =
;	.line	175; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Count_Use_T4=0;
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 3
;	op : =
;	.line	176; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B=0;
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 2
;	op : GOTO
	JMP	_00009_DS_
;	op : LABEL
;	op : =
_00004_DS_
;	.line	180; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Count_Use_T4=0;
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 3
;	op : =
;	.line	181; "../kf8ts27_touch_w_lib.c"	_KF8_lib_Touch_Bits_._bitx_x._KF8_Touch_Use_T3_B=1;
	BANKSEL	__KF8_lib_Touch_Bits_
	SET	__KF8_lib_Touch_Bits_, 2
;	op : LABEL
;	op : ENDFUNCTION
_00009_DS_
	CRET	
; exit point of __KF8TS27_Lib_Set_Waterproof_Parameter



func.__R2PCHPCL	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __R2PCHPCL	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__R2PCHPCL	;Function start
; 2 exit points
;	op : INLINEASM
	MOV PCH,R1
	MOV PCL,R0
	
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __R2PCHPCL


;	code size estimation:
;	  137+   78 =   215 instructions (  586 byte)


	.end
