; 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         	_Init_RAM
	PUBLIC         	_Init_Uart
	PUBLIC         	_Init_Ports
	PUBLIC         	_Init_Timer
	PUBLIC         	_Init_MCU
	PUBLIC         	_Reg_reset
#TMP	EQU            	?_TMP+ 0X0		; Bank 0
?_TMP_RET	EQU            	?_TMP		; Bank 0
_RX0LEN_0#sh	EQU            	0X686		; Bank 0
_RX0EN_0#sh	EQU            	0X687		; Bank 0
_BRGH0_0#sh	EQU            	0X695		; Bank 0
_TX0LEN_0#sh	EQU            	0X696		; Bank 0
_TX0EN_0#sh	EQU            	0X697		; Bank 0
_BR0R_0#sh	EQU            	0XD3		; 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          	Init_Uart,0X0,0X0
Init_Uart#	CSEG           
_Init_Uart
; #include  <hic.h>
; #include  "typedef.h"
; #include  "macrodef.h"
; #include  "sysinit.h"
; /**********************************************
; 函数名：Init_Uart
; 描  述：UATR初始化函数
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void  Init_Uart(void)
; {
#line 15	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     PAT1 = 0; //TX输出
	CLR            	BKSR
;   15:(    ASGN_0,          0 ,            ,      PAT1)

; ITemplate_CLR_0_TMP
	BCC            	(_PAT1_0)/8,	(_PAT1_0)%8
#line 16	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     PAT2 = 1; //RX输入
;   16:(    ASGN_0,          1 ,            ,      PAT2)

; ITemplate_SET_0_TMP
	BSS            	(_PAT2_0)/8,	(_PAT2_0)%8
#line 17	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     ANSL |= 3 << 1; //数字口
;   17:(     BOR_1,          6 ,       ANSL ,      ANSL)

; ITemplate_BOR1_4
	MOV            	_ANSL_0,	0x0
	IORI           	0x6
	MOVA           	_ANSL_0
#line 18	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     RX0LEN = 0;
;   18:(    ASGN_0,          0 ,            ,    RX0LEN)

; ITemplate_CLR_0_TMP
	BSS            	BKSR,	0x4
	BCC            	(_RX0LEN_0#sh)/8,	(_RX0LEN_0#sh)%8		; ShBank 1
#line 19	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     TX0LEN = 0;
;   19:(    ASGN_0,          0 ,            ,    TX0LEN)

; ITemplate_CLR_0_TMP
	BCC            	(_TX0LEN_0#sh)/8,	(_TX0LEN_0#sh)%8		; ShBank 1
#line 20	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     BRGH0 = 1;
;   20:(    ASGN_0,          1 ,            ,     BRGH0)

; ITemplate_SET_0_TMP
	BSS            	(_BRGH0_0#sh)/8,	(_BRGH0_0#sh)%8		; ShBank 1
#line 21	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     BR0R = 103; //波特率9600
;   21:(    ASGN_1,        103 ,            ,      BR0R)

; ITemplate_ASGN1_4_R
	MOVI           	0x67
	MOVA           	_BR0R_0#sh		; ShBank 1
#line 22	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     RX0EN = 1;
;   22:(    ASGN_0,          1 ,            ,     RX0EN)

; ITemplate_SET_0_TMP
	BSS            	(_RX0EN_0#sh)/8,	(_RX0EN_0#sh)%8		; ShBank 1
#line 23	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     TX0EN = 1;
;   23:(    ASGN_0,          1 ,            ,     TX0EN)

; ITemplate_SET_0_TMP
	BSS            	(_TX0EN_0#sh)/8,	(_TX0EN_0#sh)%8		; ShBank 1
#line 24	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ; }
;   24:(       RET,            ,            ,          )

; ITemplate_RET
	BCC            	BKSR,	0x4
	RET            			; Bank 0		; ShBank 0
	_DESC          	Init_Timer,0X0,0X0
Init_Timer#	CSEG           
_Init_Timer
; /**********************************************
; 函数名：Init_Timer
; 描  述：定时器初始化函数
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void  Init_Timer(void)
; {
#line 34	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     T8NC = 0x0E; //欲分频系数1:128
	CLR            	BKSR
;   34:(    ASGN_1,         14 ,            ,      T8NC)

; ITemplate_ASGN1_4_R
	MOVI           	0xe
	MOVA           	_T8NC_0
#line 35	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     T8N = 0;
;   35:(    ASGN_1,          0 ,            ,       T8N)

; ITemplate_CLR1_4_TMP
	CLR            	_T8N_0
#line 36	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     T8NIE = 0;  //不使能中断
;   36:(    ASGN_0,          0 ,            ,     T8NIE)

; ITemplate_CLR_0_TMP
	BCC            	(_T8NIE_0)/8,	(_T8NIE_0)%8
#line 37	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     T8NEN = 1;
;   37:(    ASGN_0,          1 ,            ,     T8NEN)

; ITemplate_SET_0_TMP
	BSS            	(_T8NEN_0)/8,	(_T8NEN_0)%8
#line 38	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ; }
;   38:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	Init_Ports,0X0,0X0
Init_Ports#	CSEG           
_Init_Ports
; /**********************************************
; 函数名：Init_Ports
; 描  述：端口初始化函数
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void  Init_Ports(void)
; {
#line 48	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     PAT0 = 1;
	CLR            	BKSR
;   48:(    ASGN_0,          1 ,            ,      PAT0)

; ITemplate_SET_0_TMP
	BSS            	(_PAT0_0)/8,	(_PAT0_0)%8
#line 49	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     ANSL0 = 1;
;   49:(    ASGN_0,          1 ,            ,     ANSL0)

; ITemplate_SET_0_TMP
	BSS            	(_ANSL0_0)/8,	(_ANSL0_0)%8
#line 50	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     PAPD0 = 1;  //BOOTPIN下拉
;   50:(    ASGN_0,          1 ,            ,     PAPD0)

; ITemplate_SET_0_TMP
	BSS            	(_PAPD0_0)/8,	(_PAPD0_0)%8
#line 51	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ; }
;   51:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	Reg_reset,0X0,0X0
Reg_reset#	CSEG           
_Reg_reset
; /**********************************************
; 函数名：Reg_reset
; 描  述：寄存器复位
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void Reg_reset(void)
; {
#line 61	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     PAT0 = 0xFF;
	CLR            	BKSR
;   61:(    ASGN_0,          1 ,            ,      PAT0)

; ITemplate_SET_0_TMP
	BSS            	(_PAT0_0)/8,	(_PAT0_0)%8
#line 62	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     ANSL = 0;
;   62:(    ASGN_1,          0 ,            ,      ANSL)

; ITemplate_CLR1_4_TMP
	CLR            	_ANSL_0
#line 63	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     ANSH = 0;
;   63:(    ASGN_1,          0 ,            ,      ANSH)

; ITemplate_CLR1_4_TMP
	CLR            	_ANSH_0
#line 65	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     T8NC = 0;
;   65:(    ASGN_1,          0 ,            ,      T8NC)

; ITemplate_CLR1_4_TMP
	CLR            	_T8NC_0
#line 66	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     T8NEN = 0;
;   66:(    ASGN_0,          0 ,            ,     T8NEN)

; ITemplate_CLR_0_TMP
	BCC            	(_T8NEN_0)/8,	(_T8NEN_0)%8
#line 68	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     BR0R = 0;
;   68:(    ASGN_1,          0 ,            ,      BR0R)

; ITemplate_CLR1_4_TMP
	BSS            	BKSR,	0x4
	CLR            	_BR0R_0#sh		; ShBank 1
#line 69	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     RX0EN = 0;
;   69:(    ASGN_0,          0 ,            ,     RX0EN)

; ITemplate_CLR_0_TMP
	BCC            	(_RX0EN_0#sh)/8,	(_RX0EN_0#sh)%8		; ShBank 1
#line 70	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     TX0EN = 0;
;   70:(    ASGN_0,          0 ,            ,     TX0EN)

; ITemplate_CLR_0_TMP
	BCC            	(_TX0EN_0#sh)/8,	(_TX0EN_0#sh)%8		; ShBank 1
#line 71	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ; }
;   71:(       RET,            ,            ,          )

; ITemplate_RET
	BCC            	BKSR,	0x4
	RET            			; Bank 0		; ShBank 0
	_DESC          	Init_MCU,0X0,0X0,Init_Ports,Init_Uart,Init_Timer
Init_MCU#	CSEG           
_Init_MCU
; /**********************************************
; 函数名：Init_MCU
; 描  述：总初始化函数
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void Init_MCU(void)
; {
#line 81	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     Init_Ports();
	CLR            	BKSR
;   81:(      CALL, (Init_Ports.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_Init_Ports
	CALL           	_Init_Ports		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 82	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     Init_Uart();
;   82:(      CALL, (Init_Uart.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_Init_Uart
	CALL           	_Init_Uart		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 83	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ;     Init_Timer();
;   83:(      CALL, (Init_Timer.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_Init_Timer
	CALL           	_Init_Timer		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 84	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\Uart_Boot_vector_interrupt\Boot\Src\sysinit.c ; }
;   84:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0

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

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC10	PSECT	FLAG=0X1088,ADDR=0X7FCC9
_T8NIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC11	PSECT	FLAG=0X1088,ADDR=0X7FD68
_PAT0_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC12	PSECT	FLAG=0X1088,ADDR=0X7FD69
_PAT1_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC13	PSECT	FLAG=0X1088,ADDR=0X7FD6A
_PAT2_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC14	PSECT	FLAG=0X1088,ADDR=0X7FD80
_PAPD0_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC15	PSECT	FLAG=0X1088,ADDR=0X7FDE0
_ANSL0_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC16	PSECT	FLAG=0X1088,ADDR=0X7FDF7
_T8NEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC17	PSECT	FLAG=0X1088,ADDR=0X30686
_RX0LEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC18	PSECT	FLAG=0X1088,ADDR=0X30687
_RX0EN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC19	PSECT	FLAG=0X1088,ADDR=0X30695
_BRGH0_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC20	PSECT	FLAG=0X1088,ADDR=0X30696
_TX0LEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031__Bootloader_Demo_Uart_Boot_vector_interrupt_Boot_Src_sysinit_c_STATIC21	PSECT	FLAG=0X1088,ADDR=0X30697
_TX0EN_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            	0XFF8D		; Bank 0
_ANSH_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFBC		; Bank 0
_ANSL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFBD		; Bank 0
_T8N_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFBE		; Bank 0
_T8NC_0	RSEG           	0X1		; Bank 0
	ORG            	0X60D3		; Bank 0
_BR0R_0	RSEG           	0X1		; Bank 0
	END
