; Asm codes generated by Shanghai Haier C Compiler
; HRCO, Ver: 1.0,0137

#INCLUDE       	<ES7P169C.INC>
#INCLUDE       	<OPERATION.INC>
	PUBLIC         	_#T0
	EXTERN         	MUL_TEMP
	EXTERN         	MUL_TEMP
	EXTERN         	_memchr_c
	EXTERN         	_memchr_cDATA
	EXTERN         	_memchr
	EXTERN         	_memchrDATA
	EXTERN         	_memcmp_c
	EXTERN         	_memcmp_cDATA
	EXTERN         	_memcmp
	EXTERN         	_memcmpDATA
	EXTERN         	_memcpy_c
	EXTERN         	_memcpy_cDATA
	EXTERN         	_memcpy
	EXTERN         	_memcpyDATA
	EXTERN         	_memmove_c
	EXTERN         	_memmove_cDATA
	EXTERN         	_memmove
	EXTERN         	_memmoveDATA
	EXTERN         	_memset
	EXTERN         	_memsetDATA
	EXTERN         	_strcat_c
	EXTERN         	_strcat_cDATA
	EXTERN         	_strcat
	EXTERN         	_strcatDATA
	EXTERN         	_strchr_c
	EXTERN         	_strchr_cDATA
	EXTERN         	_strchr
	EXTERN         	_strchrDATA
	EXTERN         	_strcmp_c
	EXTERN         	_strcmp_cDATA
	EXTERN         	_strcmp
	EXTERN         	_strcmpDATA
	EXTERN         	_strcpy_c
	EXTERN         	_strcpy_cDATA
	EXTERN         	_strcpy
	EXTERN         	_strcpyDATA
	EXTERN         	_strichr_c
	EXTERN         	_strichr_cDATA
	EXTERN         	_strichr
	EXTERN         	_strichrDATA
	EXTERN         	_stricmp_c
	EXTERN         	_stricmp_cDATA
	EXTERN         	_stricmp
	EXTERN         	_stricmpDATA
	EXTERN         	_strlen_c
	EXTERN         	_strlen_cDATA
	EXTERN         	_strlen
	EXTERN         	_strlenDATA
	EXTERN         	_strncat_c
	EXTERN         	_strncat_cDATA
	EXTERN         	_strncat
	EXTERN         	_strncatDATA
	EXTERN         	_strncpy_c
	EXTERN         	_strncpy_cDATA
	EXTERN         	_strncpy
	EXTERN         	_strncpyDATA
	PUBLIC         	_check_empty
	PUBLIC         	_check_emptyDATA
	PUBLIC         	_Read_Cont
	PUBLIC         	_Read_ContDATA
	PUBLIC         	_Erase_Page
	PUBLIC         	_Erase_PageDATA
	PUBLIC         	_Write_Cont
	PUBLIC         	_Write_ContDATA
	PUBLIC         	_StartIAP
_check_empty_i_35	EQU            	_check_emptyDATA + 0X6		; Bank 0
_check_empty_buf16_35	EQU            	_check_emptyDATA + 0X8		; Bank 0
_check_empty_#T20300_35	EQU            	_check_emptyDATA + 0XA		; Bank 0
_check_empty_#T20301_35	EQU            	_check_emptyDATA + 0XC		; Bank 0
_check_empty_#T20314_36	EQU            	_check_emptyDATA + 0XA		; Bank 0
_check_empty_#T20328_37	EQU            	_check_emptyDATA + 0XA		; Bank 0
_check_empty_#T20331_37	EQU            	_check_emptyDATA + 0XC		; Bank 0
_check_empty_#T20334_37	EQU            	_check_emptyDATA + 0XA		; Bank 0
_check_empty_#T20424_38	EQU            	_check_emptyDATA + 0XA		; Bank 0
_check_empty_#T20427_38	EQU            	_check_emptyDATA + 0XC		; Bank 0
_check_empty_#T20430_38	EQU            	_check_emptyDATA + 0XA		; Bank 0
_Read_Cont_i_41	EQU            	_Read_ContDATA + 0X6		; Bank 0
_Read_Cont_#T20515_41	EQU            	_Read_ContDATA + 0X8		; Bank 0
_Read_Cont_#T20516_41	EQU            	_Read_ContDATA + 0XA		; Bank 0
_Read_Cont_#T20529_42	EQU            	_Read_ContDATA + 0X8		; Bank 0
_Read_Cont_#T20547_43	EQU            	_Read_ContDATA + 0X8		; Bank 0
_Read_Cont_#T20550_43	EQU            	_Read_ContDATA + 0XA		; Bank 0
_Read_Cont_#T20553_43	EQU            	_Read_ContDATA + 0X8		; Bank 0
_Read_Cont_#T20648_44	EQU            	_Read_ContDATA + 0X8		; Bank 0
_Read_Cont_#T20651_44	EQU            	_Read_ContDATA + 0XA		; Bank 0
_Read_Cont_#T20654_44	EQU            	_Read_ContDATA + 0X8		; Bank 0
_Write_Cont_i_50	EQU            	_Write_ContDATA + 0X6		; Bank 0
_Write_Cont_#T20849_50	EQU            	_Write_ContDATA + 0X8		; Bank 0
_Write_Cont_#T20850_50	EQU            	_Write_ContDATA + 0XA		; Bank 0
#TMP	EQU            	?_TMP+ 0X9		; Bank 0
?_TMP_RET	EQU            	?_TMP		; Bank 0
_MULA_0#sh	EQU            	(MULA - 0X6080) % 0X40 + 0xC0		; Bank 0
_MULB_0#sh	EQU            	(MULB - 0X6080) % 0X40 + 0xC0		; Bank 0
_MULL_0#sh	EQU            	(MULL - 0X6080) % 0X40 + 0xC0		; Bank 0
_MULH_0#sh	EQU            	(MULH - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEL_0#sh	EQU            	(DIVEL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEM_0#sh	EQU            	(DIVEM - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVSL_0#sh	EQU            	(DIVSL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVSH_0#sh	EQU            	(DIVSH - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVQL_0#sh	EQU            	(DIVQL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVQM_0#sh	EQU            	(DIVQM - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVRL_0#sh	EQU            	(DIVRL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVRH_0#sh	EQU            	(DIVRH - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVC_0#sh	EQU            	(DIVC - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEU_0#sh	EQU            	(DIVEU - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEH_0#sh	EQU            	(DIVEH - 0X6080) % 0X40 + 0xC0		; Bank 0
_FRAH_0#sh	EQU            	(FRAH - 0X6080) % 0X40 + 0xC0		; Bank 0
_FRAL_0#sh	EQU            	(FRAL - 0X6080) % 0X40 + 0xC0		; Bank 0
	_DESC          	check_empty,0X3,0X0

SECTION1check_empty	UNINTIAL       	0		; Bank 0
	ORG            	0X8D		; Bank 0
_check_emptyDATA	RSEG           	0XE		; Bank 0
check_empty#	CSEG           
_check_empty
; #include  <hic.h>
; #include  <string.h>
; #include  "typedef.h"
; #include  "macrodef.h"
; #include  "rw_flash.h"
; /**********************************************
; 函数名：check_empty
; 描  述：查询Flash是否为空
; 输入值：word_addr:Flash起始地址;num:查空的字节数
; 输出值：无
; 返回值：SUCCESS，FAILED
; **********************************************/
; u8 check_empty(u16  word_addr, u8 *buf_Addr, u16 num)
; {
;     u16  i, buf16;
#line 18	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     for (i = 0; i < (num / 2); i++)
	CLR            	BKSR
;   18:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	SECTION        	0x1
	CLR            	(_check_empty_i_35) & 0X7F		; Bank 1
	CLR            	(_check_empty_i_35+0x1) & 0X7F		; Bank 1
;   18:(     LABEL,    #L20281 ,            ,          )

; ITemplate_LABEL
#L20281
;   18:(    ASGN_2,          i ,            ,   #T20300)

; ITemplate_ASGN1_4_R
	MOV            	(_check_empty_i_35+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_#T20300_35+0x1) & 0X7F		; Bank 1
	MOV            	(_check_empty_i_35) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_#T20300_35) & 0X7F		; Bank 1
;   18:(    RSH_2U,        num ,          1 ,   #T20301)

; ITemplate_RSH1_4U_1
	BCC            	PSW,	0x0
	RR             	(_check_emptyDATA+0X4+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_#T20301_35+0x1) & 0X7F		; Bank 1
	RR             	(_check_emptyDATA+0X4) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_#T20301_35) & 0X7F		; Bank 1
;   18:(    JGE_2U,    #T20300 ,    #T20301 ,   #L20282)

; ITemplate_JGE1_4U
	MOV            	(_check_empty_#T20301_35+0x1) & 0X7F,	0x0		; Bank 1
	SUB            	(_check_empty_#T20300_35+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21036
	MOV            	(_check_empty_#T20301_35) & 0X7F,	0x0		; Bank 1
	SUB            	(_check_empty_#T20300_35) & 0X7F,	0x0		; Bank 1
#L21036
	JBC            	PSW,	0x0
	GOTO           	#L20282
;     {
#line 20	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         if (i % 2 == 1)
;   20:(    BAND_2,          1 ,          i ,   #T20314)

; ITemplate_BAND1_4
	MOV            	(_check_empty_i_35) & 0X7F,	0x0		; Bank 1
	ANDI           	0x1
; ITemplate_Common_Ext_U
;   20:(    JNEQ_2,          1 ,    #T20314 ,   #L20304)

; ITemplate_JNEQ1_4
; ====>> 39
; dead instruction: 	MOVA           	(_check_empty_#T20314_36) & 0X7F

	CLR            	(_check_empty_#T20314_36+0x1) & 0X7F
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L21037
	MOV            	(_check_empty_#T20314_36+0x1) & 0X7F,	0x0		; Bank 1
	XORI           	0x0
	JBS            	PSW,	0x2
#L21037
	GOTO           	#L20304
;         {
#line 23	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             __Asm  TBR;
; ITemplate_LABEL
;-----------Embedded Asm--------------
	TBR
;-------------------------------------
#line 25	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             buf16 = (((u16)ROMD1H << 8) + ROMD1L);
;   25:(   CVUC_UI,     ROMD1H ,            ,   #T20328)

; ITemplate_CVTMS_U
	CLR            	(_check_empty_#T20328_37+0x1) & 0X7F		; Bank 1
	MOV            	_ROMD1H_0,	0x0
;   25:(    LSH_2U,    #T20328 ,          8 ,   #T20331)

; ITemplate_LSH1_4_8
; ====>> 38
; dead instruction: 	MOVA           	(_check_empty_#T20328_37) & 0X7F

	MOVA           	(_check_empty_#T20331_37+0x1) & 0X7F		; Bank 1
	CLR            	(_check_empty_#T20331_37) & 0X7F		; Bank 1
;   25:(   CVUC_UI,     ROMD1L ,            ,   #T20334)

; ITemplate_CVTMS_U
	CLR            	(_check_empty_#T20334_37+0x1) & 0X7F		; Bank 1
	MOV            	_ROMD1L_0,	0x0
;   25:(     ADD_2,    #T20334 ,    #T20331 ,     buf16)

; ITemplate_ADD1_4
; ====>> 38
; dead instruction: 	MOVA           	(_check_empty_#T20334_37) & 0X7F

	ADD            	(_check_empty_#T20331_37) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_buf16_35) & 0X7F		; Bank 1
	MOV            	(_check_empty_#T20334_37+0x1) & 0X7F,	0x0		; Bank 1
	ADDC           	(_check_empty_#T20331_37+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_buf16_35+0x1) & 0X7F		; Bank 1
#line 26	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             ++word_addr;
;   26:(     ADD_2,  word_addr ,          1 , word_addr)

; ITemplate_INC_2_TMP
	INC            	(_check_emptyDATA+0X0) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21038
	INC            	(_check_emptyDATA+0X0+0x1) & 0X7F		; Bank 1
#L21038
#line 27	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             buf_Addr += 2;
;   27:(     ADD_2,   buf_Addr ,          2 ,  buf_Addr)

; ITemplate_ADD1_4
; ====>> 47
	MOVI           	0x2
	ADD            	(_check_emptyDATA+0X2) & 0X7F,	0x1
; ====>> 36
	MOV            	(_check_emptyDATA+0X2+0x1) & 0X7F,	0x0
	ADDCI          	0x0
	MOVA           	(_check_emptyDATA+0X2+0x1) & 0X7F		; Bank 1
#line 28	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         }
;   28:(     LABEL,    #L20304 ,            ,          )

; ITemplate_LABEL
#L20304
#line 30	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         if (i % 2 == 0)
;   30:(     JNZ_B,          i ,          0 ,   #L20364)

; ITemplate_JNZ_B_TMP
	JBC            	(_check_empty_i_35) & 0X7F,	0x0		; Bank 1
	GOTO           	#L20364
;         {
#line 32	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRAL = word_addr;
;   32:(   CVUI_UC,  word_addr ,            ,      FRAL)

; ITemplate_CVSMT
	MOV            	(_check_emptyDATA+0X0) & 0X7F,	0x0		; Bank 1
	MOVA           	_FRAL_0
#line 33	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRAH = word_addr >> 8;
;   33:(    RSH_2U,  word_addr ,          8 ,      FRAH)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVAR          	?_TMP		; Bank 0
	MOV            	(_check_emptyDATA+0X0) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x1		; Bank 0
	MOV            	(_check_emptyDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x2		; Bank 0
	MOVRA          	?_TMP		; Bank 0
	GOTO           	#L21039
#L21040
	BCC            	PSW,	0x0
	SECTION        	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21039
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21040
	SECTION        	0x0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	_FRAH_0
#line 34	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRAHN = ~FRAH;
;   34:(    BCOM_1,       FRAH ,            ,     FRAHN)

; ITemplate_BCOM1_4
	COM            	_FRAH_0,	0x0
	MOVA           	_FRAHN_0
#line 35	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRALN = ~FRAL;
;   35:(    BCOM_1,       FRAL ,            ,     FRALN)

; ITemplate_BCOM1_4
	COM            	_FRAL_0,	0x0
	MOVA           	_FRALN_0
#line 36	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             __Asm  TBR;
; ITemplate_LABEL
;-----------Embedded Asm--------------
	TBR
;-------------------------------------
#line 37	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             buf16 = (((u16)ROMDH << 8) + ROMDL);
;   37:(   CVUC_UI,      ROMDH ,            ,   #T20424)

; ITemplate_CVTMS_U
	SECTION        	0x1
	CLR            	(_check_empty_#T20424_38+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDH_0,	0x0
;   37:(    LSH_2U,    #T20424 ,          8 ,   #T20427)

; ITemplate_LSH1_4_8
; ====>> 38
; dead instruction: 	MOVA           	(_check_empty_#T20424_38) & 0X7F

	MOVA           	(_check_empty_#T20427_38+0x1) & 0X7F		; Bank 1
	CLR            	(_check_empty_#T20427_38) & 0X7F		; Bank 1
;   37:(   CVUC_UI,      ROMDL ,            ,   #T20430)

; ITemplate_CVTMS_U
	CLR            	(_check_empty_#T20430_38+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDL_0,	0x0
;   37:(     ADD_2,    #T20430 ,    #T20427 ,     buf16)

; ITemplate_ADD1_4
; ====>> 38
; dead instruction: 	MOVA           	(_check_empty_#T20430_38) & 0X7F

	ADD            	(_check_empty_#T20427_38) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_buf16_35) & 0X7F		; Bank 1
	MOV            	(_check_empty_#T20430_38+0x1) & 0X7F,	0x0		; Bank 1
	ADDC           	(_check_empty_#T20427_38+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_check_empty_buf16_35+0x1) & 0X7F		; Bank 1
#line 38	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             ++word_addr;
;   38:(     ADD_2,  word_addr ,          1 , word_addr)

; ITemplate_INC_2_TMP
	INC            	(_check_emptyDATA+0X0) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21041
	INC            	(_check_emptyDATA+0X0+0x1) & 0X7F		; Bank 1
#L21041
#line 39	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             buf_Addr += 2;
;   39:(     ADD_2,   buf_Addr ,          2 ,  buf_Addr)

; ITemplate_ADD1_4
; ====>> 47
	MOVI           	0x2
	ADD            	(_check_emptyDATA+0X2) & 0X7F,	0x1
; ====>> 36
	MOV            	(_check_emptyDATA+0X2+0x1) & 0X7F,	0x0
	ADDCI          	0x0
	MOVA           	(_check_emptyDATA+0X2+0x1) & 0X7F		; Bank 1
#line 40	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         }
;   40:(     LABEL,    #L20364 ,            ,          )

; ITemplate_LABEL
#L20364
#line 42	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         if (buf16 != 0xFFFF)
;   42:(     JEQ_2,      65535 ,      buf16 ,   #L20283)

; ITemplate_JEQ1_4
	MOV            	(_check_empty_buf16_35) & 0X7F,	0x0		; Bank 1
	XORI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21042
	MOV            	(_check_empty_buf16_35+0x1) & 0X7F,	0x0		; Bank 1
	XORI           	0xff
	JBC            	PSW,	0x2
	GOTO           	#L20283
#L21042
;         {
#line 44	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             return  FAILED;
;   44:(     RET_1,          0 ,            ,      #RET)

; ITemplate_RET2_N_I
	SECTION        	0x0
	RETIA          	0x0		; Bank 0		; ShBank 0
;         }
#line 46	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     }
;   46:(     LABEL,    #L20283 ,            ,          )

; ITemplate_LABEL
#L20283
;   18:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_check_empty_i_35) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21043
	INC            	(_check_empty_i_35+0x1) & 0X7F		; Bank 1
#L21043
;   46:(       JMP,            ,            ,   #L20281)

; ITemplate_JMP
	GOTO           	#L20281
;   46:(     LABEL,    #L20282 ,            ,          )

; ITemplate_LABEL
#L20282
#line 48	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     return  SUCCESS;
;   48:(     RET_1,          1 ,            ,      #RET)

; ITemplate_RET2_N_I
	SECTION        	0x0
	RETIA          	0x1		; Bank 0		; ShBank 0
	_DESC          	Read_Cont,0X3,0X0

SECTION1Read_Cont	UNINTIAL       	0		; Bank 0
	ORG            	0X8D		; Bank 0
_Read_ContDATA	RSEG           	0XC		; Bank 0
Read_Cont#	CSEG           
_Read_Cont
; }
; /**********************************************
; 函数名：Read_Cont
; 描  述：连续读Flash
; 输入值：word_addr:Flash地址; *buf_Addr:数据保存地址; num:连续读的字节数
; 输出值：Flash中的数据
; 返回值：SUCCESS，FAILED
; **********************************************/
; u8 Read_Cont(u16  word_addr, u8 *buf_Addr, u16 num)
; {
;     u16  i;
#line 61	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     for (i = 0; i < (num / 2); i++)
	CLR            	BKSR
;   61:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	SECTION        	0x1
	CLR            	(_Read_Cont_i_41) & 0X7F		; Bank 1
	CLR            	(_Read_Cont_i_41+0x1) & 0X7F		; Bank 1
;   61:(     LABEL,    #L20496 ,            ,          )

; ITemplate_LABEL
#L20496
;   61:(    ASGN_2,          i ,            ,   #T20515)

; ITemplate_ASGN1_4_R
	MOV            	(_Read_Cont_i_41+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_Read_Cont_#T20515_41+0x1) & 0X7F		; Bank 1
	MOV            	(_Read_Cont_i_41) & 0X7F,	0x0		; Bank 1
	MOVA           	(_Read_Cont_#T20515_41) & 0X7F		; Bank 1
;   61:(    RSH_2U,        num ,          1 ,   #T20516)

; ITemplate_RSH1_4U_1
	BCC            	PSW,	0x0
	RR             	(_Read_ContDATA+0X4+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_Read_Cont_#T20516_41+0x1) & 0X7F		; Bank 1
	RR             	(_Read_ContDATA+0X4) & 0X7F,	0x0		; Bank 1
	MOVA           	(_Read_Cont_#T20516_41) & 0X7F		; Bank 1
;   61:(    JGE_2U,    #T20515 ,    #T20516 ,   #L20497)

; ITemplate_JGE1_4U
	MOV            	(_Read_Cont_#T20516_41+0x1) & 0X7F,	0x0		; Bank 1
	SUB            	(_Read_Cont_#T20515_41+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21044
	MOV            	(_Read_Cont_#T20516_41) & 0X7F,	0x0		; Bank 1
	SUB            	(_Read_Cont_#T20515_41) & 0X7F,	0x0		; Bank 1
#L21044
	JBC            	PSW,	0x0
	GOTO           	#L20497
;     {
#line 63	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         if (i % 2 == 1)
;   63:(    BAND_2,          1 ,          i ,   #T20529)

; ITemplate_BAND1_4
	MOV            	(_Read_Cont_i_41) & 0X7F,	0x0		; Bank 1
	ANDI           	0x1
; ITemplate_Common_Ext_U
;   63:(    JNEQ_2,          1 ,    #T20529 ,   #L20519)

; ITemplate_JNEQ1_4
; ====>> 39
; dead instruction: 	MOVA           	(_Read_Cont_#T20529_42) & 0X7F

	CLR            	(_Read_Cont_#T20529_42+0x1) & 0X7F
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L21045
	MOV            	(_Read_Cont_#T20529_42+0x1) & 0X7F,	0x0		; Bank 1
	XORI           	0x0
	JBS            	PSW,	0x2
#L21045
	GOTO           	#L20519
;         {
#line 65	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             __Asm  TBR;
; ITemplate_LABEL
;-----------Embedded Asm--------------
	TBR
;-------------------------------------
#line 66	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             *(u16 *)buf_Addr = (((u16)ROMD1H << 8) + ROMD1L);
;   66:(   CVUC_UI,     ROMD1H ,            ,   #T20547)

; ITemplate_CVTMS_U
	CLR            	(_Read_Cont_#T20547_43+0x1) & 0X7F		; Bank 1
	MOV            	_ROMD1H_0,	0x0
;   66:(    LSH_2U,    #T20547 ,          8 ,   #T20550)

; ITemplate_LSH1_4_8
; ====>> 38
; dead instruction: 	MOVA           	(_Read_Cont_#T20547_43) & 0X7F

	MOVA           	(_Read_Cont_#T20550_43+0x1) & 0X7F		; Bank 1
	CLR            	(_Read_Cont_#T20550_43) & 0X7F		; Bank 1
;   66:(   CVUC_UI,     ROMD1L ,            ,   #T20553)

; ITemplate_CVTMS_U
	CLR            	(_Read_Cont_#T20553_43+0x1) & 0X7F		; Bank 1
	MOV            	_ROMD1L_0,	0x0
	MOVA           	(_Read_Cont_#T20553_43) & 0X7F		; Bank 1
;   66:(     ADD_2,    #T20553 ,    #T20550 , *buf_Addr)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOV            	(_Read_ContDATA+0X2+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_Read_ContDATA+0X2) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	(_Read_Cont_#T20553_43) & 0X7F,	0x0		; Bank 1
	ADD            	(_Read_Cont_#T20550_43) & 0X7F,	0x0		; Bank 1
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
	MOV            	(_Read_Cont_#T20553_43+0x1) & 0X7F,	0x0		; Bank 1
	ADDC           	(_Read_Cont_#T20550_43+0x1) & 0X7F,	0x0		; Bank 1
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 67	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             word_addr++;
;   67:(     ADD_2,  word_addr ,          1 , word_addr)

; ITemplate_INC_2_TMP
	INC            	(_Read_ContDATA+0X0) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21046
	INC            	(_Read_ContDATA+0X0+0x1) & 0X7F		; Bank 1
#L21046
#line 68	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             buf_Addr += 2;
;   68:(     ADD_2,   buf_Addr ,          2 ,  buf_Addr)

; ITemplate_ADD1_4
; ====>> 47
	MOVI           	0x2
	ADD            	(_Read_ContDATA+0X2) & 0X7F,	0x1
; ====>> 36
	MOV            	(_Read_ContDATA+0X2+0x1) & 0X7F,	0x0
	ADDCI          	0x0
	MOVA           	(_Read_ContDATA+0X2+0x1) & 0X7F		; Bank 1
#line 69	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         }
;   69:(     LABEL,    #L20519 ,            ,          )

; ITemplate_LABEL
#L20519
#line 71	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         if (i % 2 == 0)
;   71:(     JNZ_B,          i ,          0 ,   #L20498)

; ITemplate_JNZ_B_TMP
	JBC            	(_Read_Cont_i_41) & 0X7F,	0x0		; Bank 1
	GOTO           	#L20498
;         {
#line 73	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRAL = word_addr;
;   73:(   CVUI_UC,  word_addr ,            ,      FRAL)

; ITemplate_CVSMT
	MOV            	(_Read_ContDATA+0X0) & 0X7F,	0x0		; Bank 1
	MOVA           	_FRAL_0
#line 74	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRAH = word_addr >> 8;
;   74:(    RSH_2U,  word_addr ,          8 ,      FRAH)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVAR          	?_TMP		; Bank 0
	MOV            	(_Read_ContDATA+0X0) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x1		; Bank 0
	MOV            	(_Read_ContDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x2		; Bank 0
	MOVRA          	?_TMP		; Bank 0
	GOTO           	#L21047
#L21048
	BCC            	PSW,	0x0
	SECTION        	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21047
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21048
	SECTION        	0x0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	_FRAH_0
#line 75	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRAHN = ~FRAH;
;   75:(    BCOM_1,       FRAH ,            ,     FRAHN)

; ITemplate_BCOM1_4
	COM            	_FRAH_0,	0x0
	MOVA           	_FRAHN_0
#line 76	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             FRALN = ~FRAL;
;   76:(    BCOM_1,       FRAL ,            ,     FRALN)

; ITemplate_BCOM1_4
	COM            	_FRAL_0,	0x0
	MOVA           	_FRALN_0
#line 77	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             __Asm  TBR;
; ITemplate_LABEL
;-----------Embedded Asm--------------
	TBR
;-------------------------------------
#line 78	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             *(u16 *)buf_Addr = (((u16)ROMDH << 8) + ROMDL);
;   78:(   CVUC_UI,      ROMDH ,            ,   #T20648)

; ITemplate_CVTMS_U
	SECTION        	0x1
	CLR            	(_Read_Cont_#T20648_44+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDH_0,	0x0
;   78:(    LSH_2U,    #T20648 ,          8 ,   #T20651)

; ITemplate_LSH1_4_8
; ====>> 38
; dead instruction: 	MOVA           	(_Read_Cont_#T20648_44) & 0X7F

	MOVA           	(_Read_Cont_#T20651_44+0x1) & 0X7F		; Bank 1
	CLR            	(_Read_Cont_#T20651_44) & 0X7F		; Bank 1
;   78:(   CVUC_UI,      ROMDL ,            ,   #T20654)

; ITemplate_CVTMS_U
	CLR            	(_Read_Cont_#T20654_44+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDL_0,	0x0
	MOVA           	(_Read_Cont_#T20654_44) & 0X7F		; Bank 1
;   78:(     ADD_2,    #T20654 ,    #T20651 , *buf_Addr)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOV            	(_Read_ContDATA+0X2+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_Read_ContDATA+0X2) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	(_Read_Cont_#T20654_44) & 0X7F,	0x0		; Bank 1
	ADD            	(_Read_Cont_#T20651_44) & 0X7F,	0x0		; Bank 1
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
	MOV            	(_Read_Cont_#T20654_44+0x1) & 0X7F,	0x0		; Bank 1
	ADDC           	(_Read_Cont_#T20651_44+0x1) & 0X7F,	0x0		; Bank 1
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 79	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             word_addr++;
;   79:(     ADD_2,  word_addr ,          1 , word_addr)

; ITemplate_INC_2_TMP
	INC            	(_Read_ContDATA+0X0) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21049
	INC            	(_Read_ContDATA+0X0+0x1) & 0X7F		; Bank 1
#L21049
#line 80	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;             buf_Addr += 2;
;   80:(     ADD_2,   buf_Addr ,          2 ,  buf_Addr)

; ITemplate_ADD1_4
; ====>> 47
	MOVI           	0x2
	ADD            	(_Read_ContDATA+0X2) & 0X7F,	0x1
; ====>> 36
	MOV            	(_Read_ContDATA+0X2+0x1) & 0X7F,	0x0
	ADDCI          	0x0
	MOVA           	(_Read_ContDATA+0X2+0x1) & 0X7F		; Bank 1
;         }
#line 82	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     }
;   82:(     LABEL,    #L20498 ,            ,          )

; ITemplate_LABEL
#L20498
;   61:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_Read_Cont_i_41) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21050
	INC            	(_Read_Cont_i_41+0x1) & 0X7F		; Bank 1
#L21050
;   82:(       JMP,            ,            ,   #L20496)

; ITemplate_JMP
	GOTO           	#L20496
;   82:(     LABEL,    #L20497 ,            ,          )

; ITemplate_LABEL
#L20497
#line 84	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMCL = 0x00;
;   84:(    ASGN_1,          0 ,            ,     ROMCL)

; ITemplate_CLR1_4_TMP
	CLR            	_ROMCL_0
#line 85	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     return  SUCCESS;
;   85:(     RET_1,          1 ,            ,      #RET)

; ITemplate_RET2_N_I
	SECTION        	0x0
	RETIA          	0x1		; Bank 0		; ShBank 0
	_DESC          	StartIAP,0X0,0X0
StartIAP#	CSEG           
_StartIAP
; }
; static volatile unsigned int section8 FRAN @ 0xFF8E;
; static volatile unsigned int section8 FRA  @ 0xFF90;
; /**********************************************
; 函数名：StartIAP
; 描  述：IAP固定操作
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void StartIAP(void) //IAP固定格式
; {
#line 99	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     __asm
	CLR            	BKSR
; ITemplate_LABEL
;-----------Embedded Asm--------------
	
#line 101 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        MOVI 0x55
#line 102 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        MOVA ROMCH
#line 103 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        MOVI 0x02        
#line 104 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        SSUBI 1          
#line 105 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        JBS PSW, Z
#line 106 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        goto $-2
#line 107 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        MOVI 0xAA
#line 108 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        MOVA ROMCH
#line 109 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        MOVI 0x02        
#line 110 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        SSUBI 1          
#line 111 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        JBS PSW, Z
#line 112 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        goto $-2
#line 113 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        BSS ROMCL, WR    
#line 114 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        JBC ROMCL, WR
#line 115 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
        goto $-1         
#line 116 C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c
    
;-------------------------------------
;     {
;         MOVI 0x55
;         MOVA ROMCH
;         MOVI 0x02        //等待8个指令周期
;         SSUBI 1          //(A)-1->(A)
;         JBS PSW, Z
;         goto $-2
;         MOVI 0xAA
;         MOVA ROMCH
;         MOVI 0x02        //等待8个->(指令周期
;         SSUBI 1          //(A)-1A)
;         JBS PSW, Z
;         goto $-2
;         BSS ROMCL, WR    //Flash存储器页擦除/自编程触发位
;         JBC ROMCL, WR
;         goto $-1         //等待操作结束
;     }
#line 117	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ; }
;  117:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	Erase_Page,0X3,0X0,StartIAP

SECTION1Erase_Page	UNINTIAL       	0		; Bank 0
	ORG            	0X8D		; Bank 0
_Erase_PageDATA	RSEG           	0X2		; Bank 0
Erase_Page#	CSEG           
_Erase_Page
; /**********************************************
; 函数名：Erase_Page
; 描  述：擦除一页Flash
; 输入值：page_addr：擦除页所在的地址
; 输出值：无
; 返回值：SUCCESS，FAILED
; **********************************************/
; u8 Erase_Page(u16 page_addr)
; {
#line 127	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     GIE = 0 ;
	CLR            	BKSR
;  127:(    ASGN_0,          0 ,            ,       GIE)

; ITemplate_CLR_0_TMP
	BCC            	(_GIE_0)/8,	(_GIE_0)%8
#line 128	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     DATARDEN = 1;
;  128:(    ASGN_0,          1 ,            ,  DATARDEN)

; ITemplate_SET_0_TMP
	BSS            	(_DATARDEN_0)/8,	(_DATARDEN_0)%8
#line 129	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FPEE = 1;
;  129:(    ASGN_0,          1 ,            ,      FPEE)

; ITemplate_SET_0_TMP
	BSS            	(_FPEE_0)/8,	(_FPEE_0)%8
#line 130	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRAH = page_addr >> 8;  //地址高字节
;  130:(    RSH_2U,  page_addr ,          8 ,      FRAH)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	MOVRA          	_Erase_PageDATA+0X0		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_Erase_PageDATA+0X0+0x1		; Bank 1
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	GOTO           	#L21051
#L21052
	BCC            	PSW,	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21051
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21052
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	_FRAH_0
#line 131	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRAL = page_addr;       //地址低字节
;  131:(   CVUI_UC,  page_addr ,            ,      FRAL)

; ITemplate_CVSMT
	MOVRA          	_Erase_PageDATA+0X0		; Bank 1
	MOVA           	_FRAL_0
#line 132	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRAHN = ~FRAH;
;  132:(    BCOM_1,       FRAH ,            ,     FRAHN)

; ITemplate_BCOM1_4
	COM            	_FRAH_0,	0x0
	MOVA           	_FRAHN_0
#line 133	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRALN = ~FRAL;
;  133:(    BCOM_1,       FRAL ,            ,     FRALN)

; ITemplate_BCOM1_4
	COM            	_FRAL_0,	0x0
	MOVA           	_FRALN_0
#line 134	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     WREN = 1;
;  134:(    ASGN_0,          1 ,            ,      WREN)

; ITemplate_SET_0_TMP
	BSS            	(_WREN_0)/8,	(_WREN_0)%8
#line 135	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     StartIAP();
;  135:(      CALL, (StartIAP.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_StartIAP
	CALL           	_StartIAP		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
;     //while(WR);    //等待擦除结束
#line 138	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMCL = 0x00;
;  138:(    ASGN_1,          0 ,            ,     ROMCL)

; ITemplate_CLR1_4_TMP
	CLR            	_ROMCL_0
#line 139	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRA = 0xFF12;   //指到不用的地址空间
;  139:(    ASGN_2,      65298 ,            ,       FRA)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_FRA_0+0x1
	MOVI           	0x12
	MOVA           	_FRA_0
#line 140	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRAN = 0x3456;  //此处把地址反码赋成与0xFFFF和FRA无取反关系的值
;  140:(    ASGN_2,      13398 ,            ,      FRAN)

; ITemplate_ASGN1_4_R
	MOVI           	0x34
	MOVA           	_FRAN_0+0x1
	MOVI           	0x56
	MOVA           	_FRAN_0
#line 142	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     return SUCCESS;
;  142:(     RET_1,          1 ,            ,      #RET)

; ITemplate_RET2_N_I
	RETIA          	0x1		; Bank 0		; ShBank 0
	_DESC          	Write_Cont,0X9,0X0,StartIAP

SECTION1Write_Cont	UNINTIAL       	0		; Bank 0
	ORG            	0X8D		; Bank 0
_Write_ContDATA	RSEG           	0XC		; Bank 0
Write_Cont#	CSEG           
_Write_Cont
; }
; /**********************************************
; 函数名：Write_Cont
; 描  述：向Flash中连续写数据
; 输入值：word_addr：Flash起始地址，buf_Addr:要写入数据的起始地址 num:数据个数
; 输出值：无
; 返回值：SUCCESS，FAILED
; **********************************************/
; u8 Write_Cont(u16 word_addr, u8 *buf_Addr, u16 num)
; {
;     u16  i;
#line 155	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     GIE = 0;
	CLR            	BKSR
;  155:(    ASGN_0,          0 ,            ,       GIE)

; ITemplate_CLR_0_TMP
	BCC            	(_GIE_0)/8,	(_GIE_0)%8
#line 156	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMCL = 0x80;
;  156:(    ASGN_1,        128 ,            ,     ROMCL)

; ITemplate_ASGN1_4_R
	MOVI           	0x80
	MOVA           	_ROMCL_0
#line 157	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     DATARDEN = 1;
;  157:(    ASGN_0,          1 ,            ,  DATARDEN)

; ITemplate_SET_0_TMP
	BSS            	(_DATARDEN_0)/8,	(_DATARDEN_0)%8
#line 158	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FPEE = 0;
;  158:(    ASGN_0,          0 ,            ,      FPEE)

; ITemplate_CLR_0_TMP
	BCC            	(_FPEE_0)/8,	(_FPEE_0)%8
#line 160	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     for (i = 0; i < (num / 4); i++) //每次写入双字(32bit)
;  160:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	SECTION        	0x1
	CLR            	(_Write_Cont_i_50) & 0X7F		; Bank 1
	CLR            	(_Write_Cont_i_50+0x1) & 0X7F		; Bank 1
;  160:(     LABEL,    #L20830 ,            ,          )

; ITemplate_LABEL
#L20830
;  160:(    ASGN_2,          i ,            ,   #T20849)

; ITemplate_ASGN1_4_R
	MOV            	(_Write_Cont_i_50+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_Write_Cont_#T20849_50+0x1) & 0X7F		; Bank 1
	MOV            	(_Write_Cont_i_50) & 0X7F,	0x0		; Bank 1
	MOVA           	(_Write_Cont_#T20849_50) & 0X7F		; Bank 1
;  160:(    RSH_2U,        num ,          2 ,   #T20850)

; ITemplate_RSH1_4U
	MOVI           	0x2
	ADDI           	0x1
	MOVAR          	?_TMP		; Bank 0
	MOV            	(_Write_ContDATA+0X4) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x1		; Bank 0
	MOV            	(_Write_ContDATA+0X4+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x2		; Bank 0
	MOVRA          	?_TMP		; Bank 0
	GOTO           	#L21053
#L21054
	BCC            	PSW,	0x0
	SECTION        	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21053
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21054
	SECTION        	0x0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_Write_Cont_#T20850_50		; Bank 1
	MOV            	(?_TMP+0x2) & 0X7F,	0x0		; Bank 0
;  160:(    JGE_2U,    #T20849 ,    #T20850 ,   #L20831)

; ITemplate_JGE1_4U
; ====>> 65
; dead instruction: 	MOVAR          	_Write_Cont_#T20850_50+0x1

	SECTION        	0x1
	SUB            	(_Write_Cont_#T20849_50+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21055
	MOV            	(_Write_Cont_#T20850_50) & 0X7F,	0x0		; Bank 1
	SUB            	(_Write_Cont_#T20849_50) & 0X7F,	0x0		; Bank 1
#L21055
	JBC            	PSW,	0x0
	GOTO           	#L20831
;     {
#line 162	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         FRAH = word_addr >> 8;  //地址高字节
;  162:(    RSH_2U,  word_addr ,          8 ,      FRAH)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	SECTION        	0x0
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	MOVRA          	_Write_ContDATA+0X0		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_Write_ContDATA+0X0+0x1		; Bank 1
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	GOTO           	#L21056
#L21057
	BCC            	PSW,	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21056
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21057
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	_FRAH_0
#line 163	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         FRAL = word_addr;       //地址低字节
;  163:(   CVUI_UC,  word_addr ,            ,      FRAL)

; ITemplate_CVSMT
	MOVRA          	_Write_ContDATA+0X0		; Bank 1
	MOVA           	_FRAL_0
#line 164	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         FRAHN = ~FRAH;
;  164:(    BCOM_1,       FRAH ,            ,     FRAHN)

; ITemplate_BCOM1_4
	COM            	_FRAH_0,	0x0
	MOVA           	_FRAHN_0
#line 165	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         FRALN = ~FRAL;
;  165:(    BCOM_1,       FRAL ,            ,     FRALN)

; ITemplate_BCOM1_4
	COM            	_FRAL_0,	0x0
	MOVA           	_FRALN_0
#line 166	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         ROMD1H = (*((u32 *)buf_Addr)) >> 24;
;  166:(    RSH_4U,  *buf_Addr ,         24 ,    ROMD1H)

; ITemplate_GetRamRef
	MOVRA          	_Write_ContDATA+0X2+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_Write_ContDATA+0X2		; Bank 1
	MOVA           	IAAL
	MOV            	IAD,	0x0
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
; ITemplate_RSH1_4U
	MOVI           	0x18
	ADDI           	0x1
	MOVA           	(?_TMP+0x4) & 0X7F		; Bank 0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x5) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x6) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x2) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x7) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x3) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x8) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x4) & 0X7F,	0x0		; Bank 0
	GOTO           	#L21058
#L21059
	BCC            	PSW,	0x0
	RR             	(?_TMP+0x8) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x7) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x6) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x5) & 0X7F,	0x1		; Bank 0
#L21058
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21059
	MOV            	(?_TMP+0x5) & 0X7F,	0x0		; Bank 0
	MOVA           	_ROMD1H_0
#line 167	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         ROMD1L = (*((u32 *)buf_Addr)) >> 16;
;  167:(    RSH_4U,  *buf_Addr ,         16 ,    ROMD1L)

; ITemplate_GetRamRef
	MOVRA          	_Write_ContDATA+0X2+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_Write_ContDATA+0X2		; Bank 1
	MOVA           	IAAL
	MOV            	IAD,	0x0
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
; ITemplate_RSH1_4U
	MOVI           	0x10
	ADDI           	0x1
	MOVA           	(?_TMP+0x4) & 0X7F		; Bank 0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x5) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x6) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x2) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x7) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x3) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x8) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x4) & 0X7F,	0x0		; Bank 0
	GOTO           	#L21060
#L21061
	BCC            	PSW,	0x0
	RR             	(?_TMP+0x8) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x7) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x6) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x5) & 0X7F,	0x1		; Bank 0
#L21060
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21061
	MOV            	(?_TMP+0x5) & 0X7F,	0x0		; Bank 0
	MOVA           	_ROMD1L_0
#line 168	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         ROMDH = (*((u32 *)buf_Addr)) >> 8;
;  168:(    RSH_4U,  *buf_Addr ,          8 ,     ROMDH)

; ITemplate_GetRamRef
	MOVRA          	_Write_ContDATA+0X2+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_Write_ContDATA+0X2		; Bank 1
	MOVA           	IAAL
	MOV            	IAD,	0x0
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVA           	(?_TMP+0x4) & 0X7F		; Bank 0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x5) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x6) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x2) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x7) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x3) & 0X7F,	0x0		; Bank 0
	MOVA           	(?_TMP+0x8) & 0X7F		; Bank 0
	MOV            	(?_TMP+0x4) & 0X7F,	0x0		; Bank 0
	GOTO           	#L21062
#L21063
	BCC            	PSW,	0x0
	RR             	(?_TMP+0x8) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x7) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x6) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x5) & 0X7F,	0x1		; Bank 0
#L21062
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21063
	MOV            	(?_TMP+0x5) & 0X7F,	0x0		; Bank 0
	MOVA           	_ROMDH_0
#line 169	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         ROMDL = (*((u32 *)buf_Addr));    //写入Flash的字节数据
;  169:(   CVUL_UC,  *buf_Addr ,            ,     ROMDL)

; ITemplate_GetRamRef
	MOVRA          	_Write_ContDATA+0X2+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_Write_ContDATA+0X2		; Bank 1
	MOVA           	IAAL
	MOV            	IAD,	0x0
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	ISTEP          	0x1
	MOV            	IAD,	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
; ITemplate_CVSMT
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	MOVA           	_ROMDL_0
#line 170	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         WREN = 1;
;  170:(    ASGN_0,          1 ,            ,      WREN)

; ITemplate_SET_0_TMP
	BSS            	(_WREN_0)/8,	(_WREN_0)%8
#line 171	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         StartIAP();
;  171:(      CALL, (StartIAP.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_StartIAP
	CALL           	_StartIAP		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 172	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         word_addr += 2;
;  172:(     ADD_2,  word_addr ,          2 , word_addr)

; ITemplate_ADD1_4
	MOVRA          	_Write_ContDATA+0X0		; Bank 1
	ADDI           	0x2
	MOVAR          	_Write_ContDATA+0X0		; Bank 1
	MOVRA          	_Write_ContDATA+0X0+0x1		; Bank 1
	ADDCI          	0x0
	MOVAR          	_Write_ContDATA+0X0+0x1		; Bank 1
#line 173	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;         buf_Addr += 4;
;  173:(     ADD_2,   buf_Addr ,          4 ,  buf_Addr)

; ITemplate_ADD1_4
	MOVRA          	_Write_ContDATA+0X2		; Bank 1
	ADDI           	0x4
	MOVAR          	_Write_ContDATA+0X2		; Bank 1
	MOVRA          	_Write_ContDATA+0X2+0x1		; Bank 1
	ADDCI          	0x0
	MOVAR          	_Write_ContDATA+0X2+0x1		; Bank 1
;  160:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	SECTION        	0x1
	INC            	(_Write_Cont_i_50) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21064
	INC            	(_Write_Cont_i_50+0x1) & 0X7F		; Bank 1
#L21064
#line 174	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     }
;  174:(       JMP,            ,            ,   #L20830)

; ITemplate_JMP
	GOTO           	#L20830
;  174:(     LABEL,    #L20831 ,            ,          )

; ITemplate_LABEL
#L20831
#line 176	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMCL = 0x00;
;  176:(    ASGN_1,          0 ,            ,     ROMCL)

; ITemplate_CLR1_4_TMP
	CLR            	_ROMCL_0
#line 177	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRA = 0xFF12;//指到不用的地址空间
;  177:(    ASGN_2,      65298 ,            ,       FRA)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_FRA_0+0x1
	MOVI           	0x12
	MOVA           	_FRA_0
#line 178	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     FRAN = 0x3456;//此处把地址反码赋成与0xFFFF和FRA无取反关系的值
;  178:(    ASGN_2,      13398 ,            ,      FRAN)

; ITemplate_ASGN1_4_R
	MOVI           	0x34
	MOVA           	_FRAN_0+0x1
	MOVI           	0x56
	MOVA           	_FRAN_0
#line 179	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMDH = 0xFF;//数据初始化为0xFF
;  179:(    ASGN_1,        255 ,            ,     ROMDH)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ROMDH_0
#line 180	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMDL = 0xFF;//数据初始化为0xFF
;  180:(    ASGN_1,        255 ,            ,     ROMDL)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ROMDL_0
#line 181	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMD1H = 0xFF;//数据初始化为0xFF
;  181:(    ASGN_1,        255 ,            ,    ROMD1H)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ROMD1H_0
#line 182	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     ROMD1L = 0xFF;//数据初始化为0xFF
;  182:(    ASGN_1,        255 ,            ,    ROMD1L)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ROMD1L_0
#line 184	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\rw_flash.c ;     return  SUCCESS;
;  184:(     RET_1,          1 ,            ,      #RET)

; ITemplate_RET2_N_I
	SECTION        	0x0
	RETIA          	0x1		; Bank 0		; ShBank 0

SECTION0C__Program_Files__x86__HRCC_Tools_HRCC_v1_2_0_136_tools_INCLUDE_ES7P169C_h_STATIC4	UNINTIAL       		; Bank 0
_#T0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_Boot_Src_rw_flash_c_STATIC5	PSECT	FLAG=0X1088,ADDR=0X7FCA2
_WREN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_Boot_Src_rw_flash_c_STATIC6	PSECT	FLAG=0X1088,ADDR=0X7FCA3
_FPEE_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_Boot_Src_rw_flash_c_STATIC7	PSECT	FLAG=0X1088,ADDR=0X7FCA7
_DATARDEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_Boot_Src_rw_flash_c_STATIC8	PSECT	FLAG=0X1088,ADDR=0X7FCB7
_GIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Program_Files__x86__HRCC_Tools_HRCC_v1_2_0_136_tools_INCLUDE_ES7P169C_h_STATIC	UNINTIAL       	0		; Bank 0
	ORG            	0XFF8E		; Bank 0
_FRALN_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF8F		; Bank 0
_FRAHN_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF90		; Bank 0
_FRAL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF91		; Bank 0
_FRAH_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF92		; Bank 0
_ROMDL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF93		; Bank 0
_ROMDH_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF94		; Bank 0
_ROMCL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFA1		; Bank 0
_ROMD1L_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFA2		; Bank 0
_ROMD1H_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF8E		; Bank 0
_FRAN_0	RSEG           	0X2		; Bank 0
	ORG            	0XFF90		; Bank 0
_FRA_0	RSEG           	0X2		; Bank 0
	END
