;--------------------------------------------------------
; File Created by ChiponCC : ChipON  inc.
;--------------------------------------------------------
; chipon port for the 16-bit core
;--------------------------------------------------------
	.file	"../debug_out.c"
	.radix dec
	.include "KF8TS2716.inc"
;--------------------------------------------------------
; external declarations
;--------------------------------------------------------
	.extern	_init_mcu
	.extern	__KF8TS27_Get_Ver_Slide_W_
	.extern	__KF8TS27_Init_Touch_Slide_W_
	.extern	__KF8TS27_Touch_Process_Slide_W_
	.extern	__KF8TS27_Touch_TEST_Slide_W_
	.extern	__KF8TS27_Lib_Set_Slide_W_Parameter
	.extern	_Write_cd4094
	.extern	_LCD1602_Init
	.extern	_LCD1602_Clear
	.extern	_LCD1602_setxy
	.extern	_LCD1602_PrintString
	.extern	_LCD1602_PrintInteger
	.extern	_LCD1602_PrintHEX
	.extern	_LCD1602_PrintHEX_TWO
	.extern	_delay_ms
	.extern	_delay_us
	.extern	__R2PCL
	.extern	_TOUCH_DEBUG_TRS_DEAL
	.extern	_STKR0
	.extern	_STK00
	.extern	_STK01
	.extern	_STK02
	.extern	_STK03
	.extern	_STK04
	.extern	_STK05
	.extern	_STK06
	.extern	_STK07
	.extern	_STK08
	.extern	_STK09
	.extern	_STK10
	.extern	_STK11
	.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	_T3CTL_bits
	.extern	_CTCTL0_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	_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	__KF8_LIBi_channel_flag_
	.extern	__KF8_LIBi_Slide_Press_Flag
	.extern	__KF8_LIBi_Slide_channel_out_
	.extern	__KF8_LIBi_Slide_distance_out_
	.extern	__KF8_LIBc_channel_
	.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	__KF8_lib_Slide_Finded_MAX_I_T27_SW_
	.extern	__KF8_lib_Slide_Finded_MAX_I_Buf_T27_SW_
	.extern	__KF8_LIBi_Slide_round_count_
	.extern	__KF8_LIBi_Slide_channel_back_
	.extern	_CHS_AMOUNT
	.extern	_SLIDE_AMOUNT
	.extern	_TCS_AMOUNT
	.extern	_TCS_Slide_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_TOUCH_CH_EN
	.extern	__SLIDE_DISTRIBUTION
	.extern	__SLIDE_RESOLUTION
	.extern	__SLIDE_SINGLE_RESOLUTION
	.extern	__SLIDE_OFFSET
	.extern	__KF8_Config_Finger_Threshold
	.extern	__KF8_Config_Finger_Threshold_In_Disturb_
	.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	_CTCTL0
	.extern	_T3H
	.extern	_PUR1
	.extern	_PUR2
	.extern	_CTCTL1
	.extern	_INTEDGCTL
	.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	_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	_TOUCH_DEBUG_SEND_OUT
	.global	_sentbuf1
	.global	_sentbuf2
	.global	_sentbuf3
	.global	_sentbuf4
	.define _STK11	STK11
	.define _STK10	STK10
	.define _STK09	STK09
	.define _STK08	STK08
	.define _STK07	STK07
	.define _STK06	STK06
	.define _STK05	STK05
	.define _STK04	STK04
	.define _STK03	STK03
	.define _STK02	STK02
	.define _STK01	STK01
	.define _STK00	STK00

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
UD_debug_out_0	.udata
_T_buf	.res	1

UD_debug_out_1	.udata
_i_T_D	.res	1

UD_debug_out_2	.udata
_sentbuf1	.res	1

UD_debug_out_3	.udata
_sentbuf2	.res	1

UD_debug_out_4	.udata
_sentbuf3	.res	1

UD_debug_out_5	.udata
_sentbuf4	.res	1

;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
UDL_debug_out_0	.udata
r0x1006	.res	1
UDL_debug_out_1	.udata
r0x1007	.res	1
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;	.udata_ovr


func._TOUCH_DEBUG_SEND_OUT	.code
;***
;  PostBlock Stats: dbName = C
;***
;entry:  _TOUCH_DEBUG_SEND_OUT	;Function start
; 2 exit points
;has an exit
;functions called:
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;   _delay_us
;3 compiler assigned registers:
;   STK00
;   r0x1006
;   r0x1007
;; Starting PostCode block
	.def _TOUCH_DEBUG_SEND_OUT_function_begin, debug, value=$

;	::->op : LABEL
;	::->op : FUNCTION
_TOUCH_DEBUG_SEND_OUT	;Function start
; 2 exit points
;	::->op :*  =
	.line	24; "../debug_out.c"	CLK_SET_IN;
	BANKSEL	_TR0_bits
	SET	_TR0_bits, 0
;	::->op :*  =
	.line	25; "../debug_out.c"	DAT_SET_IN;
	BANKSEL	_TR0_bits
	SET	_TR0_bits, 1
;	::->op : SEND
;	::->op : CALL
	.line	26; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : GET_VALUE_AT_ADDRESS
	.line	30; "../debug_out.c"	if(CLK_GET_STATE)
	BANKSEL	_P0_bits
	JB	_P0_bits, 0
	JMP	_00007_DS_
;	::->op : SEND
;	::->op : CALL
	.line	32; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : GET_VALUE_AT_ADDRESS
	.line	33; "../debug_out.c"	if(!CLK_GET_STATE)
	BANKSEL	_P0_bits
	JNB	_P0_bits, 0
	JMP	_00008_DS_
;	::->op : RETURN
	.line	34; "../debug_out.c"	return;
	JMP	_00035_DS_
;	::->op : LABEL
;	::->op : GET_VALUE_AT_ADDRESS
_00007_DS_
	.line	36; "../debug_out.c"	else if(!CLK_GET_STATE)
	BANKSEL	_P0_bits
	JNB	_P0_bits, 0
	JMP	_00004_DS_
;	::->op : RETURN
	.line	38; "../debug_out.c"	return;
	JMP	_00035_DS_
;	::->op : LABEL
;	::->op : RETURN
_00004_DS_
	.line	41; "../debug_out.c"	return;
	JMP	_00035_DS_
;	::->op : LABEL
;	::->op :*  =
_00008_DS_
	.line	43; "../debug_out.c"	CLK_SET_OUT;
	BANKSEL	_TR0_bits
	CLR	_TR0_bits, 0
;	::->op :*  =
	.line	45; "../debug_out.c"	CLK_SET_LOW;
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	46; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op :*  =
	.line	48; "../debug_out.c"	CLK_SET_HIGH;		//上升沿
	BANKSEL	_P0LR_bits
	SET	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	50; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	.line	52; "../debug_out.c"	if(!DAT_GET_STATE)
	PAGESEL	$
	.line	54; "../debug_out.c"	return;
	BANKSEL	_P0_bits
	JB	_P0_bits, 1
	.line	57; "../debug_out.c"	CLK_SET_LOW;			//下降沿
	JMP	_00035_DS_
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 0
	.line	60; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op :*  =
	.line	62; "../debug_out.c"	DAT_SET_OUT;
	BANKSEL	_TR0_bits
	CLR	_TR0_bits, 1
;	::->op : =
	.line	65; "../debug_out.c"	j=5;
	MOV	R0,# 0x05
	BANKSEL	r0x1006
	MOV	r0x1006, R0
;	::->op : =
	.line	67; "../debug_out.c"	for(step=0;step<5;step++)
	BANKSEL	r0x1007
	CLR	r0x1007
;	::->op : LABEL
;	::->op : <
;unsigned compare: left < lit(0x5=5), size=1
_00027_DS_
	MOV	R0,# 0x05
	BANKSEL	r0x1007
	SUB	R0, r0x1007
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00030_DS_
;	::->op : >
;swapping arguments (AOP_TYPEs 1/2)
;unsigned compare: left >= lit(0x5=5), size=1
	.line	69; "../debug_out.c"	switch(step)
	MOV	R0,# 0x05
	BANKSEL	r0x1007
	SUB	R0, r0x1007
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00016_DS_
;	::->op : JUMPTABLE
	MOV	R0,#high _00053_DS_
	MOV	PCH, R0
	MOV	R0,#_00053_DS_
	BANKSEL	r0x1007
	ADD	R0, r0x1007
	JNB	PSW, 0
	INC	PCH
	MOV	PCL, R0
_00053_DS_
	JMP	_00011_DS_
	JMP	_00012_DS_
	JMP	_00013_DS_
	JMP	_00014_DS_
	JMP	_00015_DS_
;	::->op : LABEL
;	::->op : =
_00011_DS_
	.line	73; "../debug_out.c"	j=5;
	MOV	R0,# 0x05
	BANKSEL	r0x1006
	MOV	r0x1006, R0
;	::->op : =
	.line	74; "../debug_out.c"	T_buf=0x05;
	MOV	R0,# 0x05
	BANKSEL	_T_buf
	MOV	_T_buf, R0
;	::->op : GOTO
	.line	75; "../debug_out.c"	}break;
	JMP	_00016_DS_
;	::->op : LABEL
;	::->op : =
_00012_DS_
	.line	78; "../debug_out.c"	j=8;
	MOV	R0,# 0x08
	BANKSEL	r0x1006
	MOV	r0x1006, R0
;	::->op : =
	.line	79; "../debug_out.c"	T_buf=sentbuf1;
	BANKSEL	_sentbuf1
	MOVZ	R0, _sentbuf1
	BANKSEL	_T_buf
	MOV	_T_buf, R0
;	::->op : GOTO
	.line	80; "../debug_out.c"	}break;
	JMP	_00016_DS_
;	::->op : LABEL
;	::->op : =
_00013_DS_
	.line	83; "../debug_out.c"	j=8;
	MOV	R0,# 0x08
	BANKSEL	r0x1006
	MOV	r0x1006, R0
;	::->op : =
	.line	84; "../debug_out.c"	T_buf=sentbuf2;
	BANKSEL	_sentbuf2
	MOVZ	R0, _sentbuf2
	BANKSEL	_T_buf
	MOV	_T_buf, R0
;	::->op : GOTO
	.line	85; "../debug_out.c"	}break;
	JMP	_00016_DS_
;	::->op : LABEL
;	::->op : =
_00014_DS_
	.line	88; "../debug_out.c"	j=8;
	MOV	R0,# 0x08
	BANKSEL	r0x1006
	MOV	r0x1006, R0
;	::->op : =
	.line	89; "../debug_out.c"	T_buf=sentbuf3;
	BANKSEL	_sentbuf3
	MOVZ	R0, _sentbuf3
	BANKSEL	_T_buf
	MOV	_T_buf, R0
;	::->op : GOTO
	.line	90; "../debug_out.c"	}break;
	JMP	_00016_DS_
;	::->op : LABEL
;	::->op : =
_00015_DS_
	.line	93; "../debug_out.c"	j=8;
	MOV	R0,# 0x08
	BANKSEL	r0x1006
	MOV	r0x1006, R0
;	::->op : =
	.line	94; "../debug_out.c"	T_buf=sentbuf4;
	BANKSEL	_sentbuf4
	MOVZ	R0, _sentbuf4
	BANKSEL	_T_buf
	MOV	_T_buf, R0
;	::->op : LABEL
;	::->op : =
_00016_DS_
	.line	98; "../debug_out.c"	for(i_T_D=0;i_T_D<j;i_T_D++)
	BANKSEL	_i_T_D
	CLR	_i_T_D
;	::->op : LABEL
;	::->op : <
_00023_DS_
	BANKSEL	r0x1006
	MOVZ	R0, r0x1006
	BANKSEL	_i_T_D
	SUB	R0, _i_T_D
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00026_DS_
;	::->op : BITWISEAND
	.line	100; "../debug_out.c"	if(T_buf&0x01)
	BANKSEL	_T_buf
	JB	_T_buf, 0
	JMP	_00018_DS_
;	::->op :*  =
	.line	101; "../debug_out.c"	DAT_SET_HIGH;
	BANKSEL	_P0LR_bits
	SET	_P0LR_bits, 1
;	::->op : GOTO
	JMP	_00019_DS_
;	::->op : LABEL
;	::->op :*  =
_00018_DS_
	.line	103; "../debug_out.c"	DAT_SET_LOW;
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 1
;	::->op : LABEL
;	::->op :*  =
_00019_DS_
	.line	105; "../debug_out.c"	CLK_SET_HIGH;
	BANKSEL	_P0LR_bits
	SET	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	106; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op :*  =
	.line	108; "../debug_out.c"	CLK_SET_LOW;
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	109; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : RIGHT_OP
	.line	111; "../debug_out.c"	T_buf=T_buf>>1;
	CLR	PSW, 0
	BANKSEL	_T_buf
	RRC	_T_buf
;	::->op : +
	.line	98; "../debug_out.c"	for(i_T_D=0;i_T_D<j;i_T_D++)
	BANKSEL	_i_T_D
	INC	_i_T_D
;	::->op : GOTO
	JMP	_00023_DS_
;	::->op : LABEL
;	::->op : SEND
;	::->op : CALL
_00026_DS_
	.line	114; "../debug_out.c"	Touch_Delay2;
	MOV	R0,# 0x6e
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : +
	.line	67; "../debug_out.c"	for(step=0;step<5;step++)
	BANKSEL	r0x1007
	INC	r0x1007
;	::->op : GOTO
	JMP	_00027_DS_
;	::->op : LABEL
;	::->op :*  =
_00030_DS_
	.line	118; "../debug_out.c"	DAT_SET_IN;
	BANKSEL	_TR0_bits
	SET	_TR0_bits, 1
;	::->op : SEND
;	::->op : CALL
	.line	119; "../debug_out.c"	Touch_Delay2;	//编程器判断需要时间
	MOV	R0,# 0x6e
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op :*  =
	.line	121; "../debug_out.c"	CLK_SET_HIGH;
	BANKSEL	_P0LR_bits
	SET	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	122; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : GET_VALUE_AT_ADDRESS
	.line	124; "../debug_out.c"	if(DAT_GET_STATE)
	BANKSEL	_P0_bits
	JB	_P0_bits, 1
	JMP	_00021_DS_
;	::->op : =
	.line	126; "../debug_out.c"	T_buf=0;
	BANKSEL	_T_buf
	CLR	_T_buf
;	::->op :*  =
	.line	127; "../debug_out.c"	CLK_SET_LOW;
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	128; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : =
	.line	129; "../debug_out.c"	for(i_T_D=0;i_T_D<6;i_T_D++)
	BANKSEL	_i_T_D
	CLR	_i_T_D
;	::->op : LABEL
;	::->op : <
;unsigned compare: left < lit(0x6=6), size=1
_00031_DS_
	MOV	R0,# 0x06
	BANKSEL	_i_T_D
	SUB	R0, _i_T_D
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00022_DS_
;	::->op :*  =
	.line	131; "../debug_out.c"	CLK_SET_HIGH;
	BANKSEL	_P0LR_bits
	SET	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	132; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op :*  =
	.line	134; "../debug_out.c"	CLK_SET_LOW;
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	135; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : +
	.line	129; "../debug_out.c"	for(i_T_D=0;i_T_D<6;i_T_D++)
	BANKSEL	_i_T_D
	INC	_i_T_D
;	::->op : GOTO
	JMP	_00031_DS_
;	::->op : LABEL
;	::->op :*  =
_00021_DS_
	.line	140; "../debug_out.c"	CLK_SET_LOW;
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 0
;	::->op : SEND
;	::->op : CALL
	.line	141; "../debug_out.c"	Touch_Delay1;
	MOV	R0,# 0x05
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_delay_us
	CALL	_delay_us
	PAGESEL	$
;	::->op : LABEL
;	::->op :*  =
_00022_DS_
	.line	144; "../debug_out.c"	CLK_SET_IN;
	BANKSEL	_TR0_bits
	SET	_TR0_bits, 0
;	::->op :*  =
	.line	145; "../debug_out.c"	DAT_SET_IN;
	BANKSEL	_TR0_bits
	SET	_TR0_bits, 1
;	::->op : LABEL
;	::->op : ENDFUNCTION
_00035_DS_
	CRET	
	.def _TOUCH_DEBUG_SEND_OUT_function_end, debug, value=$

; exit point of _TOUCH_DEBUG_SEND_OUT


;	code size estimation:
;	  186+   68 =   254 instructions (  644 byte)

	.type _TOUCH_DEBUG_SEND_OUT,  32
	.dim _TOUCH_DEBUG_SEND_OUT, 1, (_TOUCH_DEBUG_SEND_OUT_function_end&0xFF00)>>8, _TOUCH_DEBUG_SEND_OUT_function_end&0xFF,0,19,0,152 , 2, 2
	.def __00010000, debug, type = 8, class = 10, value = 1
	.def _0, debug, value = 1, type = 26, class = 8
	.def _1, debug, value = 1, type = 26, class = 8
	.def _2, debug, value = 1, type = 26, class = 8
	.def _3, debug, value = 1, type = 26, class = 8
	.def _4, debug, value = 1, type = 26, class = 8
	.def _5, debug, value = 1, type = 26, class = 8
	.def _6, debug, value = 1, type = 26, class = 8
	.def _7, debug, value = 1, type = 26, class = 8

	.end
