;--------------------------------------------------------
; File Created by ChiponCC : ChipON  inc.
; Version 3.0.4#6752 (Jul 10 2019 19:07:19) (MSVC)
; This file was generated Tue Sep 24 16:30:19 2019
;--------------------------------------------------------
; chipon port for the 16-bit core
;--------------------------------------------------------
;	.file	"../main.c"
	.radix dec
	.include "KF8A100FTN.inc"
;--------------------------------------------------------
; external declarations
;--------------------------------------------------------
	.extern	_Init_osc
	.extern	_Init_GPIO
	.extern	_Delay_2us_loop
	.extern	_Delay_10us_loop
	.extern	_Delay_ms_loop
	.extern	_Init_SPI
	.extern	_SPI_mul
	.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	_PCH_bits
	.extern	_INTCTL_bits
	.extern	_EIF1_bits
	.extern	_EIF2_bits
	.extern	_T1CTL_bits
	.extern	_T2CTL0_bits
	.extern	_CCP3CTL_bits
	.extern	_BANK_bits
	.extern	_ADSCANCTL_bits
	.extern	_AMPCTL_bits
	.extern	_ANS1_bits
	.extern	_ADCCTL0_bits
	.extern	_AMPDT_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	_VREFCTL_bits
	.extern	_EIE1_bits
	.extern	_EIE2_bits
	.extern	_PCTL_bits
	.extern	_OSCCTL_bits
	.extern	_ANS0_bits
	.extern	_ANS2_bits
	.extern	_ANS3_bits
	.extern	_OSC0CAL2_bits
	.extern	_PUR0_bits
	.extern	_IOCL0_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	_PWM5CTL0_bits
	.extern	_ADCINTCTL_bits
	.extern	_PWM5CTL1_bits
	.extern	_P5ASCTL0_bits
	.extern	_PSTRCTL0_bits
	.extern	_PUR1_bits
	.extern	_PUR2_bits
	.extern	_TMRBUZ_bits
	.extern	_ADCCTL2_bits
	.extern	_INTEDGCTL_bits
	.extern	_IOCL4_bits
	.extern	_PUR3_bits
	.extern	_CCP4CTL_bits
	.extern	_PWM5OC_bits
	.extern	_T2CTL1_bits
	.extern	_PWM5FC_bits
	.extern	_P5ASCTL1_bits
	.extern	_PSTRCTL1_bits
	.extern	_PWM5CTL2_bits
	.extern	_PWM5PC_bits
	.extern	_RSCTL1_bits
	.extern	_BRCTL1_bits
	.extern	_TSCTL1_bits
	.extern	_USLPEN1_bits
	.extern	_SSCICTL0_bits
	.extern	_SSCICTL1_bits
	.extern	_SSCISTA_bits
	.extern	_SSCIMSK_bits
	.extern	_WDTPS_bits
	.extern	_MULCTL_bits
	.extern	_DIVCTL_bits
	.extern	_LEDCTL_bits
	.extern	_LEDPRE_bits
	.extern	_LEDDATA0_bits
	.extern	_LEDDATA1_bits
	.extern	_LEDDATA2_bits
	.extern	_LEDDATA3_bits
	.extern	_LEDDATA4_bits
	.extern	_LEDDATA5_bits
	.extern	_LEDDATA6_bits
	.extern	_LEDDATA7_bits
	.extern	_LEDDATA8_bits
	.extern	_LEDDATA9_bits
	.extern	_LEDDATAA_bits
	.extern	_LEDDATAB_bits
	.extern	_LEDDATAC_bits
	.extern	_LEDDATAD_bits
	.extern	_UPINSET1_bits
	.extern	_LPRCCTL_bits
	.extern	_PCAL_bits
	.extern	_LEDDATAE_bits
	.extern	_LEDDATAF_bits
	.extern	_LEDCTL2_bits
	.extern	_LEDOMS_bits
	.extern	_LEDLUM_bits
	.extern	_T4CTL_bits
	.extern	_ANS4_bits
	.extern	_ANS5_bits
	.extern	_P4_bits
	.extern	_P4LR_bits
	.extern	_TR4_bits
	.extern	_PUR4_bits
	.extern	_P5_bits
	.extern	_P5LR_bits
	.extern	_TR5_bits
	.extern	_PUR5_bits
	.extern	_PWMCTL0_bits
	.extern	_PWMCTL1_bits
	.extern	_PWM3CTL_bits
	.extern	_TEMPSNR_bits
	.extern	_UPINSET2_bits
	.extern	_U7816CTL2_bits
	.extern	_U7816RXCTL2_bits
	.extern	_U7816TXCTL2_bits
	.extern	_CLKDIV2_bits
	.extern	_EGTCTL2_bits
	.extern	_TZBRGH2_bits
	.extern	_TZBRGL2_bits
	.extern	_USLPEN2_bits
	.extern	_BRCTL2_bits
	.extern	_RSCTL2_bits
	.extern	_TSCTL2_bits
	.extern	_BKPCTL_bits
	.extern	_EIE4_bits
	.extern	_EIF4_bits
	.extern	_IP4_bits
	.extern	_CTCHCOMB0_bits
	.extern	_CTCHCOMB1_bits
	.extern	_CTCHCOMB2_bits
	.extern	_APFCTL0_bits
	.extern	_APFCTL1_bits
	.extern	_APFCTL2_bits
	.extern	_APFCTL3_bits
	.extern	_APFCTL4_bits
	.extern	_APFCTL5_bits
	.extern	_APFCTL6_bits
	.extern	_APFCTL7_bits
	.extern	_APFCTL8_bits
	.extern	_APFCTL9_bits
	.extern	_APFCTLA_bits
	.extern	_APFCTLB_bits
	.extern	_Send_BUF
	.extern	_Reciv_BUF
	.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	_T2L
	.extern	_T2CTL0
	.extern	_CCP3CTL
	.extern	_CCP3H
	.extern	_CCP3L
	.extern	_BANK
	.extern	_ADSCANCTL
	.extern	_AMPCTL
	.extern	_ANS1
	.extern	_ADCDATA0H
	.extern	_ADCCTL0
	.extern	_AMPDT
	.extern	_OPTR
	.extern	_IP0
	.extern	_IP1
	.extern	_IP2
	.extern	_TR0
	.extern	_TR2
	.extern	_TR1
	.extern	_OSCSTA
	.extern	_IP3
	.extern	_VREFCTL
	.extern	_EIE1
	.extern	_EIE2
	.extern	_PCTL
	.extern	_OSCCTL
	.extern	_OSCCAL0
	.extern	_ANS0
	.extern	_ANS2
	.extern	_ANS3
	.extern	_OSC0CAL2
	.extern	_PUR0
	.extern	_IOCL0
	.extern	_OSCCAL1
	.extern	_NVMDATAH
	.extern	_NVMDATAL
	.extern	_NVMADDRH
	.extern	_NVMADDRL
	.extern	_NVMCTL0
	.extern	_NVMCTL1
	.extern	_ADCDATA0L
	.extern	_ADCCTL1
	.extern	_T2CCR0H
	.extern	_T2H
	.extern	_PP5H
	.extern	_PWM5H0
	.extern	_PWM5H1
	.extern	_P0LR
	.extern	_P2LR
	.extern	_P1LR
	.extern	_P3LR
	.extern	_TR3
	.extern	_EIE3
	.extern	_EIF3
	.extern	_OSCCAL2
	.extern	_OSCCAL3
	.extern	_T3CTL
	.extern	_T3L
	.extern	_ADCDATA1H
	.extern	_ADCDATA1L
	.extern	_PP5L
	.extern	_T2CCR0L
	.extern	_PWM5L0
	.extern	_PWM5L1
	.extern	_PWM5CTL0
	.extern	_ADCINTCTL
	.extern	_ADCDATA2H
	.extern	_ADCDATA2L
	.extern	_PWM5CTL1
	.extern	_P5ASCTL0
	.extern	_PSTRCTL0
	.extern	_ADCDATA3H
	.extern	_T3H
	.extern	_PUR1
	.extern	_PUR2
	.extern	_TMRBUZ
	.extern	_ADCCTL2
	.extern	_INTEDGCTL
	.extern	_ADCDATA3L
	.extern	_IOCL4
	.extern	_PUR3
	.extern	_CCP4L
	.extern	_CCP4H
	.extern	_DIVRH
	.extern	_CCP4CTL
	.extern	_PWM5L2
	.extern	_PWM5L3
	.extern	_PWM5OC
	.extern	_T2CTL1
	.extern	_DIVBH
	.extern	_T2CCR1L
	.extern	_T2CCR1H
	.extern	_PWM5FC
	.extern	_P5ASCTL1
	.extern	_PSTRCTL1
	.extern	_PWM5CTL2
	.extern	_PWM5PC
	.extern	_PWM5H2
	.extern	_PWM5H3
	.extern	_RSCTL1
	.extern	_TXSDR1
	.extern	_RXSDR1
	.extern	_BRCTL1
	.extern	_TSCTL1
	.extern	_EUBRGL1
	.extern	_EUBRGH1
	.extern	_USLPEN1
	.extern	_SSCICTL0
	.extern	_SSCICTL1
	.extern	_SSCISTA
	.extern	_SSCIBUFR
	.extern	_UARTMTH1
	.extern	_SSCIADD
	.extern	_SSCIMSK
	.extern	_WDTPS
	.extern	_MULAH
	.extern	_MULAL
	.extern	_MULBH
	.extern	_MULBL
	.extern	_MULCTL
	.extern	_MULRES3
	.extern	_MULRES2
	.extern	_MULRES1
	.extern	_MULRES0
	.extern	_DIVCTL
	.extern	_DIVAH
	.extern	_DIVAL
	.extern	_DIVBL
	.extern	_DIVQH
	.extern	_DIVQL
	.extern	_DIVRL
	.extern	_LEDCTL
	.extern	_LEDPRE
	.extern	_LEDDATA0
	.extern	_LEDDATA1
	.extern	_LEDDATA2
	.extern	_LEDDATA3
	.extern	_LEDDATA4
	.extern	_LEDDATA5
	.extern	_LEDDATA6
	.extern	_LEDDATA7
	.extern	_LEDDATA8
	.extern	_LEDDATA9
	.extern	_LEDDATAA
	.extern	_LEDDATAB
	.extern	_LEDDATAC
	.extern	_LEDDATAD
	.extern	_UPINSET1
	.extern	_LPRCCTL
	.extern	_LPRCCAL
	.extern	_XTALCAL
	.extern	_PCAL
	.extern	_LEDDATAE
	.extern	_LEDDATAF
	.extern	_LEDCTL2
	.extern	_LEDOMS
	.extern	_VREFCAL0
	.extern	_VREFCAL1
	.extern	_LEDLUM
	.extern	_T3REL
	.extern	_T3REH
	.extern	_T4L
	.extern	_T4H
	.extern	_T4REL
	.extern	_T4REH
	.extern	_T4CTL
	.extern	_RC32KCAL
	.extern	_ANS4
	.extern	_ANS5
	.extern	_P4
	.extern	_P4LR
	.extern	_TR4
	.extern	_PUR4
	.extern	_P5
	.extern	_P5LR
	.extern	_TR5
	.extern	_PUR5
	.extern	_PWMCTL0
	.extern	_PWMCTL1
	.extern	_PP1
	.extern	_PP2
	.extern	_PWM10L
	.extern	_PWM20H
	.extern	_PWM11L
	.extern	_PWM21H
	.extern	_PWM12L
	.extern	_PWM22H
	.extern	_PWM13L
	.extern	_PWM23H
	.extern	_PWM3CTL
	.extern	_PP3H
	.extern	_PP3L
	.extern	_PWM30H
	.extern	_PWM31H
	.extern	_PWM32H
	.extern	_PWM33H
	.extern	_PWM30L
	.extern	_PWM31L
	.extern	_PWM32L
	.extern	_PWM33L
	.extern	_TEMPSNR
	.extern	_UPINSET2
	.extern	_U7816CTL2
	.extern	_U7816RXCTL2
	.extern	_U7816TXCTL2
	.extern	_CLKDIV2
	.extern	_EGTCTL2
	.extern	_TZBRGH2
	.extern	_TZBRGL2
	.extern	_UARTMTH2
	.extern	_USLPEN2
	.extern	_BRCTL2
	.extern	_RSCTL2
	.extern	_RXSDR2
	.extern	_EUBRGH2
	.extern	_EUBRGL2
	.extern	_TXSDR2
	.extern	_TSCTL2
	.extern	_BKPCTL
	.extern	_EIE4
	.extern	_EIF4
	.extern	_IP4
	.extern	_CTCHCOMB0
	.extern	_CTCHCOMB1
	.extern	_CTCHCOMB2
	.extern	_APFCTL0
	.extern	_APFCTL1
	.extern	_APFCTL2
	.extern	_APFCTL3
	.extern	_APFCTL4
	.extern	_APFCTL5
	.extern	_APFCTL6
	.extern	_APFCTL7
	.extern	_APFCTL8
	.extern	_APFCTL9
	.extern	_APFCTLA
	.extern	_APFCTLB
	.extern	_startup
	.extern	__gsinit_startup
;--------------------------------------------------------
; global declarations
;--------------------------------------------------------
	.global	_main
	.global	_int_fun0
	.global	_int_fun1

	.global I0R1
	.global I0R7
	.global I0PSW
	.global I0PCH
	.global I1R1
	.global I1R7
	.global I1PSW
	.global I1PCH
	.define _STK11	STK11
	.global STK11
	.define _STK10	STK10
	.global STK10
	.define _STK09	STK09
	.global STK09
	.define _STK08	STK08
	.global STK08
	.define _STK07	STK07
	.global STK07
	.define _STK06	STK06
	.global STK06
	.define _STK05	STK05
	.global STK05
	.define _STK04	STK04
	.global STK04
	.define _STK03	STK03
	.global STK03
	.define _STK02	STK02
	.global STK02
	.define _STK01	STK01
	.global STK01
	.define _STK00	STK00
	.global STK00

sharebank .udata
I0R1		.res 1
I0R7		.res 1
I0PSW		.res 1
I0PCH		.res 1
I1R1		.res 1
I1R7		.res 1
I1PSW		.res 1
I1PCH		.res 1
STK11	.res 1
	.type STK11, 108
STK10	.res 1
	.type STK10, 108
STK09	.res 1
	.type STK09, 108
STK08	.res 1
	.type STK08, 108
STK07	.res 1
	.type STK07, 108
STK06	.res 1
	.type STK06, 108
STK05	.res 1
	.type STK05, 108
STK04	.res 1
	.type STK04, 108
STK03	.res 1
	.type STK03, 108
STK02	.res 1
	.type STK02, 108
STK01	.res 1
	.type STK01, 108
STK00	.res 1
	.type STK00, 108

;--------------------------------------------------------
; global definitions
;--------------------------------------------------------
;--------------------------------------------------------
; absolute symbol definitions
;--------------------------------------------------------
;--------------------------------------------------------
; compiler-defined variables
;--------------------------------------------------------
UDL_main_0	.udata
r0x1014	.res	1
UDL_main_1	.udata
r0x1015	.res	1
UDL_main_2	.udata
r0x1016	.res	1
UDL_main_3	.udata
r0x1017	.res	1
UDL_main_4	.udata
r0x1018	.res	1
UDL_main_5	.udata
r0x101A	.res	1
;--------------------------------------------------------
; initialized data
;--------------------------------------------------------
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
;	.udata_ovr
;--------------------------------------------------------
; reset vector 
;--------------------------------------------------------
STARTUP	.code 0x0000
	NOP
	PAGESEL	init_imp
	JMP		init_imp

	.global	init_imp
INIT_IMP	.code
init_imp
	PAGESEL	_startup
	CALL	_startup
	PAGESEL	__gsinit_startup
	CALL	__gsinit_startup
	PAGESEL	_main
	JMP		_main
;--------------------------------------------------------
; interrupt and initialization code
;--------------------------------------------------------



func._int_fun0	.code
;***
;  PostBlock Stats: dbName = I
;***
;entry:  _int_fun0	;Function start
; 0 exit points
;; Starting PostCode block
;	::->op : LABEL
;	::->op : FUNCTION
_int_fun0	;Function start
; 0 exit points
;	::->op : LABEL
;	::->op : ENDFUNCTION
; R3 resprent for wsave,R4 resprent for ssave, R5 resprent for psave
interrupt_service_routine_0x04
_00029_DS_
;	.line	62; "../main.c"	}
	IRET	



func._int_fun1	.code
;***
;  PostBlock Stats: dbName = I
;***
;entry:  _int_fun1	;Function start
; 0 exit points
;; Starting PostCode block
;	::->op : LABEL
;	::->op : FUNCTION
_int_fun1	;Function start
; 0 exit points
;	::->op : LABEL
;	::->op : ENDFUNCTION
; R3 resprent for wsave,R4 resprent for ssave, R5 resprent for psave
interrupt_service_routine_0x14
_00031_DS_
;	.line	69; "../main.c"	}
	IRET	



func._main	.code
;***
;  PostBlock Stats: dbName = M
;***
;entry:  _main	;Function start
; 2 exit points
;has an exit
;functions called:
;   _Init_osc
;   _Init_GPIO
;   _Init_SPI
;   _SPI_mul
;   _Delay_ms_loop
;   _Delay_ms_loop
;   _Init_osc
;   _Init_GPIO
;   _Init_SPI
;   _SPI_mul
;   _Delay_ms_loop
;   _Delay_ms_loop
;8 compiler assigned registers:
;   r0x1014
;   r0x1015
;   r0x1016
;   r0x1017
;   r0x1018
;   r0x1019
;   r0x101A
;   STK00
;; Starting PostCode block
;	::->op : LABEL
;	::->op : FUNCTION
_main	;Function start
; 2 exit points
;	::->op : =
;	.line	19; "../main.c"	unsigned char k=0, Flag=0;
	BANKSEL	r0x1014
	CLR	r0x1014
;	::->op : CALL
;	.line	20; "../main.c"	Init_osc();
	PAGESEL	_Init_osc
	CALL	_Init_osc
	PAGESEL	$
;	::->op : CALL
;	.line	21; "../main.c"	Init_GPIO();
	PAGESEL	_Init_GPIO
	CALL	_Init_GPIO
	PAGESEL	$
;	::->op : CALL
;	.line	23; "../main.c"	Init_SPI();//初始化SPI外设
	PAGESEL	_Init_SPI
	CALL	_Init_SPI
	PAGESEL	$
;	::->op : LABEL
;	::->op : =
_00020_DS_
;	.line	26; "../main.c"	for(k=0;k<10;k++)//填写待发送的数据到Send_BUF
	BANKSEL	r0x1015
	CLR	r0x1015
;	::->op : LABEL
;	::->op : <
;unsigned compare: left < lit(0xA=10), size=1
_00013_DS_
	MOV	R0,# 0x0a
	BANKSEL	r0x1015
	SUB	R0, r0x1015
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00016_DS_
;	::->op : +
;	.line	28; "../main.c"	Send_BUF[k]=k;
	BANKSEL	r0x1015
	MOV	R0, r0x1015
	ADD	R0,# (_Send_BUF + 0)
	BANKSEL	r0x1016
	MOV	r0x1016, R0
;	::->op :*  =
	BANKSEL	r0x1015
	MOVZ	R0, r0x1015
	BANKSEL	r0x1016
	MOV	R1, r0x1016
	BANKSEL	_Send_BUF
	ST	[R1], R0
;	::->op : +
;	.line	26; "../main.c"	for(k=0;k<10;k++)//填写待发送的数据到Send_BUF
	BANKSEL	r0x1015
	INC	r0x1015
;	::->op : GOTO
	JMP	_00013_DS_
;	::->op : LABEL
;	::->op :*  =
_00016_DS_
;	.line	31; "../main.c"	SS=0;//使能从机
	BANKSEL	_P0LR_bits
	CLR	_P0LR_bits, 5
;	::->op : SEND
;	::->op : CALL
;	.line	32; "../main.c"	SPI_mul(10);//发送Send_BUF中的10个数据
	MOV	R0,# 0x0a
	PAGESEL	_SPI_mul
	CALL	_SPI_mul
	PAGESEL	$
;	::->op :*  =
;	.line	33; "../main.c"	SS=1;//复位从机
	BANKSEL	_P0LR_bits
	SET	_P0LR_bits, 5
;	::->op : =
;	.line	35; "../main.c"	for(k=0;k<10;k++)//验证从机发来的数据是否正确
	BANKSEL	r0x1015
	CLR	r0x1015
;	::->op : LABEL
;	::->op : <
;unsigned compare: left < lit(0xA=10), size=1
_00004_DS_
	MOV	R0,# 0x0a
	BANKSEL	r0x1015
	SUB	R0, r0x1015
;comparing bytes at offset 0
	JNB	PSW, 0
	JMP	_00007_DS_
;	::->op : CAST
;	.line	37; "../main.c"	if(k+10 == Reciv_BUF[k])
	BANKSEL	r0x1015
	MOVZ	R0, r0x1015
	BANKSEL	r0x1016
	MOV	r0x1016, R0
	BANKSEL	r0x1017
	CLR	r0x1017
;	::->op : +
	MOV	R0,# 0x0a
	BANKSEL	r0x1016
	ADD	r0x1016, R0
	JB	PSW, 0
	JMP	_00033_DS_
	BANKSEL	r0x1017
	INC	r0x1017
;	::->op : +
_00033_DS_
	BANKSEL	r0x1015
	MOV	R0, r0x1015
	ADD	R0,# (_Reciv_BUF + 0)
	BANKSEL	r0x1018
	MOV	r0x1018, R0
;	::->op : GET_VALUE_AT_ADDRESS
	BANKSEL	r0x1018
	MOV	R1, r0x1018
	BANKSEL	_Reciv_BUF
	LD	R0, [R1]
;;1	MOV	r0x1019, R0
	BANKSEL	r0x1018
	MOV	r0x1018, R0
;	::->op : CAST
;;99	MOVZ	R0, r0x1019
	BANKSEL	r0x101A
	CLR	r0x101A
;	::->op : EQ_OP
	BANKSEL	r0x1018
	MOVZ	R0, r0x1018
	BANKSEL	r0x1016
	XOR	R0, r0x1016
	JB	PSW, 2
	JMP	_00002_DS_
	BANKSEL	r0x101A
	MOVZ	R0, r0x101A
	BANKSEL	r0x1017
	XOR	R0, r0x1017
	JB	PSW, 2
	JMP	_00002_DS_
;	::->op : =
;	.line	38; "../main.c"	Flag=1;
	MOV	R0,# 0x01
	BANKSEL	r0x1014
	MOV	r0x1014, R0
;	::->op : GOTO
	JMP	_00003_DS_
;	::->op : LABEL
;	::->op : =
_00002_DS_
;	.line	41; "../main.c"	Flag=0;
	BANKSEL	r0x1014
	CLR	r0x1014
;	::->op : GOTO
;	.line	42; "../main.c"	break;
	JMP	_00007_DS_
;	::->op : LABEL
;	::->op : +
_00003_DS_
;	.line	44; "../main.c"	Reciv_BUF[k] =0;
	BANKSEL	r0x1015
	MOV	R0, r0x1015
	ADD	R0,# (_Reciv_BUF + 0)
	BANKSEL	r0x1016
	MOV	r0x1016, R0
;	::->op :*  =
	MOV	R0,# 0x00
	BANKSEL	r0x1016
	MOV	R1, r0x1016
	BANKSEL	_Reciv_BUF
	ST	[R1], R0
;	::->op : +
;	.line	35; "../main.c"	for(k=0;k<10;k++)//验证从机发来的数据是否正确
	BANKSEL	r0x1015
	INC	r0x1015
;	::->op : GOTO
	JMP	_00004_DS_
;	::->op : LABEL
;	::->op : IFX
_00007_DS_
;	.line	47; "../main.c"	if(Flag)//如果从机发来的数据正确LED2闪烁
	MOV	R0,# 0x00
	BANKSEL	r0x1014
	ORL	R0, r0x1014
	JNB	PSW, 2
	JMP	_00020_DS_
;	::->op : =
;	.line	49; "../main.c"	Flag=0;
	BANKSEL	r0x1014
	CLR	r0x1014
;	::->op : SEND
;	::->op : CALL
;	.line	50; "../main.c"	Delay_ms_loop(100);
	MOV	R0,# 0x64
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_Delay_ms_loop
	CALL	_Delay_ms_loop
	PAGESEL	$
;	::->op :*  =
;	.line	51; "../main.c"	LED2 =0;
	BANKSEL	_P3LR_bits
	CLR	_P3LR_bits, 1
;	::->op : SEND
;	::->op : CALL
;	.line	52; "../main.c"	Delay_ms_loop(100);
	MOV	R0,# 0x64
	BANKSEL	STK00
	MOV	STK00, R0
	MOV	R0,# 0x00
	PAGESEL	_Delay_ms_loop
	CALL	_Delay_ms_loop
	PAGESEL	$
;	::->op :*  =
;	.line	53; "../main.c"	LED2 =1;
	BANKSEL	_P3LR_bits
	SET	_P3LR_bits, 1
;	::->op : GOTO
	JMP	_00020_DS_
;	::->op : LABEL
;	::->op : ENDFUNCTION
	CRET	
; exit point of _main


;	code size estimation:
;	   93+   41 =   134 instructions (  350 byte)


	.end
