;--------------------------------------------------------
; File Created by ChiponCC : aolisn inc.
; Version 3.0.4#6752 (Jul  6 2017 15:09:47) (MSVC)
; This file was generated Tue Apr 03 20:27:53 2018
;--------------------------------------------------------
; chipon port for the 16-bit core
;--------------------------------------------------------
;	.file	"../kf8ts24_touch_g_lib.c"
	.radix dec
	.include "KF8TS2414.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	_INTCTL_bits
	.extern	_EIF1_bits
	.extern	_EIF2_bits
	.extern	_T1CTL_bits
	.extern	_PWMCTL_bits
	.extern	_CTCTL1_bits
	.extern	_CM1CTL_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	_EIE1_bits
	.extern	_EIE2_bits
	.extern	_PCTL_bits
	.extern	_OSCCTL_bits
	.extern	_ANSEL_bits
	.extern	_PUR_bits
	.extern	_IOCL_bits
	.extern	_ADCCTL1_bits
	.extern	_P0LR_bits
	.extern	_P2LR_bits
	.extern	_P1LR_bits
	.extern	_CTCTL_bits
	.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_TOUCH_CH_EN
	.extern	_IDLR
	.extern	_T0
	.extern	_PCL
	.extern	_PSW
	.extern	_IR
	.extern	_P0
	.extern	_P2
	.extern	_P1
	.extern	_PCH
	.extern	_INTCTL
	.extern	_EIF1
	.extern	_EIF2
	.extern	_T1L
	.extern	_T1H
	.extern	_T1CTL
	.extern	_PWM1L
	.extern	_PWM1H
	.extern	_PWMCTL
	.extern	_PP1
	.extern	_CTCTL1
	.extern	_CM1CTL
	.extern	_VRECAL1
	.extern	_ANSEH
	.extern	_ADCDATAH
	.extern	_ADCCTL0
	.extern	_OPTR
	.extern	_IP0
	.extern	_IP1
	.extern	_IP2
	.extern	_TR0
	.extern	_TR2
	.extern	_TR1
	.extern	_VRECAL2
	.extern	_EIE1
	.extern	_EIE2
	.extern	_PCTL
	.extern	_OSCCTL
	.extern	_OSCCAL0
	.extern	_ANSEL
	.extern	_PP2
	.extern	_PWM2L
	.extern	_PWM2H
	.extern	_PUR
	.extern	_IOCL
	.extern	_OSCCAL1
	.extern	_BDATAH
	.extern	_BDATAL
	.extern	_BADDRH
	.extern	_BADDRL
	.extern	_EECTL1
	.extern	_EECTL2
	.extern	_ADCDATAL
	.extern	_ADCCTL1
	.extern	_P0LR
	.extern	_P2LR
	.extern	_P1LR
	.extern	_OSCCAL2
	.extern	_OSCCAL3
	.extern	_T3L
	.extern	_CTCTL
	.extern	_T3H

	.extern I0R1
	.extern I0PCH
	.extern I1R1
	.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	__KF8TS24_Get_Ver_General_
	.global	__KF8TS24_Touch_TEST_General_
	.global	__KF8TS24_Touch_Process_General_
	.global	__KF8TS24_Init_Touch_General_
	.global	__KF8_lib_Wave_Protect_Time_Count_TS_T_
	.global	__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	.global	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	.global	__KF8_lib_Key_Down_Count_TS_T_
	.global	__KF8_LIBc_finger_OUT_First_TS_T_
	.global	__KF8_LIBc_finger_OUT_Second_TS_T_
	.global	__KF8_lib_Finded_MAX_I_TS_T_
	.global	__KF8_lib_Finded_MAX_J_TS_T_
	.global	__KF8_lib_CH_No_WA_Change_Flag_TS_T_
	.global	__KF8_lib_CH_DW_Change_Count_TS_T_
	.global	__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	.global	__KF8_lib_bahualvtemportemp_TS_T_
	.global	__KF8_lib_Date_Uchar_Temp_TS_T_
	.global	_change_buf_KF8_Lib_TS_T_
	.global	_i_KF8_lib_TS_T_
	.global	_result_temp_KF8_Lib_TS_T_
	.global	_Addr_Copy_Int_KF8_Lib_TS_T_
	.global	__KF8_LIBi_Touch_New_Date_TS_T_
	.global	__KF8_Temp_Cur_A_TS_T_
	.global	__KF8_Temp_Cur_B_TS_T_
	.global	__KF8TS24_Data_Steady_Flag_
	.global	__KF8_LIBt_buff_bit_TS_T_

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
UD_kf8ts24_touch_g_lib_0	.udata
__KF8_lib_Wave_Protect_Time_Count_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_1	.udata
__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_2	.udata
__KF8_lib_Key_Double_Timer_Protect_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_3	.udata
__KF8_lib_Touch_Bits_	.res	1

UD_kf8ts24_touch_g_lib_4	.udata
__KF8_lib_Key_Down_Count_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_5	.udata
__KF8_LIBc_finger_OUT_First_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_6	.udata
__KF8_LIBc_finger_OUT_Second_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_7	.udata
__KF8_lib_Finded_MAX_I_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_8	.udata
__KF8_lib_Finded_MAX_J_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_9	.udata
__KF8_lib_CH_No_WA_Change_Flag_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_10	.udata
__KF8_lib_CH_DW_Change_Count_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_11	.udata
__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_12	.udata
__KF8_lib_bahualvtemportemp_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_13	.udata
__KF8_lib_Date_Uchar_Temp_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_14	.udata
_change_buf_KF8_Lib_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_15	.udata
_i_KF8_lib_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_16	.udata
_result_temp_KF8_Lib_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_17	.udata
_Addr_Copy_Int_KF8_Lib_TS_T_	.res	1

UD_kf8ts24_touch_g_lib_18	.udata
__KF8_LIBi_Touch_New_Date_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_19	.udata
__KF8_Temp_Cur_A_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_20	.udata
__KF8_Temp_Cur_B_TS_T_	.res	2

UD_kf8ts24_touch_g_lib_21	.udata
__KF8TS24_Data_Steady_Flag_	.res	2

;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
UDL_kf8ts24_touch_g_lib_0	.udata
r0x1040	.res	1
UDL_kf8ts24_touch_g_lib_1	.udata
r0x1041	.res	1
UDL_kf8ts24_touch_g_lib_2	.udata
r0x1043	.res	1
UDL_kf8ts24_touch_g_lib_3	.udata
r0x1044	.res	1
UDL_kf8ts24_touch_g_lib_4	.udata
r0x1045	.res	1
UDL_kf8ts24_touch_g_lib_5	.udata
r0x1046	.res	1
UDL_kf8ts24_touch_g_lib_6	.udata
r0x1042	.res	1
UDL_kf8ts24_touch_g_lib_7	.udata
r0x1047	.res	1
UDL_kf8ts24_touch_g_lib_8	.udata
r0x1048	.res	1
UDL_kf8ts24_touch_g_lib_9	.udata
r0x104D	.res	1
UDL_kf8ts24_touch_g_lib_10	.udata
r0x1049	.res	1
UDL_kf8ts24_touch_g_lib_11	.udata
r0x104A	.res	1
UDL_kf8ts24_touch_g_lib_12	.udata
r0x104B	.res	1
UDL_kf8ts24_touch_g_lib_13	.udata
r0x104C	.res	1
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------

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

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


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



func.__KF8TS24_Touch_TEST_General_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS24_Touch_TEST_General_	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS24_Touch_TEST_General_	;Function start
; 2 exit points
;	op : INLINEASM
	CLR PSW,0
	BANKSEL __KF8_LIBc_channel_
	RLCR __KF8_LIBc_channel_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV _Addr_Copy_Int_KF8_Lib_TS_T_,R0
	
;	op : INLINEASM
	;;
	BANKSEL T3H
	MOV R0,T3H
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV __KF8_LIBi_Touch_New_Date_TS_T_+1,R0
	BANKSEL T3L
	MOV R0,T3L
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV __KF8_LIBi_Touch_New_Date_TS_T_,R0
	CLR PSW,0
	RRC __KF8_LIBi_Touch_New_Date_TS_T_+1
	RRC __KF8_LIBi_Touch_New_Date_TS_T_
	;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;偏移量
	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_TS_T_
	ADD __KF8_LIBi_Touch_New_Date_TS_T_,R1
	INC R0
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	JNB PSW,0
	INC R1
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	ADD R1,__KF8_LIBi_Touch_New_Date_TS_T_+1
	BANKSEL __KF8_LIBi_buff_hit_
	ST [R0],R1
	DEC R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV R1,__KF8_LIBi_Touch_New_Date_TS_T_
	BANKSEL __KF8_LIBi_buff_hit_
	ST [R0],R1
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	2541; "../kf8ts24_touch_g_lib.c"	if(!_KF8_lib_Touch_Bits_._KF8_Touch_Work_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 0
	JMP	_00145_DS_
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	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_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	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_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	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_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	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	2589; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBc_channel_==0)
	MOV	R0,# 0x00
	BANKSEL	__KF8_LIBc_channel_
	ORL	R0, __KF8_LIBc_channel_
	JB	PSW, 2
	JMP	_00145_DS_
;	op : +
;	.line	2591; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Date_Uchar_Temp_TS_T_++;
	BANKSEL	__KF8_lib_Date_Uchar_Temp_TS_T_
	INC	__KF8_lib_Date_Uchar_Temp_TS_T_
;	op : >
;swapping arguments (AOP_TYPEs 1/3)
;unsigned compare: left >= lit(0x81=129), size=1
;	.line	2592; "../kf8ts24_touch_g_lib.c"	if(_KF8_lib_Date_Uchar_Temp_TS_T_>128) //不按整圈了，从0算起，省代码
	MOV	R0,# 0x81
	BANKSEL	__KF8_lib_Date_Uchar_Temp_TS_T_
	SUB	R0, __KF8_lib_Date_Uchar_Temp_TS_T_
;comparing bytes at offset 0
	JB	PSW, 0
	JMP	_00145_DS_
;	op : =
;	.line	2594; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Touch_Bits_._KF8_Touch_Work_Flag=1;  //进入工作状态
	BANKSEL	__KF8_lib_Touch_Bits_
	SET	__KF8_lib_Touch_Bits_, 0
;	op : LABEL
;	op : INLINEASM
_00145_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	2626; "../kf8ts24_touch_g_lib.c"	T3H = 0;T3L = 0;
	CLR	_T3H
;	op : =
	CLR	_T3L
;	op : INLINEASM
	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 CTCTL
	MOV CTCTL,R0
	NOP
	JB _CTCTL,6
	JMP $-3
	
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __KF8TS24_Touch_TEST_General_



func.__KF8TS24_Touch_Process_General_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS24_Touch_Process_General_	;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
;7 compiler assigned registers:
;   r0x1047
;   r0x1048
;   r0x1049
;   r0x104A
;   r0x104B
;   r0x104C
;   r0x104D
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS24_Touch_Process_General_	;Function start
; 2 exit points
;	op : INLINEASM
	CLR PSW,0
	BANKSEL __KF8_LIBc_channel_
	RLCR __KF8_LIBc_channel_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV _Addr_Copy_Int_KF8_Lib_TS_T_,R0
	
;	op : INLINEASM
	BANKSEL 0x41
	MOV R0,0x41
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV __KF8_LIBi_Touch_New_Date_TS_T_+1,R0
	BANKSEL 0x11
	MOV R0,0x11
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV __KF8_LIBi_Touch_New_Date_TS_T_,R0
	
;	op : RIGHT_OP
;	.line	2259; "../kf8ts24_touch_g_lib.c"	_KF8_LIBi_Touch_New_Date_TS_T_=_KF8_LIBi_Touch_New_Date_TS_T_>>2;
	CLR	PSW, 0
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	RRC	(__KF8_LIBi_Touch_New_Date_TS_T_ + 1)
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	RRC	__KF8_LIBi_Touch_New_Date_TS_T_
	CLR	PSW, 0
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	RRC	(__KF8_LIBi_Touch_New_Date_TS_T_ + 1)
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	RRC	__KF8_LIBi_Touch_New_Date_TS_T_
;	op : LEFT_OP
;	.line	2260; "../kf8ts24_touch_g_lib.c"	_KF8_LIBi_buff_hit_[_KF8_LIBc_channel_]=_KF8_LIBi_buff_hit_[_KF8_LIBc_channel_]-(_KF8_LIBi_buff_hit_[_KF8_LIBc_channel_]>>2);
	CLR	PSW, 0
	BANKSEL	__KF8_LIBc_channel_
	RLCR	__KF8_LIBc_channel_
	BANKSEL	r0x1047
	MOV	r0x1047, R0
;	op : +
	MOV	R0,# (__KF8_LIBi_buff_hit_ + 0)
	BANKSEL	r0x1047
	ADD	r0x1047, R0
;	op : LEFT_OP
	CLR	PSW, 0
	BANKSEL	__KF8_LIBc_channel_
	RLCR	__KF8_LIBc_channel_
	BANKSEL	r0x1048
	MOV	r0x1048, R0
;	op : +
	MOV	R0,# (__KF8_LIBi_buff_hit_ + 0)
	BANKSEL	r0x1048
	ADD	r0x1048, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1048
	MOV	R1, r0x1048
	BANKSEL	__KF8_LIBi_buff_hit_
	LD	R0, [R1]
	BANKSEL	r0x1049
	MOV	r0x1049, R0
	INC	R1
	BANKSEL	__KF8_LIBi_buff_hit_
	LD	R0, [R1]
	BANKSEL	r0x104A
	MOV	r0x104A, R0
;	op : LEFT_OP
	CLR	PSW, 0
	BANKSEL	__KF8_LIBc_channel_
	RLCR	__KF8_LIBc_channel_
	BANKSEL	r0x1048
	MOV	r0x1048, R0
;	op : +
	MOV	R0,# (__KF8_LIBi_buff_hit_ + 0)
	BANKSEL	r0x1048
	ADD	r0x1048, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1048
	MOV	R1, r0x1048
	BANKSEL	__KF8_LIBi_buff_hit_
	LD	R0, [R1]
	BANKSEL	r0x104B
	MOV	r0x104B, R0
	INC	R1
	BANKSEL	__KF8_LIBi_buff_hit_
	LD	R0, [R1]
	BANKSEL	r0x104C
	MOV	r0x104C, R0
;	op : RIGHT_OP
	CLR	PSW, 0
	BANKSEL	r0x104C
	RRCR	r0x104C
	BANKSEL	r0x104D
	MOV	r0x104D, R0
	BANKSEL	r0x104B
	RRCR	r0x104B
	BANKSEL	r0x1048
	MOV	r0x1048, R0
	CLR	PSW, 0
	BANKSEL	r0x104D
	RRC	r0x104D
	BANKSEL	r0x1048
	RRC	r0x1048
;	op : -
	BANKSEL	r0x1048
	MOVZ	R0, r0x1048
	BANKSEL	r0x1049
	SUB	r0x1049, R0
	BANKSEL	r0x104D
	MOVZ	R0, r0x104D
	JB	PSW, 0
	INC	R0
	JNB	PSW, 2
	JMP	_00154_DS_
	BANKSEL	r0x104A
	SUB	r0x104A, R0
;	op : =
_00154_DS_
	BANKSEL	r0x1049
	MOVZ	R0, r0x1049
	BANKSEL	r0x1047
	MOV	R1, r0x1047
	BANKSEL	__KF8_LIBi_buff_hit_
	ST	[R1], R0
	INC	R1
	BANKSEL	r0x104A
	MOVZ	R0, r0x104A
	BANKSEL	__KF8_LIBi_buff_hit_
	ST	[R1], R0
;	op : LEFT_OP
;	.line	2261; "../kf8ts24_touch_g_lib.c"	_KF8_LIBi_buff_hit_[_KF8_LIBc_channel_]+=_KF8_LIBi_Touch_New_Date_TS_T_;
	CLR	PSW, 0
	BANKSEL	__KF8_LIBc_channel_
	RLCR	__KF8_LIBc_channel_
	BANKSEL	r0x1047
	MOV	r0x1047, R0
;	op : +
	MOV	R0,# (__KF8_LIBi_buff_hit_ + 0)
	BANKSEL	r0x1047
	ADD	r0x1047, R0
;	op : LEFT_OP
	CLR	PSW, 0
	BANKSEL	__KF8_LIBc_channel_
	RLCR	__KF8_LIBc_channel_
	BANKSEL	r0x1048
	MOV	r0x1048, R0
;	op : +
	MOV	R0,# (__KF8_LIBi_buff_hit_ + 0)
	BANKSEL	r0x1048
	ADD	r0x1048, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1048
	MOV	R1, r0x1048
	BANKSEL	__KF8_LIBi_buff_hit_
	LD	R0, [R1]
	BANKSEL	r0x1049
	MOV	r0x1049, R0
	INC	R1
	BANKSEL	__KF8_LIBi_buff_hit_
	LD	R0, [R1]
	BANKSEL	r0x104A
	MOV	r0x104A, R0
;	op : +
	BANKSEL	r0x1049
	MOV	R0, r0x1049
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	ADD	R0, __KF8_LIBi_Touch_New_Date_TS_T_
	BANKSEL	r0x1048
	MOV	r0x1048, R0
	BANKSEL	r0x104A
	MOV	R0, r0x104A
	BANKSEL	r0x104D
	MOV	r0x104D, R0
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	MOVZ	R0, (__KF8_LIBi_Touch_New_Date_TS_T_ + 1)
	JNB	PSW, 0
	INC	R0
	JNB	PSW, 2
	JMP	_00155_DS_
	BANKSEL	r0x104D
	ADD	r0x104D, R0
;	op : =
_00155_DS_
	BANKSEL	r0x1048
	MOVZ	R0, r0x1048
	BANKSEL	r0x1047
	MOV	R1, r0x1047
	BANKSEL	__KF8_LIBi_buff_hit_
	ST	[R1], R0
	INC	R1
	BANKSEL	r0x104D
	MOVZ	R0, r0x104D
	BANKSEL	__KF8_LIBi_buff_hit_
	ST	[R1], R0
;	op : GET_VALUE_AT_ADDRESS
;	.line	2313; "../kf8ts24_touch_g_lib.c"	if(!_KF8_lib_Touch_Bits_._KF8_Touch_Work_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 0
	JMP	_00128_DS_
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	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_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	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_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	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_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_ ;;
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_ ;;
	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	2365; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBc_channel_==0)
	MOV	R0,# 0x00
	BANKSEL	__KF8_LIBc_channel_
	ORL	R0, __KF8_LIBc_channel_
	JB	PSW, 2
	JMP	_00129_DS_
;	op : INLINEASM
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	INC __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0, #0X20
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	SUB R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	JB PSW, 0
	JMP label_over
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_, 0
label_over:
	
;	op : GOTO
	JMP	_00129_DS_
;	op : LABEL
;	op : CALL
_00128_DS_
;	.line	2392; "../kf8ts24_touch_g_lib.c"	_KF8_LIBf_scan_channel_(); //扫描AD通道,计算变化率，做变化统计
	PAGESEL	__KF8_LIBf_scan_channel_
	CALL	__KF8_LIBf_scan_channel_
	PAGESEL	$
;	op : IFX
;	.line	2395; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBc_channel_==0)
	MOV	R0,# 0x00
	BANKSEL	__KF8_LIBc_channel_
	ORL	R0, __KF8_LIBc_channel_
	JB	PSW, 2
	JMP	_00129_DS_
;	op : CALL
;	.line	2397; "../kf8ts24_touch_g_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
_00129_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	2427; "../kf8ts24_touch_g_lib.c"	T3H = 0;T3L = 0;
	CLR	_T3H
;	op : =
	CLR	_T3L
;	op : INLINEASM
	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,#0xD0 ;;
	BANKSEL INTCTL
	CLR INTCTL,7
	CLR 0X41 ;
	CLR 0X11
	SET 0X12,2
	BANKSEL CTCTL
	MOV CTCTL,R0
	NOP
	JB _CTCTL,6
	JMP $-3
	
;	op : LABEL
;	op : GET_VALUE_AT_ADDRESS
_00130_DS_
;	.line	2459; "../kf8ts24_touch_g_lib.c"	while(!AIE)
	JNB	_INTCTL_bits, 7
	JMP	_00133_DS_
;	op : =
;	.line	2461; "../kf8ts24_touch_g_lib.c"	AIE=1;
	SET	_INTCTL_bits, 7
;	op : GOTO
	JMP	_00130_DS_
;	op : LABEL
;	op : ENDFUNCTION
_00133_DS_
	CRET	
; exit point of __KF8TS24_Touch_Process_General_



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_
;   __R2PCL
;   __R2PCL
;   __KF8_lib_Baihualv_get_
;   __R2PCL
;   __R2PCL
;5 compiler assigned registers:
;   r0x1040
;   r0x1041
;   r0x1042
;   r0x1043
;   r0x1044
;; 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_TS_T_
	MOV _Addr_Copy_Int_KF8_Lib_TS_T_,R0
	
;	op : INLINEASM
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV R0,#0x01
	MOV __KF8_LIBi_Touch_New_Date_TS_T_,R0
	CLR (__KF8_LIBi_Touch_New_Date_TS_T_+1)
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	MOV R0,__KF8_LIBc_channel_
	INC R0
	JMP RLCSel
RLCDeal:
	CLR PSW,0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	RLC __KF8_LIBi_Touch_New_Date_TS_T_
	RLC (__KF8_LIBi_Touch_New_Date_TS_T_+1)
RLCSel:
	DECJZ R0
	JMP RLCDeal
	
;	op : INLINEASM
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R1,_Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R1,#(__KF8_LIBi_buff_hit_+0)
	;;;;
	BANKSEL __KF8_LIBi_buff_hit_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	MOV __KF8_Temp_Cur_A_TS_T_, R0
	;;;;
	INC R1
	BANKSEL __KF8_LIBi_buff_hit_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	MOV (__KF8_Temp_Cur_A_TS_T_+1), R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R1,_Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R1,#(__KF8_LIBi_buff_baseline_+0)
	;;;;
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	MOV __KF8_Temp_Cur_B_TS_T_, R0
	;;;;
	INC R1
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R0,[R1]
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	MOV (__KF8_Temp_Cur_B_TS_T_+1), R0
	
;	op : CALL
;	.line	1722; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Baihualv_get_();
	PAGESEL	__KF8_lib_Baihualv_get_
	CALL	__KF8_lib_Baihualv_get_
	PAGESEL	$
;	op : INLINEASM
	MOV R1,# high(__KF8_BasicLine_Down_Noise_Threshold_+0)
	MOV R0,# low(__KF8_BasicLine_Down_Noise_Threshold_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	ADD R0,#0X80
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	MOV R1,#0X80
	ADD R1,__KF8_lib_bahualvtemportemp_TS_T_
	SUB R0, R1
	JB PSW,0
	JMP lable_count_incover
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	MOV R0, __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	AND R0, __KF8_LIBi_Touch_New_Date_TS_T_
	JB PSW,2
	JMP lable_count_incover
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	MOV R0, (__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_+1)
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	AND R0, (__KF8_LIBi_Touch_New_Date_TS_T_+1)
	JB PSW,2
	JMP lable_count_incover
	;;;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Count_TS_T_
	INC __KF8_lib_CH_DW_Change_Count_TS_T_
lable_count_incover:
	
;	op : INLINEASM
	BANKSEL __KF8_LIBc_channel_
	MOV R1,__KF8_LIBc_channel_
	ADD R1,#(__KF8_LIBi_Date_Change_+0)
	;;;;
	BANKSEL __KF8_LIBi_Date_Change_
	LD R0,[R1]
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	MOV R1, __KF8_lib_bahualvtemportemp_TS_T_
	BANKSEL _change_buf_KF8_Lib_TS_T_
	MOV _change_buf_KF8_Lib_TS_T_, R1
	SUB _change_buf_KF8_Lib_TS_T_, R0
	
;	op : <
;signed compare: left < lit(0x0=0), size=1, mask=ff
;	.line	1789; "../kf8ts24_touch_g_lib.c"	if(change_buf_KF8_Lib_TS_T_<0)
	SET	PSW, 0
	BANKSEL	_change_buf_KF8_Lib_TS_T_
	JB	_change_buf_KF8_Lib_TS_T_, 7
	CLR	PSW, 0
	JB	PSW, 0
	JMP	_00098_DS_
;	op : UNARYMINUS
;	.line	1790; "../kf8ts24_touch_g_lib.c"	change_buf_KF8_Lib_TS_T_=change_buf_KF8_Lib_TS_T_*(-1);
	BANKSEL	_change_buf_KF8_Lib_TS_T_
	CPL	_change_buf_KF8_Lib_TS_T_
	BANKSEL	_change_buf_KF8_Lib_TS_T_
	INC	_change_buf_KF8_Lib_TS_T_
;	op : LABEL
;	op : =
;gen_assign from CODESPACE
_00098_DS_
;	.line	1791; "../kf8ts24_touch_g_lib.c"	if(change_buf_KF8_Lib_TS_T_>_KF8_Data_Steady_Threshold_Set_)
	MOV	R1,# high (__KF8_Data_Steady_Threshold_Set_+0)
	MOV	R0,# low (__KF8_Data_Steady_Threshold_Set_+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : >
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	ADD	R0,# 0x80
	BANKSEL	r0x1041
	MOV	r0x1041, R0
	BANKSEL	_change_buf_KF8_Lib_TS_T_
	MOVZ	R0, _change_buf_KF8_Lib_TS_T_
	ADD	R0,# 0x80
	BANKSEL	r0x1041
	SUB	R0, r0x1041
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00100_DS_
;	op : +
;	.line	1793; "../kf8ts24_touch_g_lib.c"	_KF8_LIBc_baseline_count_[_KF8_LIBc_channel_]=0;
	BANKSEL	__KF8_LIBc_channel_
	MOV	R0, __KF8_LIBc_channel_
	ADD	R0,# (__KF8_LIBc_baseline_count_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : =
	MOV	R0,# 0x00
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_baseline_count_
	ST	[R1], R0
;	op : LEFT_OP
;	.line	1794; "../kf8ts24_touch_g_lib.c"	_KF8TS24_Data_Steady_Flag_ &= ~(1<<_KF8_LIBc_channel_);//Ethan 2018-2-1添加采样值稳定性判断
	MOV	R0,# 0x01
	BANKSEL	r0x1040
	MOV	r0x1040, R0
	MOV	R0,# 0x00
	BANKSEL	r0x1042
	MOV	r0x1042, R0
	BANKSEL	__KF8_LIBc_channel_
	MOVZ	R0, __KF8_LIBc_channel_
	INC	R0
	JMP	_00118_DS_
_00117_DS_
	CLR	PSW, 0
	BANKSEL	r0x1040
	RLC	r0x1040
	BANKSEL	r0x1042
	RLC	r0x1042
_00118_DS_
	DECJZ	R0
	JMP	_00117_DS_
;	op : ~
	BANKSEL	r0x1040
	CPL	r0x1040
	BANKSEL	r0x1042
	CPL	r0x1042
;;108	MOVZ	R0, r0x1040
;;110	MOVZ	R0, r0x1042
;	op : BITWISEAND
;;107	MOVZ	R0, r0x1043
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1043
	MOV	r0x1043, R0
	BANKSEL	__KF8TS24_Data_Steady_Flag_
	AND	__KF8TS24_Data_Steady_Flag_, R0
;;109	MOVZ	R0, r0x1044
	BANKSEL	r0x1042
	MOVZ	R0, r0x1042
	BANKSEL	r0x1044
	MOV	r0x1044, R0
	BANKSEL	__KF8TS24_Data_Steady_Flag_
	AND	(__KF8TS24_Data_Steady_Flag_ + 1), R0
;	op : GOTO
	JMP	_00101_DS_
;	op : LABEL
;	op : LEFT_OP
_00100_DS_
;	.line	1798; "../kf8ts24_touch_g_lib.c"	_KF8TS24_Data_Steady_Flag_ |= 1<<_KF8_LIBc_channel_;
	MOV	R0,# 0x01
	BANKSEL	r0x1040
	MOV	r0x1040, R0
	MOV	R0,# 0x00
	BANKSEL	r0x1042
	MOV	r0x1042, R0
	BANKSEL	__KF8_LIBc_channel_
	MOVZ	R0, __KF8_LIBc_channel_
	INC	R0
	JMP	_00120_DS_
_00119_DS_
	CLR	PSW, 0
	BANKSEL	r0x1040
	RLC	r0x1040
	BANKSEL	r0x1042
	RLC	r0x1042
_00120_DS_
	DECJZ	R0
	JMP	_00119_DS_
;	op : CAST
;;104	MOVZ	R0, r0x1040
;;106	MOVZ	R0, r0x1042
;	op : |
;;103	MOVZ	R0, r0x1043
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1043
	MOV	r0x1043, R0
	BANKSEL	__KF8TS24_Data_Steady_Flag_
	ORL	__KF8TS24_Data_Steady_Flag_, R0
;;105	MOVZ	R0, r0x1044
	BANKSEL	r0x1042
	MOVZ	R0, r0x1042
	BANKSEL	r0x1044
	MOV	r0x1044, R0
	BANKSEL	__KF8TS24_Data_Steady_Flag_
	ORL	(__KF8TS24_Data_Steady_Flag_ + 1), R0
;	op : LABEL
;	op : +
_00101_DS_
;	.line	1832; "../kf8ts24_touch_g_lib.c"	_KF8_LIBi_Date_Change_[_KF8_LIBc_channel_]=_KF8_lib_bahualvtemportemp_TS_T_;
	BANKSEL	__KF8_LIBc_channel_
	MOV	R0, __KF8_LIBc_channel_
	ADD	R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : =
	BANKSEL	__KF8_lib_bahualvtemportemp_TS_T_
	MOVZ	R0, __KF8_lib_bahualvtemportemp_TS_T_
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBi_Date_Change_
	ST	[R1], R0
;	op : INLINEASM
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_
	XOR R0, #0X01
	JB PSW,2
	JMP lable_channbig
	BANKSEL __KF8_LIBi_Date_Change_
	MOV R0, (__KF8_LIBi_Date_Change_+0)
	MOV R1, (__KF8_LIBi_Date_Change_+1)
	ADD R0,#0X80
	ADD R1,#0X80
	SUB R1, R0
	JB PSW,0
	JMP lable_chann1
	BANKSEL __KF8_lib_Finded_MAX_J_TS_T_
	MOV R0, #0X01
	MOV __KF8_lib_Finded_MAX_J_TS_T_ , R0
	BANKSEL __KF8_lib_Finded_MAX_I_TS_T_
	CLR __KF8_lib_Finded_MAX_I_TS_T_
	JMP lable_channbig
lable_chann1:
	BANKSEL __KF8_lib_Finded_MAX_I_TS_T_
	MOV R0, #0X01
	MOV __KF8_lib_Finded_MAX_I_TS_T_ , R0
	BANKSEL __KF8_lib_Finded_MAX_J_TS_T_
	CLR __KF8_lib_Finded_MAX_J_TS_T_
lable_channbig:
	
;	op : INLINEASM
	BANKSEL __KF8_LIBc_channel_
	MOV R0, #0X02
	SUB R0, __KF8_LIBc_channel_
	JB PSW,0
	JMP lable_channover
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R1, __KF8_LIBc_channel_
	ADD R1, #(__KF8_LIBi_Date_Change_)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R0,[R1]
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	ADD R0, #0X80
	MOV __KF8_lib_bahualvtemportemp_TS_T_, R0
	;;;;;;;;;;;;
	BANKSEL __KF8_lib_Finded_MAX_J_TS_T_
	MOV R1, __KF8_lib_Finded_MAX_J_TS_T_
	ADD R1, #(__KF8_LIBi_Date_Change_)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R0,[R1]
	ADD R0,#0X80
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	SUB R0, __KF8_lib_bahualvtemportemp_TS_T_
	JB PSW,0
	JMP lable_channover
	;;;;;;;;;;;;
	BANKSEL __KF8_lib_Finded_MAX_I_TS_T_
	MOV R1, __KF8_lib_Finded_MAX_I_TS_T_
	ADD R1, #(__KF8_LIBi_Date_Change_)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R0,[R1]
	ADD R0, #0X80
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	SUB R0, __KF8_lib_bahualvtemportemp_TS_T_
	JNB PSW,0
	JMP lable_chann2
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_
	BANKSEL __KF8_lib_Finded_MAX_J_TS_T_
	MOV __KF8_lib_Finded_MAX_J_TS_T_,R0
	JMP lable_channover
lable_chann2:
	BANKSEL __KF8_lib_Finded_MAX_I_TS_T_
	MOV R0, __KF8_lib_Finded_MAX_I_TS_T_
	BANKSEL __KF8_lib_Finded_MAX_J_TS_T_
	MOV __KF8_lib_Finded_MAX_J_TS_T_,R0
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_
	BANKSEL __KF8_lib_Finded_MAX_I_TS_T_
	MOV __KF8_lib_Finded_MAX_I_TS_T_,R0
lable_channover:
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	1957; "../kf8ts24_touch_g_lib.c"	if(!_KF8_lib_Touch_Bits_._KF8_Touch_Protect_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 1
	JMP	_00109_DS_
;	op : INLINEASM
	BANKSEL __KF8_LIBc_channel_
	MOV R0, __KF8_LIBc_channel_
	ADD R0, #low (__KF8_Config_Finger_Threshold)
	MOV R1, #high (__KF8_Config_Finger_Threshold)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	MOV __KF8_lib_bahualvtemportemp_TS_T_, R0
	MOV R0, #(6)
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	SUB __KF8_lib_bahualvtemportemp_TS_T_, R0
	
;	op : +
;	.line	1984; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBi_Date_Change_[_KF8_LIBc_channel_]<_KF8_lib_bahualvtemportemp_TS_T_)
	BANKSEL	__KF8_LIBc_channel_
	MOV	R0, __KF8_LIBc_channel_
	ADD	R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBi_Date_Change_
	LD	R0, [R1]
	BANKSEL	r0x1043
	MOV	r0x1043, R0
;	op : <
	BANKSEL	r0x1043
	MOVZ	R0, r0x1043
	ADD	R0,# 0x80
	BANKSEL	r0x1041
	MOV	r0x1041, R0
	BANKSEL	__KF8_lib_bahualvtemportemp_TS_T_
	MOVZ	R0, __KF8_lib_bahualvtemportemp_TS_T_
	ADD	R0,# 0x80
	BANKSEL	r0x1041
	SUB	R0, r0x1041
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00105_DS_
;	op : +
;	.line	1987; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBc_touch_count_[_KF8_LIBc_channel_]>TCS_AMOUNT) //被按下标记
	BANKSEL	__KF8_LIBc_channel_
	MOV	R0, __KF8_LIBc_channel_
	ADD	R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_touch_count_
	LD	R0, [R1]
	BANKSEL	r0x1043
	MOV	r0x1043, R0
;	op : =
;gen_assign from CODESPACE
	MOV	R1,# high (_TCS_AMOUNT+0)
	MOV	R0,# low (_TCS_AMOUNT+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : >
	BANKSEL	r0x1043
	MOVZ	R0, r0x1043
	BANKSEL	r0x1040
	SUB	R0, r0x1040
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00109_DS_
;	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_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_,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_TS_T_
	SUB R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	JB PSW, 0
	JMP lable_010101
	BANKSEL __KF8_LIBc_touch_count_
	LD R0,[R1]
	INC R0
	ST [R1],R0
	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
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_ , R0
	;;;;;;;;;;;;;;;;;;;;
	ADD R0,#low(__KF8_LIBt_buff_bit_TS_T_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS_T_)
	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_TS_T_
	MOV R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	INC R0
	ADD R0,#low(__KF8_LIBt_buff_bit_TS_T_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS_T_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	CPL R0
	BANKSEL __KF8_LIBi_channel_flag_
	AND (__KF8_LIBi_channel_flag_+1), R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	;;;;;;;
	MOV R0, #0X00
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	ORL R0, __KF8_lib_Key_Down_Count_TS_T_
	JB PSW, 2
	DEC __KF8_lib_Key_Down_Count_TS_T_
	;;;;;;;;;;;;;;;;;
	MOV R0,#0X00
	ORL R0, __KF8_lib_Key_Down_Count_TS_T_
	JNB PSW, 2
	JMP lable_030303
	;;;
	BANKSEL __KF8_LIBc_finger_OUT_First_TS_T_
	MOV R0, __KF8_LIBc_finger_OUT_First_TS_T_
	BANKSEL __KF8_LIBc_channel_
	XOR R0, __KF8_LIBc_channel_
	JB PSW, 2
	JMP lable_050505
	;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS_T_
	MOV R0, __KF8_LIBc_finger_OUT_Second_TS_T_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS_T_
	XOR R0, __KF8_LIBc_finger_OUT_First_TS_T_
	JB PSW, 2
	JMP lable_040404
	MOV R0,#0XFF
	MOV __KF8_LIBc_finger_OUT_First_TS_T_ , R0
	MOV R0,#0X00
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	MOV __KF8_lib_Key_Down_Count_TS_T_ ,R0
	JMP lable_050505
	;;;;;;;;;
lable_040404:
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS_T_
	MOV R0, __KF8_LIBc_finger_OUT_Second_TS_T_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS_T_
	MOV __KF8_LIBc_finger_OUT_First_TS_T_ ,R0
	JMP lable_050505
lable_030303:
	BANKSEL __KF8_LIBc_finger_OUT_First_TS_T_
	MOV R0, #0XFF
	MOV __KF8_LIBc_finger_OUT_First_TS_T_, R0
lable_050505:
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS_T_
	MOV R0,#0XFF
	MOV __KF8_LIBc_finger_OUT_Second_TS_T_,R0
	MOV R0,#0X00
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS_T_
	MOV __KF8_lib_Key_Double_Timer_Protect_TS_T_, R0
	MOV (__KF8_lib_Key_Double_Timer_Protect_TS_T_+1), R0
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	MOV __KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_, R0
	MOV (__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_+1), R0
lable_020202:
	
;	op : GOTO
	JMP	_00109_DS_
;	op : LABEL
;	op : INLINEASM
_00105_DS_
	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_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_,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_TS_T_
	SUB R0,__KF8_lib_Date_Uchar_Temp_TS_T_
	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 : LABEL
;	op : ENDFUNCTION
_00109_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
;functions called:
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;   __R2PCL
;7 compiler assigned registers:
;   r0x1040
;   r0x1041
;   r0x1042
;   r0x1043
;   r0x1044
;   r0x1045
;   r0x1046
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8_LiBf_KEY_Deal_AND_BaseLine_Up	;Function start
; 2 exit points
;	op : =
;	.line	463; "../kf8ts24_touch_g_lib.c"	_KF8_LIBi_Touch_New_Date_TS_T_=0x0001;
	MOV	R0,# 0x01
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	MOV	__KF8_LIBi_Touch_New_Date_TS_T_, R0
	BANKSEL	__KF8_LIBi_Touch_New_Date_TS_T_
	CLR	(__KF8_LIBi_Touch_New_Date_TS_T_ + 1)
;	op : =
;	.line	465; "../kf8ts24_touch_g_lib.c"	for(i_KF8_lib_TS_T_=0;i_KF8_lib_TS_T_<CHS_AMOUNT;i_KF8_lib_TS_T_++)
	BANKSEL	_i_KF8_lib_TS_T_
	CLR	_i_KF8_lib_TS_T_
;	op : LABEL
;	op : =
;gen_assign from CODESPACE
_00057_DS_
	MOV	R1,# high (_CHS_AMOUNT+0)
	MOV	R0,# low (_CHS_AMOUNT+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : <
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	_i_KF8_lib_TS_T_
	SUB	R0, _i_KF8_lib_TS_T_
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00060_DS_
;	op : INLINEASM
	CLR PSW,0
	BANKSEL _i_KF8_lib_TS_T_
	RLCR _i_KF8_lib_TS_T_
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV _Addr_Copy_Int_KF8_Lib_TS_T_,R0
	
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0, #low (__KF8_TOUCH_CH_EN)
	MOV R1, #high (__KF8_TOUCH_CH_EN)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_ ,R0
	;;;;;;;
	MOV R0, #low (__KF8_Inside_Reference_Channel_Declare_)
	MOV R1, #high (__KF8_Inside_Reference_Channel_Declare_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	XOR R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	JB PSW, 2
	JMP lable_612118
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0, #low (__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_)
	MOV R1, #high (__KF8_Inside_Reference_Channel_Disturb_Threshold_Set_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	MOV __KF8_lib_bahualvtemportemp_TS_T_ ,R0
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0, #(__KF8_LIBi_Date_Change_)
	;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1, [R0]
	JB R1,7
	JMP lable_6121205
	CPL R1
	INC R1
lable_6121205:
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	SUB R1,__KF8_lib_bahualvtemportemp_TS_T_
	JNB PSW ,0 ;;
	JMP lable_612118
lable_6121207:
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_, 1
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS_T_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS_T_
lable_612118:
	
;	op : +
;	.line	553; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBi_Date_Change_[i_KF8_lib_TS_T_]<_KF8_BasicLine_UP_Noise_Threshold_)
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBi_Date_Change_
	LD	R0, [R1]
	BANKSEL	r0x1041
	MOV	r0x1041, R0
;	op : =
;gen_assign from CODESPACE
	MOV	R1,# high (__KF8_BasicLine_UP_Noise_Threshold_+0)
	MOV	R0,# low (__KF8_BasicLine_UP_Noise_Threshold_+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : <
	BANKSEL	r0x1041
	MOVZ	R0, r0x1041
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	MOV	r0x1042, R0
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	SUB	R0, r0x1042
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00017_DS_
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	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_06121629
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0], R1
	;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0], R1
	;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0, #(__KF8_LIBc_touch_count_)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1, [R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_, R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0, #low(_TCS_AMOUNT)
	MOV R1, #high(_TCS_AMOUNT)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;
	SUB R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	JNB PSW, 0
	JMP lable_06121629
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0, #(__KF8_LIBc_touch_count_)
	BANKSEL __KF8_LIBc_touch_count_
	MOV R1, #0X00
	ST [R0], R1
lable_06121629:
	
;	op : GOTO
	JMP	_00018_DS_
;	op : LABEL
;	op : +
_00017_DS_
;	.line	637; "../kf8ts24_touch_g_lib.c"	else if(_KF8_LIBi_Date_Change_[i_KF8_lib_TS_T_]>_KF8_BasicLine_Down_Noise_Threshold_)
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBi_Date_Change_
	LD	R0, [R1]
	BANKSEL	r0x1043
	MOV	r0x1043, R0
;	op : =
;gen_assign from CODESPACE
	MOV	R1,# high (__KF8_BasicLine_Down_Noise_Threshold_+0)
	MOV	R0,# low (__KF8_BasicLine_Down_Noise_Threshold_+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : >
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	MOV	r0x1042, R0
	BANKSEL	r0x1043
	MOVZ	R0, r0x1043
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	SUB	R0, r0x1042
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00014_DS_
;	op : INLINEASM
	MOV R0, #low(__KF8_Define_Disturb_Channels_Amount_)
	MOV R1, #high(__KF8_Define_Disturb_Channels_Amount_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_CH_DW_Change_Count_TS_T_
	SUB R0, __KF8_lib_CH_DW_Change_Count_TS_T_
	JB PSW, 0
	JMP lable_06151019
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_, 1
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS_T_
	CLR __KF8_lib_Wave_Protect_Time_Count_TS_T_
	;;;;;;;;;;;;;;;;;;;;;;;
lable_06151019:
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	669; "../kf8ts24_touch_g_lib.c"	if(_KF8_lib_Touch_Bits_._KF8_Touch_Protect_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 1
	JMP	_00011_DS_
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_baseline_count_)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1, [R0]
	XOR R1, #Low(-20)
	JNB PSW, 2
	JMP lable_06151032
	;;;;;;;;
	MOV R0,#low(__KF8_Disturb_Protect_Circle_)
	MOV R1,#high(__KF8_Disturb_Protect_Circle_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS_T_
	XOR R0, __KF8_lib_Wave_Protect_Time_Count_TS_T_
	JB PSW, 2
	JMP lable_06151055
	;;;;;;;;;;;;;;;;;;;
lable_06151032:
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0], R1
	;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0], R1
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV R0, __KF8_LIBi_Touch_New_Date_TS_T_
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_, R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV R0, (__KF8_LIBi_Touch_New_Date_TS_T_ + 1)
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	ORL (__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_ + 1), R0
	;;;;;;;;;;;;;;;;;
lable_06151055:
	
;	op : GOTO
	JMP	_00018_DS_
;	op : LABEL
;	op : INLINEASM
_00011_DS_
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,# (__KF8_LIBc_baseline_count_ + 0)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1, [R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	MOV __KF8_lib_bahualvtemportemp_TS_T_, R1
	;;;;;;;;;;;;;;;;;;;;;;;;
	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_bahualvtemportemp_TS_T_
	XOR R0, __KF8_lib_bahualvtemportemp_TS_T_
	JB PSW, 2
	JMP lable_06160853
	;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1, [R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_, R1
	;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# low (_TCS_AMOUNT+0)
	MOV R1,# high (_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	SUB R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	JNB PSW, 0
	JMP lable_06151118
	;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	MOV R0, __KF8_lib_Key_Down_Count_TS_T_
	XOR R0,# 0x02
	JB PSW, 2
	JMP lable_06151125
	;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0], R1
	;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0], R1
	JMP lable_06151133
lable_06151125:
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0, #(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	ADD R1,#0XFF
	ST [R0],R1
	JNB PSW, 0
	JMP lable_06151133
	INC R0
	LD R1,[R0]
	DEC R1
	ST [R0],R1
	JMP lable_06151133
lable_06151118:
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV R0, __KF8_LIBi_Touch_New_Date_TS_T_
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	ORL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_, R0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	MOV R0, (__KF8_LIBi_Touch_New_Date_TS_T_ + 1)
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	ORL (__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_ + 1), R0
	;;;;;;;;;;;;;;;;;;;;;;;;
lable_06151133:
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,# (__KF8_LIBc_baseline_count_ + 0)
	BANKSEL __KF8_LIBc_baseline_count_
	MOV R1,#0X00
	ST [R0], R1
lable_06160853:
	
;	op : GOTO
	JMP	_00018_DS_
;	op : LABEL
;	op : INLINEASM
_00014_DS_
	BANKSEL __KF8_lib_Touch_Bits_
	JNB __KF8_lib_Touch_Bits_, 1
	JMP lable_06151543
	;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	CPLR __KF8_LIBi_Touch_New_Date_TS_T_
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	AND __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_, R0
	;;;;;;;;
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	CPLR (__KF8_LIBi_Touch_New_Date_TS_T_+1)
	BANKSEL __KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	AND (__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_ + 1), R0
lable_06151543:
	
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,# (__KF8_LIBc_baseline_count_ + 0)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1,[R0]
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	MOV __KF8_lib_bahualvtemportemp_TS_T_, R1
	;;;;;;;;;;;;;;;;;
	MOV R0,# low (__KF8_BaseLine_Update_Circle_Count_For_Down_+0)
	MOV R1,# high (__KF8_BaseLine_Update_Circle_Count_For_Down_+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	XOR R0, __KF8_lib_bahualvtemportemp_TS_T_
	JNB PSW, 2
	JMP lable_06151621
	;;;;;;;;;;;;;;;;;;
	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_bahualvtemportemp_TS_T_
	XOR R0, __KF8_lib_bahualvtemportemp_TS_T_
	JB PSW, 2
	JMP lable_06151626
	;;;;;;;;;;;;;;;;;;;;
lable_06151621:
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,# (__KF8_LIBc_baseline_count_ + 0)
	BANKSEL __KF8_LIBc_baseline_count_
	MOV R1,#0X00
	ST [R0],R1
	;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_+0)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	MOV __KF8_Temp_Cur_A_TS_T_,R1
	INC R0
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	MOV __KF8_Temp_Cur_A_TS_T_+1,R1
	;;;
	MOV R1,#0x01
_KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0001:
	CLR PSW,0
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	RRC __KF8_Temp_Cur_A_TS_T_+1
	RRC __KF8_Temp_Cur_A_TS_T_
	CLR PSW,0
	RLC R1
	MOV R0,R1
	XOR R0,#(8)
	JB PSW,2
	JMP _KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0001
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0,#(__KF8_LIBi_buff_hit_+0)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	MOV __KF8_Temp_Cur_B_TS_T_,R1
	INC R0
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	MOV __KF8_Temp_Cur_B_TS_T_+1,R1
	;;;
	MOV R1,#0x01
_KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0002:
	CLR PSW,0
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	RRC __KF8_Temp_Cur_B_TS_T_+1
	RRC __KF8_Temp_Cur_B_TS_T_
	CLR PSW,0
	RLC R1
	MOV R0,R1
	XOR R0,#(8)
	JB PSW,2
	JMP _KF8_lib_DW_UP_Basic_IIR_Normal_Get_DS_0002
	;;;
	;;;;
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	MOV R1,__KF8_Temp_Cur_A_TS_T_
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	SUB __KF8_Temp_Cur_B_TS_T_,R1
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	MOV R1,__KF8_Temp_Cur_A_TS_T_+1
	JB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	SUB __KF8_Temp_Cur_B_TS_T_+1,R1
	;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0,_Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_+0)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1,[R0]
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	ADD R1, __KF8_Temp_Cur_B_TS_T_
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;;
	INC R0
	LD R1,[R0]
	JNB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	ADD R1,__KF8_Temp_Cur_B_TS_T_+1
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL __KF8_LIBi_Date_Change_
	LD R1, [R0]
	JNB R1, 7
	JMP lable_06151740
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1, [R0]
	ADD R1, #0XFF
	ST [R0],R1
	JNB PSW,0
	JMP lable_06151626
	INC R0
	LD R1,[R0]
	DEC R1
	ST [R0],R1
	JMP lable_06151626
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06151740:
	BANKSEL _Addr_Copy_Int_KF8_Lib_TS_T_
	MOV R0, _Addr_Copy_Int_KF8_Lib_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	LD R1, [R0]
	ADD R1,#0X01
	ST [R0],R1
	JB PSW,0
	JMP lable_06151626
	INC R0
	LD R1,[R0]
	INC R1
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;
lable_06151626:
	
;	op : LABEL
;	op : INLINEASM
_00018_DS_
	BANKSEL __KF8_lib_Touch_Bits_
	JB __KF8_lib_Touch_Bits_, 1
	JMP lable_06161004
	;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_touch_count_)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_,R1
	;;;;;;;;;;;;;;;;;;;;;;;
	MOV R1,# high (_TCS_AMOUNT+0)
	MOV R0,# low (_TCS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	SUB __KF8_lib_Date_Uchar_Temp_TS_T_,R0
	JNB PSW,0
	JMP lable_06161004
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_touch_count_)
	MOV R1,#0X00
	BANKSEL __KF8_LIBc_touch_count_
	ST [R0],R1
lable_06161004:
	
;	op : +
;	.line	1140; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBi_Date_Change_[i_KF8_lib_TS_T_]>=0)
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBi_Date_Change_
	LD	R0, [R1]
	BANKSEL	r0x1044
	MOV	r0x1044, R0
;	op : <
;signed compare: left < lit(0x0=0), size=1, mask=ff
	SET	PSW, 0
	BANKSEL	r0x1044
	JB	r0x1044, 7
	CLR	PSW, 0
	JNB	PSW, 0
	JMP	_00020_DS_
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_baseline_count_)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1, [R0]
	DEC R1
	ST [R0],R1
	
;	op : GOTO
	JMP	_00021_DS_
;	op : LABEL
;	op : INLINEASM
_00020_DS_
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_baseline_count_)
	BANKSEL __KF8_LIBc_baseline_count_
	LD R1, [R0]
	INC R1
	ST [R0],R1
	
;	op : LABEL
;	op : GET_VALUE_AT_ADDRESS
_00021_DS_
;	.line	1176; "../kf8ts24_touch_g_lib.c"	if(!_KF8_lib_Touch_Bits_._KF8_Touch_Protect_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JNB	__KF8_lib_Touch_Bits_, 1
	JMP	_00050_DS_
;	op : IFX
;	.line	1179; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBi_channel_flag_==0)
	BANKSEL	__KF8_LIBi_channel_flag_
	MOVZ	R0, __KF8_LIBi_channel_flag_
	BANKSEL	__KF8_LIBi_channel_flag_
	ORL	R0, (__KF8_LIBi_channel_flag_ + 1)
	JB	PSW, 2
	JMP	_00025_DS_
;	op : +
;	.line	1181; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBi_Date_Change_[i_KF8_lib_TS_T_]<_KF8_Config_Finger_Threshold[i_KF8_lib_TS_T_])
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBi_Date_Change_
	LD	R0, [R1]
	BANKSEL	r0x1044
	MOV	r0x1044, R0
;	op : +
	MOV	R0,# (__KF8_Config_Finger_Threshold + 0)
	BANKSEL	_i_KF8_lib_TS_T_
	ADD	R0, _i_KF8_lib_TS_T_
	BANKSEL	r0x1040
	MOV	r0x1040, R0
	MOV	R0,# high (__KF8_Config_Finger_Threshold + 0)
	BANKSEL	r0x1043
	MOV	r0x1043, R0
	CLR	R0
	JNB	PSW, 0
	INC	R0
	JNB	PSW, 2
	JMP	_00156_DS_
	BANKSEL	r0x1043
	ADD	r0x1043, R0
;	op : GET_VALUE_AT_ADDRESS
_00156_DS_
	BANKSEL	r0x1043
	MOV	R1, r0x1043
	BANKSEL	r0x1040
	MOV	R0, r0x1040
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1045
	MOV	r0x1045, R0
;	op : <
	BANKSEL	r0x1044
	MOVZ	R0, r0x1044
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	MOV	r0x1042, R0
	BANKSEL	r0x1045
	MOVZ	R0, r0x1045
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	SUB	R0, r0x1042
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00025_DS_
;	op : +
;	.line	1183; "../kf8ts24_touch_g_lib.c"	_KF8_LIBc_touch_count_[i_KF8_lib_TS_T_]=0;
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : =
	MOV	R0,# 0x00
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_touch_count_
	ST	[R1], R0
;	op : LABEL
;	op : EQ_OP
_00025_DS_
;	.line	1190; "../kf8ts24_touch_g_lib.c"	if(	((i_KF8_lib_TS_T_==_KF8_lib_Finded_MAX_I_TS_T_)	||	(i_KF8_lib_TS_T_==_KF8_lib_Finded_MAX_J_TS_T_) )&& _KF8_LIBi_Date_Change_[i_KF8_lib_TS_T_]>_KF8_Config_Finger_Threshold[i_KF8_lib_TS_T_]	)
	BANKSEL	__KF8_lib_Finded_MAX_I_TS_T_
	MOVZ	R0, __KF8_lib_Finded_MAX_I_TS_T_
	BANKSEL	_i_KF8_lib_TS_T_
	XOR	R0, _i_KF8_lib_TS_T_
	JNB	PSW, 2
	JMP	_00048_DS_
	BANKSEL	__KF8_lib_Finded_MAX_J_TS_T_
	MOVZ	R0, __KF8_lib_Finded_MAX_J_TS_T_
	BANKSEL	_i_KF8_lib_TS_T_
	XOR	R0, _i_KF8_lib_TS_T_
	JB	PSW, 2
	JMP	_00045_DS_
;	op : LABEL
;	op : +
_00048_DS_
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBi_Date_Change_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBi_Date_Change_
	LD	R0, [R1]
	BANKSEL	r0x1044
	MOV	r0x1044, R0
;	op : +
	MOV	R0,# (__KF8_Config_Finger_Threshold + 0)
	BANKSEL	_i_KF8_lib_TS_T_
	ADD	R0, _i_KF8_lib_TS_T_
	BANKSEL	r0x1040
	MOV	r0x1040, R0
	MOV	R0,# high (__KF8_Config_Finger_Threshold + 0)
	BANKSEL	r0x1043
	MOV	r0x1043, R0
	CLR	R0
	JNB	PSW, 0
	INC	R0
	JNB	PSW, 2
	JMP	_00157_DS_
	BANKSEL	r0x1043
	ADD	r0x1043, R0
;	op : GET_VALUE_AT_ADDRESS
_00157_DS_
	BANKSEL	r0x1043
	MOV	R1, r0x1043
	BANKSEL	r0x1040
	MOV	R0, r0x1040
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1045
	MOV	r0x1045, R0
;	op : >
	BANKSEL	r0x1045
	MOVZ	R0, r0x1045
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	MOV	r0x1042, R0
	BANKSEL	r0x1044
	MOVZ	R0, r0x1044
	ADD	R0,# 0x80
	BANKSEL	r0x1042
	SUB	R0, r0x1042
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00045_DS_
;	op : LEFT_OP
;	.line	1194; "../kf8ts24_touch_g_lib.c"	if(_KF8TS24_Data_Steady_Flag_&(1<<i_KF8_lib_TS_T_))//Etan2018-2-1;只有在采样值稳定的时候才认为有按键触发
	MOV	R0,# 0x01
	BANKSEL	r0x1040
	MOV	r0x1040, R0
	MOV	R0,# 0x00
	BANKSEL	r0x1043
	MOV	r0x1043, R0
	BANKSEL	_i_KF8_lib_TS_T_
	MOVZ	R0, _i_KF8_lib_TS_T_
	INC	R0
	JMP	_00093_DS_
_00092_DS_
	CLR	PSW, 0
	BANKSEL	r0x1040
	RLC	r0x1040
	BANKSEL	r0x1043
	RLC	r0x1043
_00093_DS_
	DECJZ	R0
	JMP	_00092_DS_
;	op : CAST
;;100	MOVZ	R0, r0x1040
;;102	MOVZ	R0, r0x1043
;	op : BITWISEAND
;;99	MOVZ	R0, r0x1044
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1044
	MOV	r0x1044, R0
	BANKSEL	__KF8TS24_Data_Steady_Flag_
	AND	R0, __KF8TS24_Data_Steady_Flag_
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;;101	MOVZ	R0, r0x1045
	BANKSEL	r0x1043
	MOVZ	R0, r0x1043
	BANKSEL	r0x1045
	MOV	r0x1045, R0
	BANKSEL	__KF8TS24_Data_Steady_Flag_
	AND	R0, (__KF8TS24_Data_Steady_Flag_ + 1)
	BANKSEL	r0x1043
	MOV	r0x1043, R0
;	op : IFX
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1043
	ORL	R0, r0x1043
	JNB	PSW, 2
	JMP	_00029_DS_
;	op : +
;	.line	1196; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBc_touch_count_[i_KF8_lib_TS_T_]<TCS_AMOUNT)
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_touch_count_
	LD	R0, [R1]
	BANKSEL	r0x1044
	MOV	r0x1044, R0
;	op : =
;gen_assign from CODESPACE
	MOV	R1,# high (_TCS_AMOUNT+0)
	MOV	R0,# low (_TCS_AMOUNT+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : <
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1044
	SUB	R0, r0x1044
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00029_DS_
;	op : +
;	.line	1198; "../kf8ts24_touch_g_lib.c"	_KF8_LIBc_touch_count_[i_KF8_lib_TS_T_]++;
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_touch_count_
	LD	R0, [R1]
	BANKSEL	r0x1045
	MOV	r0x1045, R0
;	op : +
	BANKSEL	r0x1045
	INC	r0x1045
;	op : =
	BANKSEL	r0x1045
	MOVZ	R0, r0x1045
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_touch_count_
	ST	[R1], R0
;	op : LABEL
;	op : =
;gen_assign from CODESPACE
_00029_DS_
;	.line	1231; "../kf8ts24_touch_g_lib.c"	if(_KF8_DoubleKey_Compages_Limitable_Circle_)  // ！=0的判断
	MOV	R1,# high (__KF8_DoubleKey_Compages_Limitable_Circle_+0)
	MOV	R0,# low (__KF8_DoubleKey_Compages_Limitable_Circle_+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
	MOV	R1,# high (__KF8_DoubleKey_Compages_Limitable_Circle_+1)
	MOV	R0,# low (__KF8_DoubleKey_Compages_Limitable_Circle_+1)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1044
	MOV	r0x1044, R0
;	op : IFX
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1044
	ORL	R0, r0x1044
	JNB	PSW, 2
	JMP	_00036_DS_
;	op : EQ_OP
;	.line	1233; "../kf8ts24_touch_g_lib.c"	if(_KF8_lib_Key_Down_Count_TS_T_==1&&_KF8_lib_Key_Double_Timer_Protect_TS_T_<_KF8_DoubleKey_Compages_Limitable_Circle_)
	BANKSEL	__KF8_lib_Key_Down_Count_TS_T_
	MOVZ	R0, __KF8_lib_Key_Down_Count_TS_T_
	XOR	R0,# 0x01
	JB	PSW, 2
	JMP	_00036_DS_
;	op : <
	BANKSEL	r0x1044
	MOVZ	R0, r0x1044
	BANKSEL	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	SUB	R0, (__KF8_lib_Key_Double_Timer_Protect_TS_T_ + 1)
;comparing bytes at offset 1
	JB	PSW, 2
	JMP	_00095_DS_
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	SUB	R0, __KF8_lib_Key_Double_Timer_Protect_TS_T_
_00095_DS_
	JNB	PSW, 0
	JMP	_00036_DS_
;	op : +
;	.line	1235; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Key_Double_Timer_Protect_TS_T_++;
	BANKSEL	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	INC	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	JB	PSW, 2
	JMP	_00158_DS_
	BANKSEL	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	INC	(__KF8_lib_Key_Double_Timer_Protect_TS_T_ + 1)
;	op : EQ_OP
_00158_DS_
;	.line	1236; "../kf8ts24_touch_g_lib.c"	if(_KF8_lib_Key_Double_Timer_Protect_TS_T_==_KF8_DoubleKey_Compages_Limitable_Circle_)
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	XOR	R0, __KF8_lib_Key_Double_Timer_Protect_TS_T_
	JB	PSW, 2
	JMP	_00036_DS_
	BANKSEL	r0x1044
	MOVZ	R0, r0x1044
	BANKSEL	__KF8_lib_Key_Double_Timer_Protect_TS_T_
	XOR	R0, (__KF8_lib_Key_Double_Timer_Protect_TS_T_ + 1)
	JB	PSW, 2
	JMP	_00036_DS_
;	op : =
;	.line	1238; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Key_Down_Count_TS_T_=2;
	MOV	R0,# 0x02
	BANKSEL	__KF8_lib_Key_Down_Count_TS_T_
	MOV	__KF8_lib_Key_Down_Count_TS_T_, R0
;	op : =
;	.line	1239; "../kf8ts24_touch_g_lib.c"	_KF8_LIBc_finger_OUT_Second_TS_T_=_KF8_LIBc_finger_OUT_First_TS_T_;
	BANKSEL	__KF8_LIBc_finger_OUT_First_TS_T_
	MOVZ	R0, __KF8_LIBc_finger_OUT_First_TS_T_
	BANKSEL	__KF8_LIBc_finger_OUT_Second_TS_T_
	MOV	__KF8_LIBc_finger_OUT_Second_TS_T_, R0
;	op : LABEL
;	op : +
_00036_DS_
;	.line	1244; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBc_touch_count_[i_KF8_lib_TS_T_]==TCS_AMOUNT )
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_touch_count_
	LD	R0, [R1]
	BANKSEL	r0x1045
	MOV	r0x1045, R0
;	op : =
;gen_assign from CODESPACE
	MOV	R1,# high (_TCS_AMOUNT+0)
	MOV	R0,# low (_TCS_AMOUNT+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : EQ_OP
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1045
	XOR	R0, r0x1045
	JB	PSW, 2
	JMP	_00050_DS_
;	op : IFX
;	.line	1249; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBi_channel_flag_)
	BANKSEL	__KF8_LIBi_channel_flag_
	MOVZ	R0, __KF8_LIBi_channel_flag_
	BANKSEL	__KF8_LIBi_channel_flag_
	ORL	R0, (__KF8_LIBi_channel_flag_ + 1)
	JNB	PSW, 2
	JMP	_00038_DS_
;	op : INLINEASM
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	MOV R0, __KF8_lib_Key_Down_Count_TS_T_
	XOR R0,# 0x01
	JB PSW, 2
	JMP lable_06161201
	;;;;;;;;;;;;;
	MOV R0,# 0x02
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	MOV __KF8_lib_Key_Down_Count_TS_T_, R0
	;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS_T_
	MOV __KF8_LIBc_finger_OUT_Second_TS_T_, R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	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
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_ , R0
	;;;;;;;;;;;;;;;;;;;;
	ADD R0,#low(__KF8_LIBt_buff_bit_TS_T_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS_T_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	ORL __KF8_LIBi_channel_flag_,R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	INC R0
	ADD R0,#low(__KF8_LIBt_buff_bit_TS_T_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS_T_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	ORL (__KF8_LIBi_channel_flag_+1), R0
	JMP lable_06161420
	;;;;;;
lable_06161201:
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0,_i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_touch_count_)
	MOV R1,#0X00
	BANKSEL __KF8_LIBc_touch_count_
	ST [R0], R1
lable_06161420:
	
;	op : GOTO
	JMP	_00039_DS_
;	op : LABEL
;	op : INLINEASM
_00038_DS_
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	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
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_ , R0
	;;;;;;;;;;;;;;;;;;;;
	ADD R0,#low(__KF8_LIBt_buff_bit_TS_T_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS_T_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	MOV __KF8_LIBi_channel_flag_,R0
	;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0, __KF8_lib_Date_Uchar_Temp_TS_T_
	INC R0
	ADD R0,#low(__KF8_LIBt_buff_bit_TS_T_)
	MOV R1,#high(__KF8_LIBt_buff_bit_TS_T_)
	JNB PSW,0
	INC R1
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	MOV (__KF8_LIBi_channel_flag_+1), R0
	;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0x01
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	MOV __KF8_lib_Key_Down_Count_TS_T_, R0
	;;;;;;;;;;;;
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS_T_
	MOV __KF8_lib_Key_Double_Timer_Protect_TS_T_, R0
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS_T_
	CLR (__KF8_lib_Key_Double_Timer_Protect_TS_T_ + 1)
	;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0, _i_KF8_lib_TS_T_
	BANKSEL __KF8_LIBc_finger_OUT_First_TS_T_
	MOV __KF8_LIBc_finger_OUT_First_TS_T_, R0
	;;;;;;;;;;;;;;;
	MOV R0,# 0xff
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS_T_
	MOV __KF8_LIBc_finger_OUT_Second_TS_T_, R0
	
;	op : LABEL
;	op : INLINEASM
_00039_DS_
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0,_i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_touch_count_)
	BANKSEL __KF8_LIBc_touch_count_
	LD R1,[R0]
	INC R1
	ST [R0],R1
	
;	op : GOTO
	JMP	_00050_DS_
;	op : LABEL
;	op : +
_00045_DS_
;	.line	1421; "../kf8ts24_touch_g_lib.c"	else if(_KF8_LIBc_touch_count_[i_KF8_lib_TS_T_]<TCS_AMOUNT)
	BANKSEL	_i_KF8_lib_TS_T_
	MOV	R0, _i_KF8_lib_TS_T_
	ADD	R0,# (__KF8_LIBc_touch_count_ + 0)
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1040
	MOV	R1, r0x1040
	BANKSEL	__KF8_LIBc_touch_count_
	LD	R0, [R1]
	BANKSEL	r0x1046
	MOV	r0x1046, R0
;	op : =
;gen_assign from CODESPACE
	MOV	R1,# high (_TCS_AMOUNT+0)
	MOV	R0,# low (_TCS_AMOUNT+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
;	op : <
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1046
	SUB	R0, r0x1046
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00050_DS_
;	op : INLINEASM
	BANKSEL _i_KF8_lib_TS_T_
	MOV R0,_i_KF8_lib_TS_T_
	ADD R0,#(__KF8_LIBc_touch_count_)
	BANKSEL __KF8_LIBc_touch_count_
	MOV R1,#0X00
	ST [R0],R1
	
;	op : LABEL
;	op : INLINEASM
_00050_DS_
	CLR PSW, 0
	BANKSEL __KF8_LIBi_Touch_New_Date_TS_T_
	RLC __KF8_LIBi_Touch_New_Date_TS_T_
	RLC (__KF8_LIBi_Touch_New_Date_TS_T_ + 1)
	
;	op : +
;	.line	465; "../kf8ts24_touch_g_lib.c"	for(i_KF8_lib_TS_T_=0;i_KF8_lib_TS_T_<CHS_AMOUNT;i_KF8_lib_TS_T_++)
	BANKSEL	_i_KF8_lib_TS_T_
	INC	_i_KF8_lib_TS_T_
;	op : GOTO
	JMP	_00057_DS_
;	op : LABEL
;	op : =
_00060_DS_
;	.line	1453; "../kf8ts24_touch_g_lib.c"	_KF8_lib_CH_DW_Change_Count_TS_T_=0;
	BANKSEL	__KF8_lib_CH_DW_Change_Count_TS_T_
	CLR	__KF8_lib_CH_DW_Change_Count_TS_T_
;	op : GET_VALUE_AT_ADDRESS
;	.line	1455; "../kf8ts24_touch_g_lib.c"	if(_KF8_lib_Touch_Bits_._KF8_Touch_Protect_Flag)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 1
	JMP	_00052_DS_
;	op : INLINEASM
	MOV R0,#low(__KF8_Disturb_Protect_Circle_)
	MOV R1,#high(__KF8_Disturb_Protect_Circle_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;
	BANKSEL __KF8_lib_Wave_Protect_Time_Count_TS_T_
	INC __KF8_lib_Wave_Protect_Time_Count_TS_T_
	MOV R1,__KF8_lib_Wave_Protect_Time_Count_TS_T_
	;;;;;;;;;
	SUB R1,R0
	JNB PSW, 0
	JMP lable_06161507
	BANKSEL __KF8_lib_Touch_Bits_
	CLR __KF8_lib_Touch_Bits_, 1
lable_06161507:
	
;	op : LABEL
;	op : =
;gen_assign from CODESPACE
_00052_DS_
;	.line	1486; "../kf8ts24_touch_g_lib.c"	if(_KF8_Key_Max_Pressed_Limitable_Circle_)
	MOV	R1,# high (__KF8_Key_Max_Pressed_Limitable_Circle_+0)
	MOV	R0,# low (__KF8_Key_Max_Pressed_Limitable_Circle_+0)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1040
	MOV	r0x1040, R0
	MOV	R1,# high (__KF8_Key_Max_Pressed_Limitable_Circle_+1)
	MOV	R0,# low (__KF8_Key_Max_Pressed_Limitable_Circle_+1)
	PAGESEL	__R2PCL
	CALL	__R2PCL
	PAGESEL	$
	BANKSEL	r0x1046
	MOV	r0x1046, R0
;	op : IFX
	BANKSEL	r0x1040
	MOVZ	R0, r0x1040
	BANKSEL	r0x1046
	ORL	R0, r0x1046
	JNB	PSW, 2
	JMP	_00061_DS_
;	op : IFX
;	.line	1488; "../kf8ts24_touch_g_lib.c"	if(_KF8_LIBi_channel_flag_)
	BANKSEL	__KF8_LIBi_channel_flag_
	MOVZ	R0, __KF8_LIBi_channel_flag_
	BANKSEL	__KF8_LIBi_channel_flag_
	ORL	R0, (__KF8_LIBi_channel_flag_ + 1)
	JNB	PSW, 2
	JMP	_00061_DS_
;	op : +
;	.line	1490; "../kf8ts24_touch_g_lib.c"	_KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_++;
	BANKSEL	__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	INC	__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	JB	PSW, 2
	JMP	_00159_DS_
	BANKSEL	__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	INC	(__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_ + 1)
;	op : INLINEASM
_00159_DS_
	MOV R0,#low(__KF8_Key_Max_Pressed_Limitable_Circle_)
	MOV R1,#high(__KF8_Key_Max_Pressed_Limitable_Circle_)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	XOR R0,__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	JB PSW,2
	JMP lable_06161527
	;;;;;;;;;;;;;;;;
	MOV R0,#low(__KF8_Key_Max_Pressed_Limitable_Circle_+1)
	MOV R1,#high(__KF8_Key_Max_Pressed_Limitable_Circle_+1)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	XOR R0,(__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_+1)
	JB PSW ,2
	JMP lable_06161527
	;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	CLR __KF8_LIBi_channel_flag_
	BANKSEL __KF8_LIBi_channel_flag_
	CLR (__KF8_LIBi_channel_flag_ + 1)
	;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	MOV R0, __KF8_lib_Key_Down_Count_TS_T_
	XOR R0,# 0x02
	JB PSW, 2
	JMP lable_06161530
	;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS_T_
	MOV R0,__KF8_LIBc_finger_OUT_Second_TS_T_
	CLR PSW,0
	RLC R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_, R0
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS_T_
	ADD R0,#(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
lable_06161530:
	BANKSEL __KF8_LIBc_finger_OUT_First_TS_T_
	MOV R0,__KF8_LIBc_finger_OUT_First_TS_T_
	CLR PSW,0
	RLC R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_, R0
	ADD R0, #(__KF8_LIBi_buff_hit_)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS_T_
	ADD R0,#(__KF8_LIBi_buff_hit_+1)
	BANKSEL __KF8_LIBi_buff_hit_
	LD R1,[R0]
	;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV R0,__KF8_lib_Date_Uchar_Temp_TS_T_
	ADD R0,#(__KF8_LIBi_buff_baseline_+1)
	BANKSEL __KF8_LIBi_buff_baseline_
	ST [R0],R1
	;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Key_Down_Count_TS_T_
	CLR __KF8_lib_Key_Down_Count_TS_T_
	;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0xff
	BANKSEL __KF8_LIBc_finger_OUT_First_TS_T_
	MOV __KF8_LIBc_finger_OUT_First_TS_T_, R0
	;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_finger_OUT_Second_TS_T_
	MOV __KF8_LIBc_finger_OUT_Second_TS_T_, R0
	;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS_T_
	CLR __KF8_lib_Key_Double_Timer_Protect_TS_T_
	BANKSEL __KF8_lib_Key_Double_Timer_Protect_TS_T_
	CLR (__KF8_lib_Key_Double_Timer_Protect_TS_T_ + 1)
	;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	CLR __KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	BANKSEL __KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_
	CLR (__KF8_lib_MAX_KEY_Vaule_Time_Count_TS_T_ + 1)
lable_06161527:
	
;	op : LABEL
;	op : ENDFUNCTION
_00061_DS_
	CRET	
; exit point of __KF8_LiBf_KEY_Deal_AND_BaseLine_Up



func.__KF8TS24_Init_Touch_General_	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  __KF8TS24_Init_Touch_General_	;Function start
; 2 exit points
;has an exit
;; Starting PostCode block
;	op : LABEL
;	op : FUNCTION
__KF8TS24_Init_Touch_General_	;Function start
; 2 exit points
;	op : =
;	.line	340; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Date_Uchar_Temp_TS_T_=0; // 开机放弃的n圈计数保证为0开始
	BANKSEL	__KF8_lib_Date_Uchar_Temp_TS_T_
	CLR	__KF8_lib_Date_Uchar_Temp_TS_T_
;	op : =
;	.line	342; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Touch_Bits_._KF8_Touch_Work_Flag=0; //初始化
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 0
;	op : =
;	.line	343; "../kf8ts24_touch_g_lib.c"	_KF8_lib_Touch_Bits_._KF8_Touch_Protect_Flag=0;//初始化
	BANKSEL	__KF8_lib_Touch_Bits_
	CLR	__KF8_lib_Touch_Bits_, 1
;	op : =
;	.line	347; "../kf8ts24_touch_g_lib.c"	_KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_=0;
	BANKSEL	__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	CLR	__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	BANKSEL	__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_
	CLR	(__KF8_lib_CH_DW_Change_Dealed_Flag_TS_T_ + 1)
;	op : INLINEASM
	MOV R0, # low (_CHS_AMOUNT+0)
	MOV R1, # high (_CHS_AMOUNT+0)
	PAGESEL __R2PCHPCL
	CALL __R2PCHPCL
	PAGESEL $
	RLC R0
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	MOV __KF8_lib_Date_Uchar_Temp_TS_T_,R0
	MOV R1,#(__KF8_LIBi_buff_hit_ + 0)
	CLR R0
__LooP_To_C_:
	BANKSEL __KF8_LIBi_buff_hit_
	ST [R1],R0
	INC R1
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	DECJZ __KF8_lib_Date_Uchar_Temp_TS_T_
	JMP __LooP_To_C_ ;;
	;;;;;;;;;;;;
	BANKSEL __KF8_LIBc_channel_
	CLR __KF8_LIBc_channel_
	;;;;;;;;;;;;
	BANKSEL __KF8_LIBi_channel_flag_
	CLR __KF8_LIBi_channel_flag_
	CLR __KF8_LIBi_channel_flag_+1
	;;;;;;;;;;;;;
	BANKSEL __KF8_lib_Date_Uchar_Temp_TS_T_
	CLR __KF8_lib_Date_Uchar_Temp_TS_T_
	;;;;;;;;;;;;;;
	
;	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,#0xD0 ;;
	BANKSEL CTCTL
	MOV CTCTL,R0
	
;	op : =
;	.line	409; "../kf8ts24_touch_g_lib.c"	C1EN=1;
	SET	_CM1CTL_bits, 0
;	op : INLINEASM
	NOP 
;	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,#0xD0 ;;
	BANKSEL _CTCTL
	MOV _CTCTL,R0
	NOP
	JB _CTCTL,6
	JMP $-3
	
;	op : =
;	.line	430; "../kf8ts24_touch_g_lib.c"	EIF2 = 0;
	CLR	_EIF2
;	op : =
;	.line	431; "../kf8ts24_touch_g_lib.c"	T3L = 0;
	CLR	_T3L
;	op : =
;	.line	432; "../kf8ts24_touch_g_lib.c"	T3H = 0;
	CLR	_T3H
;	op : INLINEASM
	banksel 0X12
	CLR 0X12 ;
	clr 0x41
	clr 0x11
	set 0x12,2
	
;	op : =
;	.line	442; "../kf8ts24_touch_g_lib.c"	CTIF=0;
	CLR	_EIF2_bits, 7
;	op : =
;	.line	443; "../kf8ts24_touch_g_lib.c"	CTIE=1;
	SET	_EIE2_bits, 7
;	op : =
;	.line	444; "../kf8ts24_touch_g_lib.c"	PUIE = 1;
	SET	_INTCTL_bits, 6
;	op : =
;	.line	445; "../kf8ts24_touch_g_lib.c"	AIE = 1;
	SET	_INTCTL_bits, 7
;	op : LABEL
;	op : ENDFUNCTION
	CRET	
; exit point of __KF8TS24_Init_Touch_General_



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_TS_T_
	MOV R0,__KF8_Temp_Cur_B_TS_T_
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	SUB __KF8_Temp_Cur_A_TS_T_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	MOV R1,(__KF8_Temp_Cur_B_TS_T_+1)
	JB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	SUB (__KF8_Temp_Cur_A_TS_T_+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_, 4
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	CPL __KF8_Temp_Cur_A_TS_T_
	BANKSEL (__KF8_Temp_Cur_A_TS_T_+1)
	CPL (__KF8_Temp_Cur_A_TS_T_+1)
	INC __KF8_Temp_Cur_A_TS_T_
	JNB PSW,2
	INC (__KF8_Temp_Cur_A_TS_T_+1)
	JMP label_5_5_5
label_4_4_4:
	;;
	BANKSEL __KF8_lib_Touch_Bits_
	SET __KF8_lib_Touch_Bits_, 4
label_5_5_5:
	
;	op : INLINEASM
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	MOV R0, (__KF8_Temp_Cur_A_TS_T_ + 1)
	AND R0,# 0xfc
	JB PSW, 2
	JMP label_6_6_6
	;;;;;;;;;;;;;;;;;;;;;;小于;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0x06
	INC R0
	JMP label_7_7_7
label_8_8_8:
	CLR PSW, 0
	RLC __KF8_Temp_Cur_A_TS_T_
	RLC (__KF8_Temp_Cur_A_TS_T_ + 1)
label_7_7_7:
	DECJZ R0
	JMP label_8_8_8
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0x08
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	ADD __KF8_Temp_Cur_B_TS_T_, R0
	JB PSW, 0
	JMP label_9_9_9
	INC (__KF8_Temp_Cur_B_TS_T_ + 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_TS_T_ + 1)
	RRC __KF8_Temp_Cur_B_TS_T_
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_TS_T_
	RLC __KF8_Temp_Cur_A_TS_T_
	RLC (__KF8_Temp_Cur_A_TS_T_ + 1)
	CLR PSW, 0
	RLC __KF8_Temp_Cur_A_TS_T_
	RLC (__KF8_Temp_Cur_A_TS_T_ + 1)
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0,# 0x80
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	ADD __KF8_Temp_Cur_B_TS_T_, R0
	JB PSW, 0
	JMP label_12_12_12
	INC (__KF8_Temp_Cur_B_TS_T_ + 1)
label_12_12_12:
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	MOV R0, (__KF8_Temp_Cur_B_TS_T_ + 1)
	MOV __KF8_Temp_Cur_B_TS_T_, R0
	CLR (__KF8_Temp_Cur_B_TS_T_ + 1)
label_13_13_13:
	
;	op : =
;	.line	274; "../kf8ts24_touch_g_lib.c"	_KF8_lib_bahualvtemportemp_TS_T_=0;
	BANKSEL	__KF8_lib_bahualvtemportemp_TS_T_
	CLR	__KF8_lib_bahualvtemportemp_TS_T_
;	op : INLINEASM
label_17_17_17:
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	MOV R0,__KF8_Temp_Cur_B_TS_T_
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	SUB __KF8_Temp_Cur_A_TS_T_,R0
	;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
	BANKSEL __KF8_Temp_Cur_B_TS_T_
	MOV R1,(__KF8_Temp_Cur_B_TS_T_+1)
	JB PSW,0
	INC R1
	BANKSEL __KF8_Temp_Cur_A_TS_T_
	SUB (__KF8_Temp_Cur_A_TS_T_+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_TS_T_
	INC __KF8_lib_bahualvtemportemp_TS_T_
	MOV R0,__KF8_lib_bahualvtemportemp_TS_T_
	SUB R0,#(126)
	JB PSW,0
	JMP label_16_16_16 ;
	JMP label_17_17_17 ;
label_16_16_16:
	
;	op : GET_VALUE_AT_ADDRESS
;	.line	316; "../kf8ts24_touch_g_lib.c"	if(_KF8_lib_Touch_Bits_._KF8_Touch_Flag_Flag1)
	BANKSEL	__KF8_lib_Touch_Bits_
	JB	__KF8_lib_Touch_Bits_, 4
	JMP	_00005_DS_
;	op : INLINEASM
	BANKSEL __KF8_lib_bahualvtemportemp_TS_T_
	CPL __KF8_lib_bahualvtemportemp_TS_T_
	INC __KF8_lib_bahualvtemportemp_TS_T_
	
;	op : LABEL
;	op : ENDFUNCTION
_00005_DS_
	CRET	
; exit point of __KF8_lib_Baihualv_get_



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:
;	  572+  290 =   862 instructions ( 2304 byte)


	.end
