; 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         	_g_isp_data
	PUBLIC         	_g_boot_timer
	PUBLIC         	_g_frame_timer
	PUBLIC         	_g_boot
	PUBLIC         	_Timer_Proc
_Timer_Proc_#T20290_4	EQU            	_Timer_ProcDATA + 0X0		; Bank 0
#TMP	EQU            	?_TMP+ 0X0		; 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          	Timer_Proc,0X0,0X0

SECTION1Timer_Proc	UNINTIAL       	0		; Bank 0
	ORG            	0X82		; Bank 0
_Timer_ProcDATA	RSEG           	0X1		; Bank 0
Timer_Proc#	CSEG           
_Timer_Proc
; #include  <hic.h>
; #include  "typedef.h"
; extern isp_data_t g_isp_data;
; u32  g_boot_timer;   //超时引导程序计时器
; u32  g_frame_timer;  //帧间隔超时计时器
; u8   g_boot;  //引导程序标识
; /**********************************************
; 函数名：Timer_Proc
; 描  述：定时器处理函数
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void  Timer_Proc(void)
; {
;     static u16 t1s_tmp = 0 ;
#line 19	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;     if (T8NIF == 1)  //每4ms产生一次
	CLR            	BKSR
;   19:(    CVB_SC,      T8NIF ,            ,   #T20290)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_T8NIF_0)/8,	(_T8NIF_0)%8
	MOVI           	0x1
	SECTION        	0x1
;   19:(    JNEQ_1,          1 ,    #T20290 ,   #L20401)

; ITemplate_JNEQ1_4
; ====>> 38
; dead instruction: 	MOVA           	(_Timer_Proc_#T20290_4) & 0X7F

	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20401
;     {
#line 21	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;         T8NIF = 0;
;   21:(    ASGN_0,          0 ,            ,     T8NIF)

; ITemplate_CLR_0_TMP
	BCC            	(_T8NIF_0)/8,	(_T8NIF_0)%8
#line 22	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;         T8N = 130;
;   22:(    ASGN_1,        130 ,            ,       T8N)

; ITemplate_ASGN1_4_R
	MOVI           	0x82
	MOVA           	_T8N_0
#line 24	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;         if (PA0 == 0) //BootPIN拉低
;   24:(     JNZ_0,        PA0 ,            ,   #L20307)

; ITemplate_JNZ_0
	JBC            	(_PA0_0)/8,	(_PA0_0)%8
	GOTO           	#L20307
;         {
#line 26	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;             if (g_boot_timer != 0)
;   26:(      JZ_4, g_boot_timer ,            ,   #L20307)

; ITemplate_JZ1_4
	MOV            	(_g_boot_timer) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_boot_timer+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_boot_timer+0x2) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_boot_timer+0x3) & 0X7F,	0x0		; Bank 1
	JBC            	PSW,	0x2
	GOTO           	#L20307
;             {
#line 28	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;                 g_boot_timer--;
;   28:(     SUB_4, g_boot_timer ,          1 ,g_boot_timer)

; ITemplate_SUB1_4
	MOVI           	0x1
	SUB            	(_g_boot_timer) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_boot_timer) & 0X7F		; Bank 1
	MOVI           	0x0
	SUBC           	(_g_boot_timer+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_boot_timer+0x1) & 0X7F		; Bank 1
	MOVI           	0x0
	SUBC           	(_g_boot_timer+0x2) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_boot_timer+0x2) & 0X7F		; Bank 1
	MOVI           	0x0
	SUBC           	(_g_boot_timer+0x3) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_boot_timer+0x3) & 0X7F		; Bank 1
#line 30	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;                 if (g_boot_timer == 0)
;   30:(     JNZ_4, g_boot_timer ,            ,   #L20307)

; ITemplate_JNZ1_4
	MOV            	(_g_boot_timer) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_boot_timer+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_boot_timer+0x2) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_boot_timer+0x3) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L20307
;                 {
#line 32	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;                     g_boot = 1;  //引导程序
;   32:(    ASGN_1,          1 ,            ,    g_boot)

; ITemplate_ASGN1_4_R
	MOVI           	0x1
	MOVA           	(_g_boot) & 0X7F		; Bank 1
;                 }
;             }
#line 35	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;         }
;   35:(     LABEL,    #L20307 ,            ,          )

; ITemplate_LABEL
#L20307
#line 37	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;         if (g_frame_timer != 0) //帧字节间隔时间超时复位，并使命令重新进入等待命令码的状态
;   37:(      JZ_4, g_frame_timer ,            ,   #L20401)

; ITemplate_JZ1_4
	MOV            	(_g_frame_timer) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_frame_timer+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_frame_timer+0x2) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_frame_timer+0x3) & 0X7F,	0x0		; Bank 1
	JBC            	PSW,	0x2
	GOTO           	#L20401
;         {
#line 39	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;             g_frame_timer--;
;   39:(     SUB_4, g_frame_timer ,          1 ,g_frame_timer)

; ITemplate_SUB1_4
	MOVI           	0x1
	SUB            	(_g_frame_timer) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_frame_timer) & 0X7F		; Bank 1
	MOVI           	0x0
	SUBC           	(_g_frame_timer+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_frame_timer+0x1) & 0X7F		; Bank 1
	MOVI           	0x0
	SUBC           	(_g_frame_timer+0x2) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_frame_timer+0x2) & 0X7F		; Bank 1
	MOVI           	0x0
	SUBC           	(_g_frame_timer+0x3) & 0X7F,	0x0		; Bank 1
	MOVA           	(_g_frame_timer+0x3) & 0X7F		; Bank 1
#line 41	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;             if (g_frame_timer == 0)
;   41:(     JNZ_4, g_frame_timer ,            ,   #L20401)

; ITemplate_JNZ1_4
	MOV            	(_g_frame_timer) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_frame_timer+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_frame_timer+0x2) & 0X7F,	0x0		; Bank 1
	IOR            	(_g_frame_timer+0x3) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L20401
;             {
#line 43	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ;                 g_isp_data.step = WAIT_REV_INS;
;   43:(    ASGN_1,          0 ,            ,*(g_isp_data.0))

; ITemplate_ASGN1_4
; ====>> 10
	CLR            	(_g_isp_data) & 0X7F
;                 //g_isp_data.syn = 0;
;                 //Init_Uart();
;             }
;         }
;     }
#line 49	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot\Boot\Src\systick.c ; }
;   49:(     LABEL,    #L20401 ,            ,          )

; ITemplate_LABEL
#L20401
;   49:(       RET,            ,            ,          )

; ITemplate_RET
	SECTION        	0x0
	RET            			; Bank 0		; ShBank 0

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

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_Boot_Src_systick_c_STATIC23	PSECT	FLAG=0X1088,ADDR=0X7FCD1
_T8NIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_Boot_Src_systick_c_STATIC24	PSECT	FLAG=0X1088,ADDR=0X7FD40
_PA0_0	RSEG           	0X1		; Bank 0

SECTION1C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_Boot_Src_systick_c_STATIC	UNINTIAL       	0		; Bank 0
	ORG            	0XA5		; Bank 0
_g_boot_timer	RSEG           	0X4		; Bank 0
	ORG            	0XA9		; Bank 0
_g_frame_timer	RSEG           	0X4		; Bank 0
	ORG            	0X9C		; Bank 0
_g_boot	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            	0XFFBD		; Bank 0
_T8N_0	RSEG           	0X1		; Bank 0
	END
