;The Num of Instruction(Size):368. The Max Address(Begin with 0):2423 

                MCU  ES7P169C

A    equ    0
R    equ    1
HRAM_0X0  equ  0X0
HRAM_0X1  equ  0X1
HRAM_0X2  equ  0X2
HRAM_0X3  equ  0X3
HRAM_0X4  equ  0X4
HRAM_0X80  equ  0X80
HRAM_0X81  equ  0X81
HRAM_0X82  equ  0X82
HRAM_0X83  equ  0X83
HRAM_0X84  equ  0X84
HRAM_0X88  equ  0X88
HRAM_0X89  equ  0X89
HRAM_0X9D  equ  0X9d
HRAM_0X9E  equ  0X9e
HRAM_0XCF  equ  0Xcf
HRAM_0XD0  equ  0Xd0
HRAM_0XD1  equ  0Xd1
HRAM_0XD2  equ  0Xd2
HRAM_0XD3  equ  0Xd3
HRAM_0XDA  equ  0Xda
HRAM_0XDB  equ  0Xdb
HRAM_0XDC  equ  0Xdc
HRAM_0XDD  equ  0Xdd
HRAM_0XDE  equ  0Xde
HRAM_0XDF  equ  0Xdf
HRAM_0XEC  equ  0Xec
HRAM_0XED  equ  0Xed
HRAM_0XF0  equ  0Xf0
HRAM_0XF1  equ  0Xf1
HRAM_0XF2  equ  0Xf2

                ORG             0X00
HADR_0X0:
;#include "ES7P169C.inc"
;
;EXTERN	_main
;EXTERN  _isr
;
;APP_ENTRY EQU 0x0800		;用户程序入口地址
;
;_STARTUP	CSEG 0x00	
;	AJMP	APP_ENTRY
:0X0  c700f008                  AJMP            HADR_0X800
                                ORG             0X2
;	NOP
:0X2  ffff                      NOP
;	NOP
:0X3  ffff                      NOP
                                ORG             0X8
;
;ISR_ENTRY1	CSEG 0x08
;	push
:0X8  c180                      PUSH
;	NOP
:0X9  ffff                      NOP
;	AJMP	APP_ENTRY+0x08		;jump to the entry of interrupt function
:0Xa  c708f008                  AJMP            HADR_0X808
                                ORG             0Xc
;
;ISR_ENTRY2	CSEG 0x0C
;	push
:0Xc  c180                      PUSH
;	NOP
:0Xd  ffff                      NOP
;	AJMP	APP_ENTRY+0x0C		;jump to the entry of interrupt function
:0Xe  c70cf008                  AJMP            HADR_0X80C
                                ORG             0X18
;	
;ISR_ENTRY3	CSEG 0x18
;	push
:0X18  c180                     PUSH
;	NOP
:0X19  ffff                     NOP
;	AJMP	APP_ENTRY+0x18		;jump to the entry of interrupt function
:0X1a  c718f008                 AJMP            HADR_0X818
                                ORG             0X24
;	
;ISR_ENTRY4	CSEG 0x24
;	push
:0X24  c180                     PUSH
;	NOP
:0X25  ffff                     NOP
HADR_0X26:
;	AJMP	APP_ENTRY+0x24		;jump to the entry of interrupt function
:0X26  c724f008                 AJMP            HADR_0X824
                                ORG             0X800
HADR_0X800:
;
;_APP_STARTUP CSEG APP_ENTRY
;	;SENGMENTSEL $
;	CALL	 _main
:0X800  6026                    CALL            HADR_0X26
;	GOTO	APP_ENTRY
:0X801  6800                    GOTO            HADR_0X0
                                ORG             0X808
HADR_0X808:
:0X808  ec01                    PAGE            (_INT_ENTRY_0X808)>>11
:0X809  694d                    GOTO            0X14D
                                ORG             0X80c
HADR_0X80C:
:0X80c  ec01                    PAGE            (_INT_ENTRY_0X80C)>>11
:0X80d  68e7                    GOTO            0XE7
                                ORG             0X818
HADR_0X818:
:0X818  ec01                    PAGE            (_INT_ENTRY_0X818)>>11
:0X819  68a4                    GOTO            0XA4
                                ORG             0X824
HADR_0X824:
:0X824  ec01                    PAGE            (_INT_ENTRY_0X824)>>11
:0X825  6881                    GOTO            0X81
;
;/*******************************************************
;函数名：void main(void)
;描  述：主函数，默认中断向量表，IG6、IG3配置为高优先级中断，IG0、IG7配置为低优先级中断
;        配置优先级顺序：IG6(高)>IG3(高)>IG0(低)>IG7(低)，高优先级可以嵌套响应低优先级
;输入值：无
;输出值：无
;返回值：无
;*******************************************************/
;void main(void)
;{
;    RAMclear();
:0X826  e783                    CLR             HRAM_0X83
:0X827  ec01                    PAGE            (_RAMclear)>>11
:0X828  6063                    CALL            0X63
:0X829  ec01                    PAGE            (_4)>>11
;    GPIOInit();
:0X82a  ec01                    PAGE            (_GPIOInit)>>11
:0X82b  6075                    CALL            0X75
:0X82c  ec01                    PAGE            (_5)>>11
;    i2c_temp = 0;
:0X82d  ea01                    SECTION         0X1
:0X82e  e706                    CLR             (_i2c_temp)&7f                      ;(_i2c_temp)&7f: Bank 0    Addr: 6     
;    INTG = 0x07;        //向量中断模式，中断向量表INTV<1:0>=11
:0X82f  e507                    MOVI            0X7
:0X830  e696                    MOVA            _INTG_0                             ;_INTG_0: Bank 511    Addr: 65430    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    IGP6 = 1;           //I2C中断高优先级
:0X831  a697                    BSS             (_IGP6_0)>>3,   6                   ;(_IGP6_0)>>3: Bank 511    Addr: 65431    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    IGP3 = 1;           //UART中断高优先级
:0X832  a397                    BSS             (_IGP3_0)>>3,   3                   ;(_IGP3_0)>>3: Bank 511    Addr: 65431    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;
;    /**********************T8N初始化************************/
;    T8NC = 0x0E;         //定时器模式，预分频1:(Fosc/2)/128
:0X833  e50e                    MOVI            0XE
:0X834  e6be                    MOVA            _T8NC_0                             ;_T8NC_0: Bank 511    Addr: 65470    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    T8N = 6;             //赋计数器初值，计数器4ms溢出
:0X835  e506                    MOVI            0X6
:0X836  e6bd                    MOVA            _T8N_0                              ;_T8N_0: Bank 511    Addr: 65469    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    T8NIF = 0;           //清溢出标志位
:0X837  a99a                    BCC             (_T8NIF_0)>>3,  1                   ;(_T8NIF_0)>>3: Bank 511    Addr: 65434    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    T8NIE = 1;           //打开定时器溢出中断
:0X838  a199                    BSS             (_T8NIE_0)>>3,  1                   ;(_T8NIE_0)>>3: Bank 511    Addr: 65433    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;
;    /**********************T21初始化************************/
;    T21CL = 0x00;        //定时器模式
:0X839  e7f0                    CLR             HRAM_0XF0
;    T21CM = 0x0F;        //预分频1:16
:0X83a  e50f                    MOVI            0XF
:0X83b  e6f1                    MOVA            HRAM_0XF1
;    T21CH = 0x0F;        //后分频次数16
:0X83c  e50f                    MOVI            0XF
:0X83d  e6f2                    MOVA            HRAM_0XF2
;    T21PH = 0xF4;        //周期值高8位
:0X83e  e5f4                    MOVI            0XF4
:0X83f  e6ed                    MOVA            HRAM_0XED
;    T21PL = 0x24;
:0X840  e524                    MOVI            0X24
:0X841  e6ec                    MOVA            HRAM_0XEC
;    T21VIF = 0;          //清溢出标志位
:0X842  aa9e                    BCC             (_T21VIF_0)>>3, 2                   ;(_T21VIF_0)>>3: Bank 511    Addr: 65438    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    T21VIE = 1;          //打开T21溢出中断
:0X843  a29d                    BSS             (_T21VIE_0)>>3, 2                   ;(_T21VIE_0)>>3: Bank 511    Addr: 65437    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;
;    /**********************IIC初始化************************/
;    PBT0 = 1;           //I2C_SDA输入
:0X844  a0ae                    BSS             (_PBT0_0)>>3,   0                   ;(_PBT0_0)>>3: Bank 511    Addr: 65454    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PBT1 = 1;           //I2C_SCL输入
:0X845  a1ae                    BSS             (_PBT1_0)>>3,   1                   ;(_PBT1_0)>>3: Bank 511    Addr: 65454    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    I2CC = 0xE0;        //I2C端口使能，使能上拉，开漏方式，发送ACK
:0X846  e5e0                    MOVI            0XE0
:0X847  a483                    BSS             HRAM_0X83,      4
:0X848  e6da                    MOVA            HRAM_0XDA
;    I2CSA = SLAVE_ADDR << 1;    //从机地址
:0X849  e55a                    MOVI            0X5A
:0X84a  e6db                    MOVA            HRAM_0XDB
;    I2CIFC = 0x00;      //清除标志位
:0X84b  e7df                    CLR             HRAM_0XDF
;    I2CRBIE = 1;        //使能I2C接收中断
:0X84c  a3de                    BSS             HRAM_0XDE,      3
;    I2CIF = 0;          //清I2C总标志位
:0X84d  ae9e                    BCC             (_I2CIF_0)>>3,  6                   ;(_I2CIF_0)>>3: Bank 511    Addr: 65438    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    I2CIE = 1;          //使能I2C总中断
:0X84e  a69d                    BSS             (_I2CIE_0)>>3,  6                   ;(_I2CIE_0)>>3: Bank 511    Addr: 65437    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;
;    /**********************UART初始化***********************/
;    PAT1 = 0;       //TX输出
:0X84f  a9ad                    BCC             (_PAT1_0)>>3,   1                   ;(_PAT1_0)>>3: Bank 511    Addr: 65453    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PAT2 = 1;       //RX输入
:0X850  a2ad                    BSS             (_PAT2_0)>>3,   2                   ;(_PAT2_0)>>3: Bank 511    Addr: 65453    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    RX0LEN = 0;     //8位数据接收格式
:0X851  aed0                    BCC             HRAM_0XD0,      6
;    TX0LEN = 0;     //8位数据发送格式
:0X852  aed2                    BCC             HRAM_0XD2,      6
;    BRGH0 = 0;      //波特率高速模式：波特率=Fosc/(64*(BRR<7:0>+1))
:0X853  add2                    BCC             HRAM_0XD2,      5
;    BR0R = 25;      //波特率=16MHz/(64*26)≈9600bps
:0X854  e519                    MOVI            0X19
:0X855  e6d3                    MOVA            HRAM_0XD3
;    TX0IE = 1;      //发送空中断
:0X856  a09d                    BSS             (_TX0IE_0)>>3,  0                   ;(_TX0IE_0)>>3: Bank 511    Addr: 65437    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    RX0IE = 1;      //接收满中断
:0X857  a19d                    BSS             (_RX0IE_0)>>3,  1                   ;(_RX0IE_0)>>3: Bank 511    Addr: 65437    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;
;    /*****************打开全局中断，使能模块*****************/
;    GIEL = 1;           //开低优先级中断
:0X858  a696                    BSS             (_GIEL_0)>>3,   6                   ;(_GIEL_0)>>3: Bank 511    Addr: 65430    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    GIE = 1;            //开全局中断
:0X859  a796                    BSS             (_GIE_0)>>3,    7                   ;(_GIE_0)>>3: Bank 511    Addr: 65430    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    T8NEN = 1;          //使能T8N
:0X85a  a7be                    BSS             (_T8NEN_0)>>3,  7                   ;(_T8NEN_0)>>3: Bank 511    Addr: 65470    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    T21EN = 1;          //使能T21
:0X85b  ac83                    BCC             HRAM_0X83,      4
:0X85c  a7f2                    BSS             HRAM_0XF2,      7
;    I2CEN = 1;          //使能I2C
:0X85d  a483                    BSS             HRAM_0X83,      4
:0X85e  a0da                    BSS             HRAM_0XDA,      0
;    RX0EN = 1;          //使能UART接收
:0X85f  a7d0                    BSS             HRAM_0XD0,      7
;    TX0EN = 1;          //使能UART发送
:0X860  a7d2                    BSS             HRAM_0XD2,      7
;
;    while (1)
:0X861  c18b                    CWDT
;    }
:0X862  6861                    GOTO            0X61
;/*******************************************************
;*Copyright(C),2021,Shanghai Eastsoft Microelectronics Co.,Ltd.
;*文件名：vector.c
;*作  者：AE Team
;*版  本：v1.0，编译于iDesigner(v4.2.3.166) + 工具链HRCC(v1.2.0.122)
;*日  期：2021/12/9
;*描  述：使用向量中断模式前，需在配置字界面选择->向量中断模式，且需右键工程->属性->编译->Support interrupt vectors->True
;        设置完成后切记保存设置；依据INTV<1:0>和INTP寄存器配置，优先响应高优先级中断。高优先级中断可以嵌套响应低优先级中断，
;        同属高(或低)优先级中断之间不能嵌套响应
;*备  注：本软件仅供学习和演示使用，对用户直接引用代码所带来的风险或后果不承担任何法律责任。
;*******************************************************/
;#include <hic.h>
;
;#define SLAVE_ADDR  0x2D            //宏定义IIC从机地址
;#define I2C_RLENGTH 64
;#define CLRWDT()   {__Asm CWDT;}        //宏定义清狗指令
;
;unsigned char t8nisr;        //T8N中断计次标志
;unsigned char i2c_sta, i2c_rxd[I2C_RLENGTH], i2c_temp;    //I2C启动/重启动状态
;unsigned char uart_rxd;
;
;/******************************************************
;函数名：void RAMclear(void)
;描  述：RAM区数据清零，RAM区地址0x0000~0x03FF
;输入值：无
;输出值：无
;返回值：无
;*******************************************************/
;void RAMclear(void)
;{
;    for (IAAH = 0; IAAH <= 0x03; IAAH++)
:0X863  e783                    CLR             HRAM_0X83
:0X864  e782                    CLR             _IAAH_0                             ;_IAAH_0: Bank 511    Addr: 65410    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
:0X865  5082                    MOV             _IAAH_0,        A                   ;_IAAH_0: Bank 511    Addr: 65410    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
:0X866  ce03                    SUBI            0X3
:0X867  9084                    JBS             HRAM_0X84,      0
:0X868  6874                    GOTO            0X74
;    {
;        for (IAAL = 0; IAAL < 0xFF; IAAL++)
:0X869  e781                    CLR             _IAAL_0                             ;_IAAL_0: Bank 511    Addr: 65409    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
:0X86a  e5ff                    MOVI            0XFF
:0X86b  ee81                    SUB             _IAAL_0,        A                   ;_IAAL_0: Bank 511    Addr: 65409    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
:0X86c  9884                    JBC             HRAM_0X84,      0
:0X86d  6871                    GOTO            0X71
;            IAD = 0x00;
:0X86e  e780                    CLR             _IAD_0                              ;_IAD_0: Bank 511    Addr: 65408    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
:0X86f  5581                    INC             _IAAL_0,        R                   ;_IAAL_0: Bank 511    Addr: 65409    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
:0X870  686a                    GOTO            0X6A
;
;        IAD = 0x00;
:0X871  e780                    CLR             _IAD_0                              ;_IAD_0: Bank 511    Addr: 65408    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
:0X872  5582                    INC             _IAAH_0,        R                   ;_IAAH_0: Bank 511    Addr: 65410    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    }
:0X873  6865                    GOTO            0X65
;}
:0X874  c183                    RET
;
;/******************************************************
;函数名：void GPIOInit(void)
;描  述：首先初始化所有未用到的IO口为输出低电平
;输入值：无
;输出值：无
;返回值：无
;*******************************************************/
;void GPIOInit(void)
;{
;    ANSL = 0xFF;        //选择对应端口为数字IO功能
:0X875  e783                    CLR             HRAM_0X83
:0X876  e5ff                    MOVI            0XFF
:0X877  e6bc                    MOVA            _ANSL_0                             ;_ANSL_0: Bank 511    Addr: 65468    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    ANSH = 0xFF;
:0X878  e5ff                    MOVI            0XFF
:0X879  e68d                    MOVA            _ANSH_0                             ;_ANSH_0: Bank 511    Addr: 65421    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PAT = 0x00;         //所有IO设为输出低电平
:0X87a  e7ad                    CLR             _PAT_0                              ;_PAT_0: Bank 511    Addr: 65453    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PBT = 0x00;
:0X87b  e7ae                    CLR             _PBT_0                              ;_PBT_0: Bank 511    Addr: 65454    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PCT = 0x00;
:0X87c  e7af                    CLR             _PCT_0                              ;_PCT_0: Bank 511    Addr: 65455    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PA = 0x00;
:0X87d  e7a8                    CLR             _PA_0                               ;_PA_0: Bank 511    Addr: 65448    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PB = 0x00;
:0X87e  e7a9                    CLR             _PB_0                               ;_PB_0: Bank 511    Addr: 65449    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    PC = 0x00;
:0X87f  e7aa                    CLR             _PC_0                               ;_PC_0: Bank 511    Addr: 65450    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;}
:0X880  c183                    RET
:0X881  ec01                    PAGE            (_0)>>11
:0X882  e783                    CLR             HRAM_0X83
:0X883  5081                    MOV             HRAM_0X81,      A
:0X884  e601                    MOVA            (SAVED_FSR_INT1)&7f                 ;(SAVED_FSR_INT1)&7f: Bank 0    Addr: 1     
:0X885  5082                    MOV             HRAM_0X82,      A
:0X886  e602                    MOVA            (SAVED_FSR_INT1+1)&7f               ;(SAVED_FSR_INT1+1)&7f: Bank 0    Addr: 2     
:0X887  5005                    MOV             (MUL_TEMP)&7f,  A                   ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X888  e607                    MOVA            (MUL_TEMP_INT1)&7f                  ;(MUL_TEMP_INT1)&7f: Bank 0    Addr: 7     
:0X889  5006                    MOV             (MUL_TEMP+1)&7f,                A   ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X88a  e608                    MOVA            (MUL_TEMP_INT1+1)&7f                ;(MUL_TEMP_INT1+1)&7f: Bank 0    Addr: 8     
;
;/*******************************************************
;函数名：void isrx(void) interrupt
;描  述：向量中断服务程序，isrx对应IGx
;输入值：无
;输出值：无
;返回值：无
;*******************************************************/
;void isr0(void) interrupt_low 0x24        //IG0(T8N)1s定时中断
;{
;    T8N = 6;          //赋计数器初值
:0X88b  e506                    MOVI            0X6
:0X88c  e6bd                    MOVA            _T8N_0                              ;_T8N_0: Bank 511    Addr: 65469    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    t8nisr++;
:0X88d  ea01                    SECTION         0X1
:0X88e  5507                    INC             (_t8nisr)&7f,   R                   ;(_t8nisr)&7f: Bank 0    Addr: 7     
;
;    if (t8nisr >= 250)      //1s计时
:0X88f  e5fa                    MOVI            0XFA
:0X890  ee07                    SUB             (_t8nisr)&7f,   A                   ;(_t8nisr)&7f: Bank 0    Addr: 7     
:0X891  9084                    JBS             HRAM_0X84,      0
:0X892  6895                    GOTO            0X95
;    {
;        t8nisr = 0;
:0X893  e707                    CLR             (_t8nisr)&7f                        ;(_t8nisr)&7f: Bank 0    Addr: 7     
;        PA4 = ~PA4;
:0X894  2ca8                    BTT             (_PA4_0)>>3,    4                   ;(_PA4_0)>>3: Bank 511    Addr: 65448    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    }
:0X895  a99a                    BCC             (_T8NIF_0)>>3,  1                   ;(_T8NIF_0)>>3: Bank 511    Addr: 65434    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;}
:0X896  ea00                    SECTION         0X0
:0X897  6898                    GOTO            0X98
:0X898  5007                    MOV             (MUL_TEMP_INT1)&7f,             A   ;(MUL_TEMP_INT1)&7f: Bank 0    Addr: 7     
:0X899  e605                    MOVA            (MUL_TEMP)&7f                       ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X89a  e688                    MOVA            HRAM_0X88
:0X89b  5008                    MOV             (MUL_TEMP_INT1+1)&7f,           A   ;(MUL_TEMP_INT1+1)&7f: Bank 0    Addr: 8     
:0X89c  e606                    MOVA            (MUL_TEMP+1)&7f                     ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X89d  e689                    MOVA            HRAM_0X89
:0X89e  5002                    MOV             (SAVED_FSR_INT1+1)&7f,          A   ;(SAVED_FSR_INT1+1)&7f: Bank 0    Addr: 2     
:0X89f  e682                    MOVA            HRAM_0X82
:0X8a0  5001                    MOV             (SAVED_FSR_INT1)&7f,            A   ;(SAVED_FSR_INT1)&7f: Bank 0    Addr: 1     
:0X8a1  e681                    MOVA            HRAM_0X81
:0X8a2  c181                    POP
:0X8a3  c189                    RETIE
:0X8a4  ec01                    PAGE            (_1)>>11
:0X8a5  e783                    CLR             HRAM_0X83
:0X8a6  5081                    MOV             HRAM_0X81,      A
:0X8a7  e603                    MOVA            (SAVED_FSR_INT2)&7f                 ;(SAVED_FSR_INT2)&7f: Bank 0    Addr: 3     
:0X8a8  5082                    MOV             HRAM_0X82,      A
:0X8a9  e604                    MOVA            (SAVED_FSR_INT2+1)&7f               ;(SAVED_FSR_INT2+1)&7f: Bank 0    Addr: 4     
:0X8aa  5005                    MOV             (MUL_TEMP)&7f,  A                   ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X8ab  e609                    MOVA            (MUL_TEMP_INT2)&7f                  ;(MUL_TEMP_INT2)&7f: Bank 0    Addr: 9     
:0X8ac  5006                    MOV             (MUL_TEMP+1)&7f,                A   ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X8ad  e60a                    MOVA            (MUL_TEMP_INT2+1)&7f                ;(MUL_TEMP_INT2+1)&7f: Bank 0    Addr: 10     
;
;void isr3(void) interrupt_high 0x18        //IG3(UART)中断
;{
;    if (RX0IE == 1 && RX0IF == 1) //UART接收中断，接收数据返回
:0X8ae  e500                    MOVI            0X0
:0X8af  999d                    JBC             HRAM_0X9D,      1
:0X8b0  e501                    MOVI            0X1
:0X8b1  ea01                    SECTION         0X1
:0X8b2  e600                    MOVA            HRAM_0X0
:0X8b3  5000                    MOV             HRAM_0X0,       A
:0X8b4  e301                    XORI            0X1
:0X8b5  9284                    JBS             HRAM_0X84,      2
:0X8b6  68c4                    GOTO            0XC4
:0X8b7  e500                    MOVI            0X0
:0X8b8  999e                    JBC             HRAM_0X9E,      1
:0X8b9  e501                    MOVI            0X1
:0X8ba  e600                    MOVA            HRAM_0X0
:0X8bb  5000                    MOV             HRAM_0X0,       A
:0X8bc  e301                    XORI            0X1
:0X8bd  9284                    JBS             HRAM_0X84,      2
:0X8be  68c4                    GOTO            0XC4
;    {
;        uart_rxd = RX0B;
:0X8bf  a483                    BSS             HRAM_0X83,      4
:0X8c0  50cf                    MOV             HRAM_0XCF,      A
:0X8c1  e608                    MOVA            (_uart_rxd)&7f                      ;(_uart_rxd)&7f: Bank 0    Addr: 8     
;        TX0B = uart_rxd;
:0X8c2  5008                    MOV             (_uart_rxd)&7f, A                   ;(_uart_rxd)&7f: Bank 0    Addr: 8     
:0X8c3  e6d1                    MOVA            HRAM_0XD1
;    }
:0X8c4  e500                    MOVI            0X0
:0X8c5  989d                    JBC             HRAM_0X9D,      0
:0X8c6  e501                    MOVI            0X1
:0X8c7  e600                    MOVA            HRAM_0X0
:0X8c8  5000                    MOV             HRAM_0X0,       A
:0X8c9  e301                    XORI            0X1
:0X8ca  9284                    JBS             HRAM_0X84,      2
:0X8cb  68d8                    GOTO            0XD8
:0X8cc  e500                    MOVI            0X0
:0X8cd  989e                    JBC             HRAM_0X9E,      0
:0X8ce  e501                    MOVI            0X1
:0X8cf  e600                    MOVA            HRAM_0X0
:0X8d0  5000                    MOV             HRAM_0X0,       A
:0X8d1  e301                    XORI            0X1
:0X8d2  9284                    JBS             HRAM_0X84,      2
:0X8d3  68d8                    GOTO            0XD8
;    {
;        TX0B = 0x5A;     //示例
:0X8d4  e55a                    MOVI            0X5A
:0X8d5  a483                    BSS             HRAM_0X83,      4
:0X8d6  e6d1                    MOVA            HRAM_0XD1
;        TX0IE = 0;       //示例
:0X8d7  a89d                    BCC             (_TX0IE_0)>>3,  0                   ;(_TX0IE_0)>>3: Bank 511    Addr: 65437    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    }
;}
:0X8d8  ea00                    SECTION         0X0
:0X8d9  ac83                    BCC             HRAM_0X83,      4
:0X8da  68db                    GOTO            0XDB
:0X8db  5009                    MOV             (MUL_TEMP_INT2)&7f,             A   ;(MUL_TEMP_INT2)&7f: Bank 0    Addr: 9     
:0X8dc  e605                    MOVA            (MUL_TEMP)&7f                       ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X8dd  e688                    MOVA            HRAM_0X88
:0X8de  500a                    MOV             (MUL_TEMP_INT2+1)&7f,           A   ;(MUL_TEMP_INT2+1)&7f: Bank 0    Addr: 10     
:0X8df  e606                    MOVA            (MUL_TEMP+1)&7f                     ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X8e0  e689                    MOVA            HRAM_0X89
:0X8e1  5004                    MOV             (SAVED_FSR_INT2+1)&7f,          A   ;(SAVED_FSR_INT2+1)&7f: Bank 0    Addr: 4     
:0X8e2  e682                    MOVA            HRAM_0X82
:0X8e3  5003                    MOV             (SAVED_FSR_INT2)&7f,            A   ;(SAVED_FSR_INT2)&7f: Bank 0    Addr: 3     
:0X8e4  e681                    MOVA            HRAM_0X81
:0X8e5  c181                    POP
:0X8e6  c189                    RETIE
:0X8e7  ec01                    PAGE            (_2)>>11
:0X8e8  e783                    CLR             HRAM_0X83
:0X8e9  5081                    MOV             HRAM_0X81,      A
:0X8ea  e603                    MOVA            (SAVED_FSR_INT2)&7f                 ;(SAVED_FSR_INT2)&7f: Bank 0    Addr: 3     
:0X8eb  5082                    MOV             HRAM_0X82,      A
:0X8ec  e604                    MOVA            (SAVED_FSR_INT2+1)&7f               ;(SAVED_FSR_INT2+1)&7f: Bank 0    Addr: 4     
:0X8ed  5005                    MOV             (MUL_TEMP)&7f,  A                   ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X8ee  e609                    MOVA            (MUL_TEMP_INT2)&7f                  ;(MUL_TEMP_INT2)&7f: Bank 0    Addr: 9     
:0X8ef  5006                    MOV             (MUL_TEMP+1)&7f,                A   ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X8f0  e60a                    MOVA            (MUL_TEMP_INT2+1)&7f                ;(MUL_TEMP_INT2+1)&7f: Bank 0    Addr: 10     
;
;void isr6(void) interrupt_high 0x0C        //IG6(I2C)中断
;{
;    if (I2CRBIE == 1 && I2CRBIF == 1)      //I2C接收中断
:0X8f1  e500                    MOVI            0X0
:0X8f2  a483                    BSS             HRAM_0X83,      4
:0X8f3  9bde                    JBC             HRAM_0XDE,      3
:0X8f4  e501                    MOVI            0X1
:0X8f5  ea01                    SECTION         0X1
:0X8f6  e600                    MOVA            HRAM_0X0
:0X8f7  5000                    MOV             HRAM_0X0,       A
:0X8f8  e301                    XORI            0X1
:0X8f9  9284                    JBS             HRAM_0X84,      2
:0X8fa  692a                    GOTO            0X12A
:0X8fb  e500                    MOVI            0X0
:0X8fc  9bdf                    JBC             HRAM_0XDF,      3
:0X8fd  e501                    MOVI            0X1
:0X8fe  e600                    MOVA            HRAM_0X0
:0X8ff  5000                    MOV             HRAM_0X0,       A
:0X900  e301                    XORI            0X1
:0X901  9284                    JBS             HRAM_0X84,      2
:0X902  692a                    GOTO            0X12A
;    {
;        i2c_rxd[i2c_temp] = I2CRB;        //I2C接收数据返回
:0X903  e701                    CLR             HRAM_0X1
:0X904  5006                    MOV             (_i2c_temp)&7f, A                   ;(_i2c_temp)&7f: Bank 0    Addr: 6     
:0X905  e600                    MOVA            HRAM_0X0
:0X906  5000                    MOV             HRAM_0X0,       A
:0X907  e089                    ADDI            _i2c_rxd
:0X908  e602                    MOVA            HRAM_0X2
:0X909  5001                    MOV             HRAM_0X1,       A
:0X90a  c300                    ADDCI           (_i2c_rxd)>>8
:0X90b  e603                    MOVA            HRAM_0X3
:0X90c  5003                    MOV             HRAM_0X3,       A
:0X90d  e682                    MOVA            HRAM_0X82
:0X90e  5002                    MOV             HRAM_0X2,       A
:0X90f  e681                    MOVA            HRAM_0X81
:0X910  50dd                    MOV             HRAM_0XDD,      A
:0X911  e680                    MOVA            HRAM_0X80
:0X912  c201                    ISTEP           0X1
;        I2CTB = i2c_rxd[i2c_temp];
:0X913  e701                    CLR             HRAM_0X1
:0X914  5006                    MOV             (_i2c_temp)&7f, A                   ;(_i2c_temp)&7f: Bank 0    Addr: 6     
:0X915  e600                    MOVA            HRAM_0X0
:0X916  5000                    MOV             HRAM_0X0,       A
:0X917  e089                    ADDI            _i2c_rxd
:0X918  e602                    MOVA            HRAM_0X2
:0X919  5001                    MOV             HRAM_0X1,       A
:0X91a  c300                    ADDCI           (_i2c_rxd)>>8
:0X91b  e603                    MOVA            HRAM_0X3
:0X91c  5003                    MOV             HRAM_0X3,       A
:0X91d  e682                    MOVA            HRAM_0X82
:0X91e  5002                    MOV             HRAM_0X2,       A
:0X91f  e681                    MOVA            HRAM_0X81
:0X920  5080                    MOV             HRAM_0X80,      A
:0X921  2000                    MOVAR           ?_TMP_INT2                          ;?_TMP_INT2: Bank 0    Addr: 0     
:0X922  7800                    MOVRA           ?_TMP_INT2                          ;?_TMP_INT2: Bank 0    Addr: 0     
:0X923  e6dc                    MOVA            HRAM_0XDC
;        i2c_temp++;
:0X924  5506                    INC             (_i2c_temp)&7f, R                   ;(_i2c_temp)&7f: Bank 0    Addr: 6     
;
;        if (i2c_temp > I2C_RLENGTH)
:0X925  5006                    MOV             (_i2c_temp)&7f, A                   ;(_i2c_temp)&7f: Bank 0    Addr: 6     
:0X926  ce40                    SUBI            0X40
:0X927  9884                    JBC             HRAM_0X84,      0
:0X928  692a                    GOTO            0X12A
;            i2c_temp = 0;
:0X929  e706                    CLR             (_i2c_temp)&7f                      ;(_i2c_temp)&7f: Bank 0    Addr: 6     
;    }
:0X92a  e500                    MOVI            0X0
:0X92b  98de                    JBC             HRAM_0XDE,      0
:0X92c  e501                    MOVI            0X1
:0X92d  e600                    MOVA            HRAM_0X0
:0X92e  5000                    MOV             HRAM_0X0,       A
:0X92f  e301                    XORI            0X1
:0X930  9284                    JBS             HRAM_0X84,      2
:0X931  693d                    GOTO            0X13D
:0X932  e500                    MOVI            0X0
:0X933  98df                    JBC             HRAM_0XDF,      0
:0X934  e501                    MOVI            0X1
:0X935  e600                    MOVA            HRAM_0X0
:0X936  5000                    MOV             HRAM_0X0,       A
:0X937  e301                    XORI            0X1
:0X938  9284                    JBS             HRAM_0X84,      2
:0X939  693d                    GOTO            0X13D
;    {
;        i2c_sta = 1;        //I2C启动/重启动状态
:0X93a  e501                    MOVI            0X1
:0X93b  e605                    MOVA            (_i2c_sta)&7f                       ;(_i2c_sta)&7f: Bank 0    Addr: 5     
;        I2CSRIF = 0;
:0X93c  a8df                    BCC             HRAM_0XDF,      0
;    }
:0X93d  ae9e                    BCC             (_I2CIF_0)>>3,  6                   ;(_I2CIF_0)>>3: Bank 511    Addr: 65438    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;}
:0X93e  ea00                    SECTION         0X0
:0X93f  ac83                    BCC             HRAM_0X83,      4
:0X940  6941                    GOTO            0X141
:0X941  5009                    MOV             (MUL_TEMP_INT2)&7f,             A   ;(MUL_TEMP_INT2)&7f: Bank 0    Addr: 9     
:0X942  e605                    MOVA            (MUL_TEMP)&7f                       ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X943  e688                    MOVA            HRAM_0X88
:0X944  500a                    MOV             (MUL_TEMP_INT2+1)&7f,           A   ;(MUL_TEMP_INT2+1)&7f: Bank 0    Addr: 10     
:0X945  e606                    MOVA            (MUL_TEMP+1)&7f                     ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X946  e689                    MOVA            HRAM_0X89
:0X947  5004                    MOV             (SAVED_FSR_INT2+1)&7f,          A   ;(SAVED_FSR_INT2+1)&7f: Bank 0    Addr: 4     
:0X948  e682                    MOVA            HRAM_0X82
:0X949  5003                    MOV             (SAVED_FSR_INT2)&7f,            A   ;(SAVED_FSR_INT2)&7f: Bank 0    Addr: 3     
:0X94a  e681                    MOVA            HRAM_0X81
:0X94b  c181                    POP
:0X94c  c189                    RETIE
:0X94d  ec01                    PAGE            (_3)>>11
:0X94e  e783                    CLR             HRAM_0X83
:0X94f  5081                    MOV             HRAM_0X81,      A
:0X950  e601                    MOVA            (SAVED_FSR_INT1)&7f                 ;(SAVED_FSR_INT1)&7f: Bank 0    Addr: 1     
:0X951  5082                    MOV             HRAM_0X82,      A
:0X952  e602                    MOVA            (SAVED_FSR_INT1+1)&7f               ;(SAVED_FSR_INT1+1)&7f: Bank 0    Addr: 2     
:0X953  5005                    MOV             (MUL_TEMP)&7f,  A                   ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X954  e607                    MOVA            (MUL_TEMP_INT1)&7f                  ;(MUL_TEMP_INT1)&7f: Bank 0    Addr: 7     
:0X955  5006                    MOV             (MUL_TEMP+1)&7f,                A   ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X956  e608                    MOVA            (MUL_TEMP_INT1+1)&7f                ;(MUL_TEMP_INT1+1)&7f: Bank 0    Addr: 8     
;
;void isr7(void) interrupt_low 0x08         //IG7(T21)1s定时中断
;{
;    if (T21VIE == 1 && T21VIF == 1)     //定时器溢出中断
:0X957  e500                    MOVI            0X0
:0X958  9a9d                    JBC             HRAM_0X9D,      2
:0X959  e501                    MOVI            0X1
:0X95a  ea01                    SECTION         0X1
:0X95b  e604                    MOVA            HRAM_0X4
:0X95c  5004                    MOV             HRAM_0X4,       A
:0X95d  e301                    XORI            0X1
:0X95e  9284                    JBS             HRAM_0X84,      2
:0X95f  696a                    GOTO            0X16A
:0X960  e500                    MOVI            0X0
:0X961  9a9e                    JBC             HRAM_0X9E,      2
:0X962  e501                    MOVI            0X1
:0X963  e604                    MOVA            HRAM_0X4
:0X964  5004                    MOV             HRAM_0X4,       A
:0X965  e301                    XORI            0X1
:0X966  9284                    JBS             HRAM_0X84,      2
:0X967  696a                    GOTO            0X16A
;    {
;        PA6 = ~PA6;
:0X968  2ea8                    BTT             (_PA6_0)>>3,    6                   ;(_PA6_0)>>3: Bank 511    Addr: 65448    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;        T21VIF = 0;        //清溢出标志位
:0X969  aa9e                    BCC             (_T21VIF_0)>>3, 2                   ;(_T21VIF_0)>>3: Bank 511    Addr: 65438    C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\_Bootloader_Demo\APP_demo_vector_interrupt\debug\vector.obj 
;    }
;}
:0X96a  ea00                    SECTION         0X0
:0X96b  696c                    GOTO            0X16C
:0X96c  5007                    MOV             (MUL_TEMP_INT1)&7f,             A   ;(MUL_TEMP_INT1)&7f: Bank 0    Addr: 7     
:0X96d  e605                    MOVA            (MUL_TEMP)&7f                       ;(MUL_TEMP)&7f: Bank 0    Addr: 5     
:0X96e  e688                    MOVA            HRAM_0X88
:0X96f  5008                    MOV             (MUL_TEMP_INT1+1)&7f,           A   ;(MUL_TEMP_INT1+1)&7f: Bank 0    Addr: 8     
:0X970  e606                    MOVA            (MUL_TEMP+1)&7f                     ;(MUL_TEMP+1)&7f: Bank 0    Addr: 6     
:0X971  e689                    MOVA            HRAM_0X89
:0X972  5002                    MOV             (SAVED_FSR_INT1+1)&7f,          A   ;(SAVED_FSR_INT1+1)&7f: Bank 0    Addr: 2     
:0X973  e682                    MOVA            HRAM_0X82
:0X974  5001                    MOV             (SAVED_FSR_INT1)&7f,            A   ;(SAVED_FSR_INT1)&7f: Bank 0    Addr: 1     
:0X975  e681                    MOVA            HRAM_0X81
:0X976  c181                    POP
:0X977  c189                    RETIE

                                END
