gplink-1.1.0
Copyright (c) 1998-2005 gputils project
Listing File Generated: 6-6-2016  10:42:33
 
 
Address  Value    Disassembly              Source
-------  -----    -----------              ------
                                           ;--------------------------------------------------------
                                           ; File Created by ChiponCC : aolisn inc.
                                           ; Version 3.0.4#6752 (Nov 19 2015 16:48:50) (MSVC)
                                           ; This file was generated Mon Jun 06 10:25:31 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../W_BEE.c"
                                           	.list	p=KF8TS2408
                                           	.radix dec
                                           	.include "KF8TS2408.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8TS2402 
                                           ;       Microcontroller
                                           ; 
                                           ;       Copyright 2012-2013 ChipON, All rights reserved
                                           ;************************************************************ 
                                            
                                           IDLR              .EQU                0x00
                                           T0                .EQU                0x01
                                           PCL               .EQU                0x02
                                           PSW               .EQU                0x03
                                           IR                .EQU                0x04
                                           P0                .EQU                0x05
                                           P2                .EQU                0x06
                                           P1                .EQU                0x07
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           EIF2              .EQU                0x0D
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           CTCTL1            .EQU                0x17
                                           CM1CTL            .EQU                0x19
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           IP2               .EQU                0x24
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           VRECAL2           .EQU                0x2A
                                           EIE1              .EQU                0x2C
                                           EIE2              .EQU                0x2D
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR               .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           BDATAH            .EQU                0x38
                                           BDATAL            .EQU                0x39
                                           BADDRH            .EQU                0x3A
                                           BADDRL            .EQU                0x3B
                                           EECTL1            .EQU                0x3C
                                           EECTL2            .EQU                0x3D
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           T3L               .EQU                0x4F
                                           CTCTL             .EQU                0x53
                                           T3H               .EQU                0x5F
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           RP0                .EQU                5
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _RP0               .EQU                5
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P15                .EQU                5
                                           P14                .EQU                4
                                           P13                .EQU                3
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _P15               .EQU                5
                                           _P14               .EQU                4
                                           _P13               .EQU                3
                                           _P12               .EQU                2
                                           _P11               .EQU                1
                                           _P10               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;EIF2 Bits------------------------------------
                                           CTIF               .EQU                7
                                           _CTIF              .EQU                7
                                           
                                           ;T1CTL Bits-----------------------------------
                                           T1GC               .EQU                6
                                           T1CKS1             .EQU                5
                                           T1CKS0             .EQU                4
                                           T1SY               .EQU                2
                                           T1CS               .EQU                1
                                           T1ON               .EQU                0
                                           _T1GC              .EQU                6
                                           _T1CKS1            .EQU                5
                                           _T1CKS0            .EQU                4
                                           _T1SY              .EQU                2
                                           _T1CS              .EQU                1
                                           _T1ON              .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;CTCTL1 Bits----------------------------------
                                           CTCLKSEL1          .EQU                7
                                           CTCLKSEL0          .EQU                6
                                           CTVREFSEL1         .EQU                5
                                           CTVREFSEL0         .EQU                4
                                           _CTCLKSEL1         .EQU                7
                                           _CTCLKSEL0         .EQU                6
                                           _CTVREFSEL1        .EQU                5
                                           _CTVREFSEL0        .EQU                4
                                           
                                           ;CM1CTL Bits----------------------------------
                                           C1EN               .EQU                0
                                           _C1EN              .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;IP2 Bits-------------------------------------
                                           PCT                .EQU                7
                                           _PCT               .EQU                7
                                           
                                           ;TR0 Bits-------------------------------------
                                           TR05               .EQU                5
                                           TR04               .EQU                4
                                           TR03               .EQU                3
                                           TR02               .EQU                2
                                           TR01               .EQU                1
                                           TR00               .EQU                0
                                           _TR05              .EQU                5
                                           _TR04              .EQU                4
                                           _TR03              .EQU                3
                                           _TR02              .EQU                2
                                           _TR01              .EQU                1
                                           _TR00              .EQU                0
                                           
                                           ;TR2 Bits-------------------------------------
                                           TR27               .EQU                7
                                           TR26               .EQU                6
                                           TR25               .EQU                5
                                           TR24               .EQU                4
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR15               .EQU                5
                                           TR14               .EQU                4
                                           TR13               .EQU                3
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR15              .EQU                5
                                           _TR14              .EQU                4
                                           _TR13              .EQU                3
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T2IE               .EQU                1
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T2IE              .EQU                1
                                           _T1IE              .EQU                0
                                           
                                           ;EIE2 Bits------------------------------------
                                           CTIE               .EQU                7
                                           _CTIE              .EQU                7
                                           
                                           ;PCTL Bits------------------------------------
                                           SLVREN             .EQU                4
                                           IPEN               .EQU                3
                                           SWDTEN             .EQU                2
                                           POR                .EQU                1
                                           LVR                .EQU                0
                                           _SLVREN            .EQU                4
                                           _IPEN              .EQU                3
                                           _SWDTEN            .EQU                2
                                           _POR               .EQU                1
                                           _LVR               .EQU                0
                                           
                                           ;OSCCTL Bits----------------------------------
                                           CKOEN              .EQU                7
                                           IRCS2              .EQU                6
                                           IRCS1              .EQU                5
                                           IRCS0              .EQU                4
                                           _CKOEN             .EQU                7
                                           _IRCS2             .EQU                6
                                           _IRCS1             .EQU                5
                                           _IRCS0             .EQU                4
                                           
                                           ;ANSEL Bits-----------------------------------
                                           ANS7               .EQU                7
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS7              .EQU                7
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR Bits-------------------------------------
                                           PUR5               .EQU                5
                                           PUR4               .EQU                4
                                           PUR2               .EQU                2
                                           PUR1               .EQU                1
                                           PUR0               .EQU                0
                                           _PUR5              .EQU                5
                                           _PUR4              .EQU                4
                                           _PUR2              .EQU                2
                                           _PUR1              .EQU                1
                                           _PUR0              .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCCALIEN          .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM1             .EQU                1
                                           ADCIM0             .EQU                0
                                           _ADCCALIEN         .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM1            .EQU                1
                                           _ADCIM0            .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           P0LR3              .EQU                3
                                           P0LR2              .EQU                2
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR3             .EQU                3
                                           _P0LR2             .EQU                2
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR5              .EQU                5
                                           P1LR4              .EQU                4
                                           P1LR3              .EQU                3
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR5             .EQU                5
                                           _P1LR4             .EQU                4
                                           _P1LR3             .EQU                3
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                           
                                           ;CTCTL Bits-----------------------------------
                                           CTEN               .EQU                7
                                           CTSTART            .EQU                6
                                           CTCMS              .EQU                4
                                           CTCHSEL3           .EQU                3
                                           CTCHSEL2           .EQU                2
                                           CTCHSEL1           .EQU                1
                                           CTCHSEL0           .EQU                0
                                           _CTEN              .EQU                7
                                           _CTSTART           .EQU                6
                                           _CTCMS             .EQU                4
                                           _CTCHSEL3          .EQU                3
                                           _CTCHSEL2          .EQU                2
                                           _CTCHSEL1          .EQU                1
                                           _CTCHSEL0          .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; external declarations
                                           ;--------------------------------------------------------
                                           	.extern	_init_mcu
                                           	.extern	_delay_ms
                                           	.extern	_delay_us
                                           	.extern	_PSW_bits
                                           	.extern	_P0_bits
                                           	.extern	_P2_bits
                                           	.extern	_P1_bits
                                           	.extern	_INTCTL_bits
                                           	.extern	_EIF1_bits
                                           	.extern	_EIF2_bits
                                           	.extern	_T1CTL_bits
                                           	.extern	_PWMCTL_bits
                                           	.extern	_CTCTL1_bits
                                           	.extern	_CM1CTL_bits
                                           	.extern	_ANSEH_bits
                                           	.extern	_ADCCTL0_bits
                                           	.extern	_OPTR_bits
                                           	.extern	_IP0_bits
                                           	.extern	_IP1_bits
                                           	.extern	_IP2_bits
                                           	.extern	_TR0_bits
                                           	.extern	_TR2_bits
                                           	.extern	_TR1_bits
                                           	.extern	_EIE1_bits
                                           	.extern	_EIE2_bits
                                           	.extern	_PCTL_bits
                                           	.extern	_OSCCTL_bits
                                           	.extern	_ANSEL_bits
                                           	.extern	_PUR_bits
                                           	.extern	_IOCL_bits
                                           	.extern	_ADCCTL1_bits
                                           	.extern	_P0LR_bits
                                           	.extern	_P2LR_bits
                                           	.extern	_P1LR_bits
                                           	.extern	_CTCTL_bits
                                           	.extern	_KF8_BIT_VALUE1
                                           	.extern	_KF8_BIT_VALUE2
                                           	.extern	_IDLR
                                           	.extern	_T0
                                           	.extern	_PCL
                                           	.extern	_PSW
                                           	.extern	_IR
                                           	.extern	_P0
                                           	.extern	_P2
                                           	.extern	_P1
                                           	.extern	_PCH
                                           	.extern	_INTCTL
                                           	.extern	_EIF1
                                           	.extern	_EIF2
                                           	.extern	_T1L
                                           	.extern	_T1H
                                           	.extern	_T1CTL
                                           	.extern	_PWM1L
                                           	.extern	_PWM1H
                                           	.extern	_PWMCTL
                                           	.extern	_PP1
                                           	.extern	_CTCTL1
                                           	.extern	_CM1CTL
                                           	.extern	_VRECAL1
                                           	.extern	_ANSEH
                                           	.extern	_ADCDATAH
                                           	.extern	_ADCCTL0
                                           	.extern	_OPTR
                                           	.extern	_IP0
                                           	.extern	_IP1
                                           	.extern	_IP2
                                           	.extern	_TR0
                                           	.extern	_TR2
                                           	.extern	_TR1
                                           	.extern	_VRECAL2
                                           	.extern	_EIE1
                                           	.extern	_EIE2
                                           	.extern	_PCTL
                                           	.extern	_OSCCTL
                                           	.extern	_OSCCAL0
                                           	.extern	_ANSEL
                                           	.extern	_PP2
                                           	.extern	_PWM2L
                                           	.extern	_PWM2H
                                           	.extern	_PUR
                                           	.extern	_IOCL
                                           	.extern	_OSCCAL1
                                           	.extern	_BDATAH
                                           	.extern	_BDATAL
                                           	.extern	_BADDRH
                                           	.extern	_BADDRL
                                           	.extern	_EECTL1
                                           	.extern	_EECTL2
                                           	.extern	_ADCDATAL
                                           	.extern	_ADCCTL1
                                           	.extern	_P0LR
                                           	.extern	_P2LR
                                           	.extern	_P1LR
                                           	.extern	_OSCCAL2
                                           	.extern	_OSCCAL3
                                           	.extern	_T3L
                                           	.extern	_CTCTL
                                           	.extern	_T3H
                                           
                                           	.extern I0R1
                                           	.extern I0PCH
                                           	.extern I1R1
                                           	.extern I1PCH
                                           	.extern STK11
                                           	.extern STK10
                                           	.extern STK09
                                           	.extern STK08
                                           	.extern STK07
                                           	.extern STK06
                                           	.extern STK05
                                           	.extern STK04
                                           	.extern STK03
                                           	.extern STK02
                                           	.extern STK01
                                           	.extern STK00
                                           ;--------------------------------------------------------
                                           ; global declarations
                                           ;--------------------------------------------------------
                                           	.global	_BEE_WRITE_ONE
                                           	.global	_BEE_WRITE_FUN
                                           	.global	_BEE_READ_FUN
                                           	.global	_BEE_READ_ONE
                                           	.global	_BEE_BUFFER
                                           	.global	_BEE_READ_BUF
                                           
                                           ;--------------------------------------------------------
                                           ; global definitions
                                           ;--------------------------------------------------------
                                           UD_W_BEE_0	.udata
                                           _BEE_BUFFER	.res	32
                                           
                                           UD_W_BEE_1	.udata
                                           _BEE_READ_BUF	.res	2
                                           
                                           ;--------------------------------------------------------
                                           ; absolute symbol definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; compiler-defined variables
                                           ;--------------------------------------------------------
                                           UDL_W_BEE_0	.udata
                                           r0x1030	.res	1
                                           UDL_W_BEE_1	.udata
                                           r0x1031	.res	1
                                           UDL_W_BEE_2	.udata
                                           r0x1023	.res	1
                                           UDL_W_BEE_3	.udata
                                           r0x1022	.res	1
                                           UDL_W_BEE_4	.udata
                                           r0x1024	.res	1
                                           UDL_W_BEE_5	.udata
                                           r0x1028	.res	1
                                           UDL_W_BEE_6	.udata
                                           r0x1027	.res	1
                                           UDL_W_BEE_7	.udata
                                           r0x102A	.res	1
                                           UDL_W_BEE_8	.udata
                                           r0x1029	.res	1
                                           UDL_W_BEE_9	.udata
                                           r0x102B	.res	1
                                           UDL_W_BEE_10	.udata
                                           r0x102C	.res	1
                                           UDL_W_BEE_11	.udata
                                           r0x102D	.res	1
                                           ;--------------------------------------------------------
                                           ; initialized data
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; overlayable items in internal ram 
                                           ;--------------------------------------------------------
                                           ;	.udata_ovr
                                           
                                           
                                           func._BEE_WRITE_ONE	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _BEE_WRITE_ONE	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   _BEE_READ_FUN
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_READ_FUN
                                           ;   _BEE_WRITE_FUN
                                           ;11 compiler assigned registers:
                                           ;   r0x1027
                                           ;   STK00
                                           ;   r0x1028
                                           ;   STK01
                                           ;   r0x1029
                                           ;   STK02
                                           ;   r0x102A
                                           ;   r0x102B
                                           ;   r0x102C
                                           ;   r0x102D
                                           ;   r0x102E
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _BEE_WRITE_ONE	;Function start
                                           ; 2 exit points
                                           ;	op : RECEIVE
0000da   6503     CLR	0x3, 5               	BANKSEL	r0x102C
0000db   51bc     MOV	0xbc, R0             	MOV	r0x102C, R0
                                           ;	.line	399; "../W_BEE.c"	void BEE_WRITE_ONE(unsigned int address,unsigned int value)
                                           	BANKSEL	r0x1027
0000dc   51b8     MOV	0xb8, R0             	MOV	r0x1027, R0
                                           	BANKSEL	STK00
0000dd   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1028
0000de   51b7     MOV	0xb7, R0             	MOV	r0x1028, R0
                                           ;	op : RECEIVE
                                           	BANKSEL	STK01
0000df   0e8e     MOVZ	R0, 0x8e            	MOVZ	R0, STK01
                                           	BANKSEL	r0x1029
0000e0   51ba     MOV	0xba, R0             	MOV	r0x1029, R0
                                           	BANKSEL	STK02
0000e1   0e8d     MOVZ	R0, 0x8d            	MOVZ	R0, STK02
                                           	BANKSEL	r0x102A
0000e2   51b9     MOV	0xb9, R0             	MOV	r0x102A, R0
                                           ;	op : BITWISEAND
                                           ;	.line	402; "../W_BEE.c"	BEE_READ_FUN(address&0xFFF0,BEE_BUFFER_MAX);
0000e3   98f0     MOV	R0, #0xf0            	MOV	R0,# 0xf0
                                           	BANKSEL	r0x1028
0000e4   28b7     AND	R0, 0xb7             	AND	R0, r0x1028
                                           	BANKSEL	r0x102B
0000e5   51bb     MOV	0xbb, R0             	MOV	r0x102B, R0
                                           ;;106	MOVZ	R0, r0x1027
                                           ;	op : SEND
                                           ;	op : SEND
                                           ;	op : CALL
0000e6   9810     MOV	R0, #0x10            	MOV	R0,# 0x10
                                           	BANKSEL	STK01
0000e7   518e     MOV	0x8e, R0             	MOV	STK01, R0
                                           	BANKSEL	r0x102B
0000e8   0ebb     MOVZ	R0, 0xbb            	MOVZ	R0, r0x102B
                                           	BANKSEL	STK00
0000e9   518f     MOV	0x8f, R0             	MOV	STK00, R0
                                           	BANKSEL	r0x102C
0000ea   0ebc     MOVZ	R0, 0xbc            	MOVZ	R0, r0x102C
                                           	PAGESEL	_BEE_READ_FUN
0000eb   d0a5     CALL	#0xa5               	CALL	_BEE_READ_FUN
                                           	PAGESEL	$
                                           ;	op : BITWISEAND
                                           ;	.line	404; "../W_BEE.c"	BEE_BUFFER[address&0xF] = value;
0000ec   980f     MOV	R0, #0xf             	MOV	R0,# 0x0f
0000ed   6503     CLR	0x3, 5               	BANKSEL	r0x1028
0000ee   28b7     AND	R0, 0xb7             	AND	R0, r0x1028
                                           	BANKSEL	r0x102B
0000ef   51bb     MOV	0xbb, R0             	MOV	r0x102B, R0
                                           	BANKSEL	r0x102C
0000f0   03bc     CLR	0xbc                 	CLR	r0x102C
                                           ;	op : LEFT_OP
0000f1   6003     CLR	0x3, 0               	CLR	PSW, 0
                                           	BANKSEL	r0x102B
0000f2   12bb     RLCR	0xbb                	RLCR	r0x102B
                                           	BANKSEL	r0x102D
0000f3   51bd     MOV	0xbd, R0             	MOV	r0x102D, R0
                                           	BANKSEL	r0x102C
0000f4   12bc     RLCR	0xbc                	RLCR	r0x102C
                                           ;;1	MOV	r0x102E, R0
                                           ;	op : +
                                           	BANKSEL	r0x102D
0000f5   50bd     MOV	R0, 0xbd             	MOV	R0, r0x102D
0000f6   8090     ADD	R0, #0x90            	ADD	R0,# (_BEE_BUFFER + 0)
                                           	BANKSEL	r0x102B
0000f7   51bb     MOV	0xbb, R0             	MOV	r0x102B, R0
                                           ;	op : =
                                           	BANKSEL	r0x102A
0000f8   0eb9     MOVZ	R0, 0xb9            	MOVZ	R0, r0x102A
                                           	BANKSEL	r0x102B
0000f9   52bb     MOV	R1, 0xbb             	MOV	R1, r0x102B
                                           	BANKSEL	_BEE_BUFFER
0000fa   f741     ST	[R1], R0              	ST	[R1], R0
0000fb   ff11     INC	R1                   	INC	R1
                                           	BANKSEL	r0x1029
0000fc   0eba     MOVZ	R0, 0xba            	MOVZ	R0, r0x1029
                                           	BANKSEL	_BEE_BUFFER
0000fd   f741     ST	[R1], R0              	ST	[R1], R0
                                           ;	op : BITWISEAND
                                           ;	.line	406; "../W_BEE.c"	BEE_WRITE_FUN(address&0xFFF0,BEE_BUFFER_MAX);
0000fe   98f0     MOV	R0, #0xf0            	MOV	R0,# 0xf0
                                           	BANKSEL	r0x1028
0000ff   29b7     AND	0xb7, R0             	AND	r0x1028, R0
                                           ;	op : SEND
                                           ;	op : SEND
                                           ;	op : CALL
000100   9810     MOV	R0, #0x10            	MOV	R0,# 0x10
                                           	BANKSEL	STK01
000101   518e     MOV	0x8e, R0             	MOV	STK01, R0
                                           	BANKSEL	r0x1028
000102   0eb7     MOVZ	R0, 0xb7            	MOVZ	R0, r0x1028
                                           	BANKSEL	STK00
000103   518f     MOV	0x8f, R0             	MOV	STK00, R0
                                           	BANKSEL	r0x1027
000104   0eb8     MOVZ	R0, 0xb8            	MOVZ	R0, r0x1027
                                           	PAGESEL	_BEE_WRITE_FUN
000105   d06b     CALL	#0x6b               	CALL	_BEE_WRITE_FUN
                                           	PAGESEL	$
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
000106   0008     CRET                     	CRET	
                                           ; exit point of _BEE_WRITE_ONE
                                           
                                           
                                           
                                           func._BEE_WRITE_FUN	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _BEE_WRITE_FUN	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;7 compiler assigned registers:
                                           ;   r0x1022
                                           ;   STK00
                                           ;   r0x1023
                                           ;   STK01
                                           ;   r0x1024
                                           ;   r0x1025
                                           ;   r0x1026
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _BEE_WRITE_FUN	;Function start
                                           ; 2 exit points
                                           ;	op : RECEIVE
                                           ;	.line	254; "../W_BEE.c"	void BEE_WRITE_FUN(unsigned int address,unsigned char length)
00006b   6503     CLR	0x3, 5               	BANKSEL	r0x1022
00006c   51b5     MOV	0xb5, R0             	MOV	r0x1022, R0
                                           	BANKSEL	STK00
00006d   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1023
00006e   51b4     MOV	0xb4, R0             	MOV	r0x1023, R0
                                           ;	op : RECEIVE
                                           	BANKSEL	STK01
00006f   0e8e     MOVZ	R0, 0x8e            	MOVZ	R0, STK01
                                           	BANKSEL	r0x1024
000070   51b6     MOV	0xb6, R0             	MOV	r0x1024, R0
                                           ;	op : RIGHT_OP
                                           ;;105	MOVZ	R0, r0x1022
                                           ;;103	MOV	r0x1025, R0
                                           ;;1	CLR	r0x1026
                                           ;	op : CAST
                                           ;;104	MOVZ	R0, r0x1025
                                           ;	.line	258; "../W_BEE.c"	BADDRH=(unsigned char) (address>>8);
                                           	BANKSEL	r0x1022
000071   0eb5     MOVZ	R0, 0xb5            	MOVZ	R0, r0x1022
000072   513a     MOV	0x3a, R0             	MOV	_BADDRH, R0
                                           ;	op : CAST
                                           ;	.line	259; "../W_BEE.c"	BADDRL=address;
                                           	BANKSEL	r0x1023
000073   0eb4     MOVZ	R0, 0xb4            	MOVZ	R0, r0x1023
000074   513b     MOV	0x3b, R0             	MOV	_BADDRL, R0
                                           ;	op : INLINEASM
                                           	;
                                           	BANKSEL _INTCTL
000075   520b     MOV	R1, 0xb              	MOV R1,_INTCTL
                                           	;
000076   670b     CLR	0xb, 7               	CLR _INTCTL,_AIE
000077   770b     JNB	0xb, 7               	JNB _INTCTL,_AIE
000078   c076     JMP	#0x76                	JMP $-2
                                           	;
000079   9830     MOV	R0, #0x30            	MOV R0,#0x30
00007a   542f     MOV	R2, 0x2f             	MOV R2,_OSCCTL
00007b   512f     MOV	0x2f, R0             	MOV _OSCCTL,R0
                                           	;
00007c   9b90     MOV	R3, #0x90            	MOV R3,#_BEE_BUFFER
                                           	
                                           ;	op : =
                                           ;	.line	277; "../W_BEE.c"	while(length--)		// 仅使用R0，不改变R1
                                           	BANKSEL	r0x1024
00007d   0eb6     MOVZ	R0, 0xb6            	MOVZ	R0, r0x1024
                                           	BANKSEL	r0x1023
00007e   51b4     MOV	0xb4, R0             	MOV	r0x1023, R0
                                           ;	op : LABEL
                                           ;	op : =
                                           _00011_DS_
                                           	BANKSEL	r0x1023
00007f   0eb4     MOVZ	R0, 0xb4            	MOVZ	R0, r0x1023
                                           	BANKSEL	r0x1022
000080   51b5     MOV	0xb5, R0             	MOV	r0x1022, R0
                                           ;	op : -
                                           	BANKSEL	r0x1023
000081   07b4     DEC	0xb4                 	DEC	r0x1023
                                           ;	op : IFX
000082   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	BANKSEL	r0x1022
000083   30b5     ORL	R0, 0xb5             	ORL	R0, r0x1022
000084   7203     JNB	0x3, 2               	JNB	PSW, 2
000085   c0a1     JMP	#0xa1                	JMP	_00013_DS_
                                           ;	op : INLINEASM
                                           	;
                                           	BANKSEL _BEE_BUFFER
000086   f718     LD	R0, [R3]              	LD R0,[R3]
000087   5139     MOV	0x39, R0             	MOV BDATAL,R0
000088   ff13     INC	R3                   	INC R3
000089   f718     LD	R0, [R3]              	LD R0,[R3]
00008a   5138     MOV	0x38, R0             	MOV BDATAH,R0
00008b   ff13     INC	R3                   	INC R3
                                           	;
00008c   9d84     MOV	R5, #0x84            	MOV R5 ,#0x84
00008d   5b3c     MOV	0x3c, R5             	MOV _EECTL1,R5
00008e   9d69     MOV	R5, #0x69            	MOV R5,#0x69
00008f   5b3d     MOV	0x3d, R5             	MOV _EECTL2,R5
000090   9d96     MOV	R5, #0x96            	MOV R5,#0x96
000091   5b3d     MOV	0x3d, R5             	MOV _EECTL2,R5
000092   693c     SET	0x3c, 1              	SET _EECTL1 , 1 ;
000093   ffff     NOPZ                     	NOPZ
000094   ffff     NOPZ                     	NOPZ
000095   ffff     NOPZ                     	NOPZ
000096   ffff     NOPZ                     	NOPZ
000097   ffff     NOPZ                     	NOPZ
000098   ffff     NOPZ                     	NOPZ ;
000099   ffff     NOPZ                     	NOPZ
00009a   ffff     NOPZ                     	NOPZ
00009b   ffff     NOPZ                     	NOPZ
00009c   ffff     NOPZ                     	NOPZ
00009d   9d80     MOV	R5, #0x80            	MOV R5,#0X80
00009e   5b3c     MOV	0x3c, R5             	MOV EECTL1,R5
                                           	;
                                           	BANKSEL _BADDRL
00009f   0b3b     INC	0x3b                 	INC _BADDRL
                                           	
                                           ;	op : GOTO
0000a0   c07f     JMP	#0x7f                	JMP	_00011_DS_
                                           ;	op : LABEL
                                           ;	op : INLINEASM
                                           _00013_DS_
                                           	;
0000a1   552f     MOV	0x2f, R2             	MOV _OSCCTL,R2
0000a2   89c0     AND	R1, #0xc0            	AND R1,#0xC0 ;
0000a3   330b     ORL	0xb, R1              	ORL _INTCTL,R1
                                           	
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
0000a4   0008     CRET                     	CRET	
                                           ; exit point of _BEE_WRITE_FUN
                                           
                                           
                                           
                                           func._BEE_READ_FUN	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _BEE_READ_FUN	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;7 compiler assigned registers:
                                           ;   r0x1022
                                           ;   STK00
                                           ;   r0x1023
                                           ;   STK01
                                           ;   r0x1024
                                           ;   r0x1025
                                           ;   r0x1026
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _BEE_READ_FUN	;Function start
                                           ; 2 exit points
                                           ;	op : RECEIVE
                                           ;	.line	120; "../W_BEE.c"	void BEE_READ_FUN(unsigned int address,unsigned char length)
0000a5   6503     CLR	0x3, 5               	BANKSEL	r0x1022
0000a6   51b5     MOV	0xb5, R0             	MOV	r0x1022, R0
                                           	BANKSEL	STK00
0000a7   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1023
0000a8   51b4     MOV	0xb4, R0             	MOV	r0x1023, R0
                                           ;	op : RECEIVE
                                           	BANKSEL	STK01
0000a9   0e8e     MOVZ	R0, 0x8e            	MOVZ	R0, STK01
                                           	BANKSEL	r0x1024
0000aa   51b6     MOV	0xb6, R0             	MOV	r0x1024, R0
                                           ;	op : RIGHT_OP
                                           ;;102	MOVZ	R0, r0x1022
                                           ;;100	MOV	r0x1025, R0
                                           ;;1	CLR	r0x1026
                                           ;	op : CAST
                                           ;;101	MOVZ	R0, r0x1025
                                           ;	.line	124; "../W_BEE.c"	BADDRH=(unsigned char) (address>>8);
                                           	BANKSEL	r0x1022
0000ab   0eb5     MOVZ	R0, 0xb5            	MOVZ	R0, r0x1022
0000ac   513a     MOV	0x3a, R0             	MOV	_BADDRH, R0
                                           ;	op : CAST
                                           ;	.line	125; "../W_BEE.c"	BADDRL=address;
                                           	BANKSEL	r0x1023
0000ad   0eb4     MOVZ	R0, 0xb4            	MOVZ	R0, r0x1023
0000ae   513b     MOV	0x3b, R0             	MOV	_BADDRL, R0
                                           ;	op : INLINEASM
                                           	;
                                           	BANKSEL _INTCTL
0000af   520b     MOV	R1, 0xb              	MOV R1,_INTCTL
                                           	;
0000b0   670b     CLR	0xb, 7               	CLR _INTCTL,_AIE
0000b1   770b     JNB	0xb, 7               	JNB _INTCTL,_AIE
0000b2   c0b0     JMP	#0xb0                	JMP $-2
                                           	;
0000b3   9830     MOV	R0, #0x30            	MOV R0,#0x30
0000b4   542f     MOV	R2, 0x2f             	MOV R2,_OSCCTL
0000b5   512f     MOV	0x2f, R0             	MOV _OSCCTL,R0
                                           	;
0000b6   9b90     MOV	R3, #0x90            	MOV R3,#_BEE_BUFFER
                                           	
                                           ;	op : =
                                           ;	.line	143; "../W_BEE.c"	while(length--)	// 仅使用R0，不改变R1
                                           	BANKSEL	r0x1024
0000b7   0eb6     MOVZ	R0, 0xb6            	MOVZ	R0, r0x1024
                                           	BANKSEL	r0x1023
0000b8   51b4     MOV	0xb4, R0             	MOV	r0x1023, R0
                                           ;	op : LABEL
                                           ;	op : =
                                           _00003_DS_
                                           	BANKSEL	r0x1023
0000b9   0eb4     MOVZ	R0, 0xb4            	MOVZ	R0, r0x1023
                                           	BANKSEL	r0x1022
0000ba   51b5     MOV	0xb5, R0             	MOV	r0x1022, R0
                                           ;	op : -
                                           	BANKSEL	r0x1023
0000bb   07b4     DEC	0xb4                 	DEC	r0x1023
                                           ;	op : IFX
0000bc   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	BANKSEL	r0x1022
0000bd   30b5     ORL	R0, 0xb5             	ORL	R0, r0x1022
0000be   7203     JNB	0x3, 2               	JNB	PSW, 2
0000bf   c0d6     JMP	#0xd6                	JMP	_00005_DS_
                                           ;	op : INLINEASM
                                           	;
                                           	BANKSEL _EECTL1
0000c0   9d81     MOV	R5, #0x81            	MOV R5,#0x81
0000c1   5b3c     MOV	0x3c, R5             	MOV _EECTL1,R5
0000c2   ffff     NOPZ                     	NOPZ
0000c3   ffff     NOPZ                     	NOPZ
0000c4   ffff     NOPZ                     	NOPZ
0000c5   ffff     NOPZ                     	NOPZ
0000c6   ffff     NOPZ                     	NOPZ
0000c7   ffff     NOPZ                     	NOPZ
0000c8   ffff     NOPZ                     	NOPZ
0000c9   ffff     NOPZ                     	NOPZ
0000ca   ffff     NOPZ                     	NOPZ
0000cb   ffff     NOPZ                     	NOPZ
                                           	;
                                           	BANKSEL _BEE_BUFFER
0000cc   5039     MOV	R0, 0x39             	MOV R0,BDATAL
0000cd   f743     ST	[R3], R0              	ST [R3],R0
0000ce   ff13     INC	R3                   	INC R3
0000cf   5038     MOV	R0, 0x38             	MOV R0,BDATAH
0000d0   f743     ST	[R3], R0              	ST [R3],R0
0000d1   ff13     INC	R3                   	INC R3
                                           	;
                                           	BANKSEL _BADDRL
0000d2   0b3b     INC	0x3b                 	INC _BADDRL
0000d3   7203     JNB	0x3, 2               	JNB _PSW,_Z
0000d4   0b3a     INC	0x3a                 	INC _BADDRH
                                           	
                                           ;	op : GOTO
0000d5   c0b9     JMP	#0xb9                	JMP	_00003_DS_
                                           ;	op : LABEL
                                           ;	op : INLINEASM
                                           _00005_DS_
                                           	;
0000d6   552f     MOV	0x2f, R2             	MOV _OSCCTL,R2
0000d7   89c0     AND	R1, #0xc0            	AND R1,#0xC0 ;
0000d8   330b     ORL	0xb, R1              	ORL _INTCTL,R1
                                           	
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
0000d9   0008     CRET                     	CRET	
                                           ; exit point of _BEE_READ_FUN
                                           
                                           
                                           
                                           func._BEE_READ_ONE	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _BEE_READ_ONE	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;5 compiler assigned registers:
                                           ;   r0x102F
                                           ;   STK00
                                           ;   r0x1030
                                           ;   r0x1031
                                           ;   r0x1032
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _BEE_READ_ONE	;Function start
                                           ; 2 exit points
                                           ;	op : RECEIVE
000107   6503     CLR	0x3, 5               	BANKSEL	r0x1031
000108   51b3     MOV	0xb3, R0             	MOV	r0x1031, R0
                                           ;;1	MOV	r0x102F, R0
                                           ;	.line	20; "../W_BEE.c"	unsigned int BEE_READ_ONE(unsigned int address)
                                           	BANKSEL	STK00
000109   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1030
00010a   51b2     MOV	0xb2, R0             	MOV	r0x1030, R0
                                           ;	op : RIGHT_OP
                                           ;;99	MOVZ	R0, r0x102F
                                           ;;1	CLR	r0x1032
                                           ;	op : CAST
                                           ;	.line	26; "../W_BEE.c"	BADDRH=(unsigned char)(address>>8);
                                           	BANKSEL	r0x1031
00010b   0eb3     MOVZ	R0, 0xb3            	MOVZ	R0, r0x1031
00010c   513a     MOV	0x3a, R0             	MOV	_BADDRH, R0
                                           ;	op : CAST
                                           ;	.line	27; "../W_BEE.c"	BADDRL=(unsigned char)address;
                                           	BANKSEL	r0x1030
00010d   0eb2     MOVZ	R0, 0xb2            	MOVZ	R0, r0x1030
00010e   513b     MOV	0x3b, R0             	MOV	_BADDRL, R0
                                           ;	op : INLINEASM
                                           	;
                                           	BANKSEL _INTCTL
00010f   520b     MOV	R1, 0xb              	MOV R1,_INTCTL
                                           	;
000110   670b     CLR	0xb, 7               	CLR _INTCTL,_AIE
000111   770b     JNB	0xb, 7               	JNB _INTCTL,_AIE
000112   c110     JMP	#0x110               	JMP $-2
                                           	;
000113   9830     MOV	R0, #0x30            	MOV R0,#0x30
000114   542f     MOV	R2, 0x2f             	MOV R2,_OSCCTL
000115   512f     MOV	0x2f, R0             	MOV _OSCCTL,R0
                                           	BANKSEL _EECTL1
000116   9d81     MOV	R5, #0x81            	MOV R5,#0x81
000117   5b3c     MOV	0x3c, R5             	MOV _EECTL1,R5
000118   ffff     NOPZ                     	NOPZ
000119   ffff     NOPZ                     	NOPZ
00011a   ffff     NOPZ                     	NOPZ
00011b   ffff     NOPZ                     	NOPZ
00011c   ffff     NOPZ                     	NOPZ
00011d   ffff     NOPZ                     	NOPZ
00011e   ffff     NOPZ                     	NOPZ
00011f   ffff     NOPZ                     	NOPZ
000120   ffff     NOPZ                     	NOPZ
000121   ffff     NOPZ                     	NOPZ
000122   552f     MOV	0x2f, R2             	MOV _OSCCTL,R2
000123   89c0     AND	R1, #0xc0            	AND R1,#0xC0 ;
000124   330b     ORL	0xb, R1              	ORL INTCTL,R1
                                           	BANKSEL _BEE_READ_BUF
000125   5039     MOV	R0, 0x39             	MOV R0,BDATAL
000126   51b0     MOV	0xb0, R0             	MOV (_BEE_READ_BUF),R0
000127   5038     MOV	R0, 0x38             	MOV R0,BDATAH
000128   51b1     MOV	0xb1, R0             	MOV (_BEE_READ_BUF+1),R0
                                           	
                                           ;	op : RETURN
                                           ;	.line	65; "../W_BEE.c"	return 	BEE_READ_BUF;
                                           	BANKSEL	_BEE_READ_BUF
000129   0eb0     MOVZ	R0, 0xb0            	MOVZ	R0, _BEE_READ_BUF
                                           	BANKSEL	STK00
00012a   518f     MOV	0x8f, R0             	MOV	STK00, R0
                                           	BANKSEL	_BEE_READ_BUF
00012b   0eb1     MOVZ	R0, 0xb1            	MOVZ	R0, (_BEE_READ_BUF + 1)
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
00012c   0008     CRET                     	CRET	
                                           ; exit point of _BEE_READ_ONE
                                           
                                           
                                           ;	code size estimation:
                                           ;	   98+   66 =   164 instructions (  460 byte)
                                           
                                           
                                           	.end
                                           ;--------------------------------------------------------
                                           ; File Created by ChiponCC : aolisn inc.
                                           ; Version 3.0.4#6752 (Nov 19 2015 16:48:50) (MSVC)
                                           ; This file was generated Mon Jun 06 10:25:32 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../config_set.c"
                                           	.list	p=KF8TS2408
                                           	.radix dec
                                           	.include "KF8TS2408.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8TS2402 
                                           ;       Microcontroller
                                           ; 
                                           ;       Copyright 2012-2013 ChipON, All rights reserved
                                           ;************************************************************ 
                                            
                                           IDLR              .EQU                0x00
                                           T0                .EQU                0x01
                                           PCL               .EQU                0x02
                                           PSW               .EQU                0x03
                                           IR                .EQU                0x04
                                           P0                .EQU                0x05
                                           P2                .EQU                0x06
                                           P1                .EQU                0x07
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           EIF2              .EQU                0x0D
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           CTCTL1            .EQU                0x17
                                           CM1CTL            .EQU                0x19
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           IP2               .EQU                0x24
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           VRECAL2           .EQU                0x2A
                                           EIE1              .EQU                0x2C
                                           EIE2              .EQU                0x2D
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR               .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           BDATAH            .EQU                0x38
                                           BDATAL            .EQU                0x39
                                           BADDRH            .EQU                0x3A
                                           BADDRL            .EQU                0x3B
                                           EECTL1            .EQU                0x3C
                                           EECTL2            .EQU                0x3D
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           T3L               .EQU                0x4F
                                           CTCTL             .EQU                0x53
                                           T3H               .EQU                0x5F
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           RP0                .EQU                5
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _RP0               .EQU                5
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P15                .EQU                5
                                           P14                .EQU                4
                                           P13                .EQU                3
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _P15               .EQU                5
                                           _P14               .EQU                4
                                           _P13               .EQU                3
                                           _P12               .EQU                2
                                           _P11               .EQU                1
                                           _P10               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;EIF2 Bits------------------------------------
                                           CTIF               .EQU                7
                                           _CTIF              .EQU                7
                                           
                                           ;T1CTL Bits-----------------------------------
                                           T1GC               .EQU                6
                                           T1CKS1             .EQU                5
                                           T1CKS0             .EQU                4
                                           T1SY               .EQU                2
                                           T1CS               .EQU                1
                                           T1ON               .EQU                0
                                           _T1GC              .EQU                6
                                           _T1CKS1            .EQU                5
                                           _T1CKS0            .EQU                4
                                           _T1SY              .EQU                2
                                           _T1CS              .EQU                1
                                           _T1ON              .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;CTCTL1 Bits----------------------------------
                                           CTCLKSEL1          .EQU                7
                                           CTCLKSEL0          .EQU                6
                                           CTVREFSEL1         .EQU                5
                                           CTVREFSEL0         .EQU                4
                                           _CTCLKSEL1         .EQU                7
                                           _CTCLKSEL0         .EQU                6
                                           _CTVREFSEL1        .EQU                5
                                           _CTVREFSEL0        .EQU                4
                                           
                                           ;CM1CTL Bits----------------------------------
                                           C1EN               .EQU                0
                                           _C1EN              .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;IP2 Bits-------------------------------------
                                           PCT                .EQU                7
                                           _PCT               .EQU                7
                                           
                                           ;TR0 Bits-------------------------------------
                                           TR05               .EQU                5
                                           TR04               .EQU                4
                                           TR03               .EQU                3
                                           TR02               .EQU                2
                                           TR01               .EQU                1
                                           TR00               .EQU                0
                                           _TR05              .EQU                5
                                           _TR04              .EQU                4
                                           _TR03              .EQU                3
                                           _TR02              .EQU                2
                                           _TR01              .EQU                1
                                           _TR00              .EQU                0
                                           
                                           ;TR2 Bits-------------------------------------
                                           TR27               .EQU                7
                                           TR26               .EQU                6
                                           TR25               .EQU                5
                                           TR24               .EQU                4
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR15               .EQU                5
                                           TR14               .EQU                4
                                           TR13               .EQU                3
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR15              .EQU                5
                                           _TR14              .EQU                4
                                           _TR13              .EQU                3
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T2IE               .EQU                1
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T2IE              .EQU                1
                                           _T1IE              .EQU                0
                                           
                                           ;EIE2 Bits------------------------------------
                                           CTIE               .EQU                7
                                           _CTIE              .EQU                7
                                           
                                           ;PCTL Bits------------------------------------
                                           SLVREN             .EQU                4
                                           IPEN               .EQU                3
                                           SWDTEN             .EQU                2
                                           POR                .EQU                1
                                           LVR                .EQU                0
                                           _SLVREN            .EQU                4
                                           _IPEN              .EQU                3
                                           _SWDTEN            .EQU                2
                                           _POR               .EQU                1
                                           _LVR               .EQU                0
                                           
                                           ;OSCCTL Bits----------------------------------
                                           CKOEN              .EQU                7
                                           IRCS2              .EQU                6
                                           IRCS1              .EQU                5
                                           IRCS0              .EQU                4
                                           _CKOEN             .EQU                7
                                           _IRCS2             .EQU                6
                                           _IRCS1             .EQU                5
                                           _IRCS0             .EQU                4
                                           
                                           ;ANSEL Bits-----------------------------------
                                           ANS7               .EQU                7
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS7              .EQU                7
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR Bits-------------------------------------
                                           PUR5               .EQU                5
                                           PUR4               .EQU                4
                                           PUR2               .EQU                2
                                           PUR1               .EQU                1
                                           PUR0               .EQU                0
                                           _PUR5              .EQU                5
                                           _PUR4              .EQU                4
                                           _PUR2              .EQU                2
                                           _PUR1              .EQU                1
                                           _PUR0              .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCCALIEN          .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM1             .EQU                1
                                           ADCIM0             .EQU                0
                                           _ADCCALIEN         .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM1            .EQU                1
                                           _ADCIM0            .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           P0LR3              .EQU                3
                                           P0LR2              .EQU                2
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR3             .EQU                3
                                           _P0LR2             .EQU                2
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR5              .EQU                5
                                           P1LR4              .EQU                4
                                           P1LR3              .EQU                3
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR5             .EQU                5
                                           _P1LR4             .EQU                4
                                           _P1LR3             .EQU                3
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                           
                                           ;CTCTL Bits-----------------------------------
                                           CTEN               .EQU                7
                                           CTSTART            .EQU                6
                                           CTCMS              .EQU                4
                                           CTCHSEL3           .EQU                3
                                           CTCHSEL2           .EQU                2
                                           CTCHSEL1           .EQU                1
                                           CTCHSEL0           .EQU                0
                                           _CTEN              .EQU                7
                                           _CTSTART           .EQU                6
                                           _CTCMS             .EQU                4
                                           _CTCHSEL3          .EQU                3
                                           _CTCHSEL2          .EQU                2
                                           _CTCHSEL1          .EQU                1
                                           _CTCHSEL0          .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; config word(s)
                                           ;--------------------------------------------------------
                                           	__config 0x4e0
                                           ;--------------------------------------------------------
                                           ; external declarations
                                           ;--------------------------------------------------------
                                           
                                           	.extern I0R1
                                           	.extern I0PCH
                                           	.extern I1R1
                                           	.extern I1PCH
                                           	.extern STK11
                                           	.extern STK10
                                           	.extern STK09
                                           	.extern STK08
                                           	.extern STK07
                                           	.extern STK06
                                           	.extern STK05
                                           	.extern STK04
                                           	.extern STK03
                                           	.extern STK02
                                           	.extern STK01
                                           	.extern STK00
                                           ;--------------------------------------------------------
                                           ; global declarations
                                           ;--------------------------------------------------------
                                           
                                           ;--------------------------------------------------------
                                           ; global definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; absolute symbol definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; compiler-defined variables
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; initialized data
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; overlayable items in internal ram 
                                           ;--------------------------------------------------------
                                           ;	.udata_ovr
                                           
                                           ;	code size estimation:
                                           ;	    0+    0 =     0 instructions (    0 byte)
                                           
                                           
                                           	.end
                                           ;--------------------------------------------------------
                                           ; File Created by ChiponCC : aolisn inc.
                                           ; Version 3.0.4#6752 (Nov 19 2015 16:48:50) (MSVC)
                                           ; This file was generated Mon Jun 06 10:25:32 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../init_mcu.c"
                                           	.list	p=KF8TS2408
                                           	.radix dec
                                           	.include "KF8TS2408.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8TS2402 
                                           ;       Microcontroller
                                           ; 
                                           ;       Copyright 2012-2013 ChipON, All rights reserved
                                           ;************************************************************ 
                                            
                                           IDLR              .EQU                0x00
                                           T0                .EQU                0x01
                                           PCL               .EQU                0x02
                                           PSW               .EQU                0x03
                                           IR                .EQU                0x04
                                           P0                .EQU                0x05
                                           P2                .EQU                0x06
                                           P1                .EQU                0x07
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           EIF2              .EQU                0x0D
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           CTCTL1            .EQU                0x17
                                           CM1CTL            .EQU                0x19
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           IP2               .EQU                0x24
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           VRECAL2           .EQU                0x2A
                                           EIE1              .EQU                0x2C
                                           EIE2              .EQU                0x2D
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR               .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           BDATAH            .EQU                0x38
                                           BDATAL            .EQU                0x39
                                           BADDRH            .EQU                0x3A
                                           BADDRL            .EQU                0x3B
                                           EECTL1            .EQU                0x3C
                                           EECTL2            .EQU                0x3D
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           T3L               .EQU                0x4F
                                           CTCTL             .EQU                0x53
                                           T3H               .EQU                0x5F
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           RP0                .EQU                5
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _RP0               .EQU                5
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P15                .EQU                5
                                           P14                .EQU                4
                                           P13                .EQU                3
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _P15               .EQU                5
                                           _P14               .EQU                4
                                           _P13               .EQU                3
                                           _P12               .EQU                2
                                           _P11               .EQU                1
                                           _P10               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;EIF2 Bits------------------------------------
                                           CTIF               .EQU                7
                                           _CTIF              .EQU                7
                                           
                                           ;T1CTL Bits-----------------------------------
                                           T1GC               .EQU                6
                                           T1CKS1             .EQU                5
                                           T1CKS0             .EQU                4
                                           T1SY               .EQU                2
                                           T1CS               .EQU                1
                                           T1ON               .EQU                0
                                           _T1GC              .EQU                6
                                           _T1CKS1            .EQU                5
                                           _T1CKS0            .EQU                4
                                           _T1SY              .EQU                2
                                           _T1CS              .EQU                1
                                           _T1ON              .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;CTCTL1 Bits----------------------------------
                                           CTCLKSEL1          .EQU                7
                                           CTCLKSEL0          .EQU                6
                                           CTVREFSEL1         .EQU                5
                                           CTVREFSEL0         .EQU                4
                                           _CTCLKSEL1         .EQU                7
                                           _CTCLKSEL0         .EQU                6
                                           _CTVREFSEL1        .EQU                5
                                           _CTVREFSEL0        .EQU                4
                                           
                                           ;CM1CTL Bits----------------------------------
                                           C1EN               .EQU                0
                                           _C1EN              .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;IP2 Bits-------------------------------------
                                           PCT                .EQU                7
                                           _PCT               .EQU                7
                                           
                                           ;TR0 Bits-------------------------------------
                                           TR05               .EQU                5
                                           TR04               .EQU                4
                                           TR03               .EQU                3
                                           TR02               .EQU                2
                                           TR01               .EQU                1
                                           TR00               .EQU                0
                                           _TR05              .EQU                5
                                           _TR04              .EQU                4
                                           _TR03              .EQU                3
                                           _TR02              .EQU                2
                                           _TR01              .EQU                1
                                           _TR00              .EQU                0
                                           
                                           ;TR2 Bits-------------------------------------
                                           TR27               .EQU                7
                                           TR26               .EQU                6
                                           TR25               .EQU                5
                                           TR24               .EQU                4
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR15               .EQU                5
                                           TR14               .EQU                4
                                           TR13               .EQU                3
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR15              .EQU                5
                                           _TR14              .EQU                4
                                           _TR13              .EQU                3
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T2IE               .EQU                1
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T2IE              .EQU                1
                                           _T1IE              .EQU                0
                                           
                                           ;EIE2 Bits------------------------------------
                                           CTIE               .EQU                7
                                           _CTIE              .EQU                7
                                           
                                           ;PCTL Bits------------------------------------
                                           SLVREN             .EQU                4
                                           IPEN               .EQU                3
                                           SWDTEN             .EQU                2
                                           POR                .EQU                1
                                           LVR                .EQU                0
                                           _SLVREN            .EQU                4
                                           _IPEN              .EQU                3
                                           _SWDTEN            .EQU                2
                                           _POR               .EQU                1
                                           _LVR               .EQU                0
                                           
                                           ;OSCCTL Bits----------------------------------
                                           CKOEN              .EQU                7
                                           IRCS2              .EQU                6
                                           IRCS1              .EQU                5
                                           IRCS0              .EQU                4
                                           _CKOEN             .EQU                7
                                           _IRCS2             .EQU                6
                                           _IRCS1             .EQU                5
                                           _IRCS0             .EQU                4
                                           
                                           ;ANSEL Bits-----------------------------------
                                           ANS7               .EQU                7
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS7              .EQU                7
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR Bits-------------------------------------
                                           PUR5               .EQU                5
                                           PUR4               .EQU                4
                                           PUR2               .EQU                2
                                           PUR1               .EQU                1
                                           PUR0               .EQU                0
                                           _PUR5              .EQU                5
                                           _PUR4              .EQU                4
                                           _PUR2              .EQU                2
                                           _PUR1              .EQU                1
                                           _PUR0              .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCCALIEN          .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM1             .EQU                1
                                           ADCIM0             .EQU                0
                                           _ADCCALIEN         .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM1            .EQU                1
                                           _ADCIM0            .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           P0LR3              .EQU                3
                                           P0LR2              .EQU                2
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR3             .EQU                3
                                           _P0LR2             .EQU                2
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR5              .EQU                5
                                           P1LR4              .EQU                4
                                           P1LR3              .EQU                3
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR5             .EQU                5
                                           _P1LR4             .EQU                4
                                           _P1LR3             .EQU                3
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                           
                                           ;CTCTL Bits-----------------------------------
                                           CTEN               .EQU                7
                                           CTSTART            .EQU                6
                                           CTCMS              .EQU                4
                                           CTCHSEL3           .EQU                3
                                           CTCHSEL2           .EQU                2
                                           CTCHSEL1           .EQU                1
                                           CTCHSEL0           .EQU                0
                                           _CTEN              .EQU                7
                                           _CTSTART           .EQU                6
                                           _CTCMS             .EQU                4
                                           _CTCHSEL3          .EQU                3
                                           _CTCHSEL2          .EQU                2
                                           _CTCHSEL1          .EQU                1
                                           _CTCHSEL0          .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; external declarations
                                           ;--------------------------------------------------------
                                           	.extern	_PSW_bits
                                           	.extern	_P0_bits
                                           	.extern	_P2_bits
                                           	.extern	_P1_bits
                                           	.extern	_INTCTL_bits
                                           	.extern	_EIF1_bits
                                           	.extern	_EIF2_bits
                                           	.extern	_T1CTL_bits
                                           	.extern	_PWMCTL_bits
                                           	.extern	_CTCTL1_bits
                                           	.extern	_CM1CTL_bits
                                           	.extern	_ANSEH_bits
                                           	.extern	_ADCCTL0_bits
                                           	.extern	_OPTR_bits
                                           	.extern	_IP0_bits
                                           	.extern	_IP1_bits
                                           	.extern	_IP2_bits
                                           	.extern	_TR0_bits
                                           	.extern	_TR2_bits
                                           	.extern	_TR1_bits
                                           	.extern	_EIE1_bits
                                           	.extern	_EIE2_bits
                                           	.extern	_PCTL_bits
                                           	.extern	_OSCCTL_bits
                                           	.extern	_ANSEL_bits
                                           	.extern	_PUR_bits
                                           	.extern	_IOCL_bits
                                           	.extern	_ADCCTL1_bits
                                           	.extern	_P0LR_bits
                                           	.extern	_P2LR_bits
                                           	.extern	_P1LR_bits
                                           	.extern	_CTCTL_bits
                                           	.extern	_IDLR
                                           	.extern	_T0
                                           	.extern	_PCL
                                           	.extern	_PSW
                                           	.extern	_IR
                                           	.extern	_P0
                                           	.extern	_P2
                                           	.extern	_P1
                                           	.extern	_PCH
                                           	.extern	_INTCTL
                                           	.extern	_EIF1
                                           	.extern	_EIF2
                                           	.extern	_T1L
                                           	.extern	_T1H
                                           	.extern	_T1CTL
                                           	.extern	_PWM1L
                                           	.extern	_PWM1H
                                           	.extern	_PWMCTL
                                           	.extern	_PP1
                                           	.extern	_CTCTL1
                                           	.extern	_CM1CTL
                                           	.extern	_VRECAL1
                                           	.extern	_ANSEH
                                           	.extern	_ADCDATAH
                                           	.extern	_ADCCTL0
                                           	.extern	_OPTR
                                           	.extern	_IP0
                                           	.extern	_IP1
                                           	.extern	_IP2
                                           	.extern	_TR0
                                           	.extern	_TR2
                                           	.extern	_TR1
                                           	.extern	_VRECAL2
                                           	.extern	_EIE1
                                           	.extern	_EIE2
                                           	.extern	_PCTL
                                           	.extern	_OSCCTL
                                           	.extern	_OSCCAL0
                                           	.extern	_ANSEL
                                           	.extern	_PP2
                                           	.extern	_PWM2L
                                           	.extern	_PWM2H
                                           	.extern	_PUR
                                           	.extern	_IOCL
                                           	.extern	_OSCCAL1
                                           	.extern	_BDATAH
                                           	.extern	_BDATAL
                                           	.extern	_BADDRH
                                           	.extern	_BADDRL
                                           	.extern	_EECTL1
                                           	.extern	_EECTL2
                                           	.extern	_ADCDATAL
                                           	.extern	_ADCCTL1
                                           	.extern	_P0LR
                                           	.extern	_P2LR
                                           	.extern	_P1LR
                                           	.extern	_OSCCAL2
                                           	.extern	_OSCCAL3
                                           	.extern	_T3L
                                           	.extern	_CTCTL
                                           	.extern	_T3H
                                           
                                           	.extern I0R1
                                           	.extern I0PCH
                                           	.extern I1R1
                                           	.extern I1PCH
                                           	.extern STK11
                                           	.extern STK10
                                           	.extern STK09
                                           	.extern STK08
                                           	.extern STK07
                                           	.extern STK06
                                           	.extern STK05
                                           	.extern STK04
                                           	.extern STK03
                                           	.extern STK02
                                           	.extern STK01
                                           	.extern STK00
                                           ;--------------------------------------------------------
                                           ; global declarations
                                           ;--------------------------------------------------------
                                           	.global	_init_mcu
                                           
                                           ;--------------------------------------------------------
                                           ; global definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; absolute symbol definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; compiler-defined variables
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; initialized data
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; overlayable items in internal ram 
                                           ;--------------------------------------------------------
                                           ;	.udata_ovr
                                           
                                           
                                           func._init_mcu	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _init_mcu	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _init_mcu	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	17; "../init_mcu.c"	OSCCTL = 0x60;           //8M
000177   9860     MOV	R0, #0x60            	MOV	R0,# 0x60
000178   512f     MOV	0x2f, R0             	MOV	_OSCCTL, R0
                                           ;	op : =
                                           ;	.line	20; "../init_mcu.c"	TR0 = 0x08;              // P03 复位口配置为输入  P04 外挂电容 配置为输入
000179   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
00017a   5125     MOV	0x25, R0             	MOV	_TR0, R0
                                           ;	op : =
                                           ;	.line	21; "../init_mcu.c"	TR1 = 0x00;              // CT1 CT2配置为输入口
00017b   0327     CLR	0x27                 	CLR	_TR1
                                           ;	op : =
                                           ;	.line	23; "../init_mcu.c"	P0 = 0X00;               //0000 0000
00017c   0305     CLR	0x5                  	CLR	_P0
                                           ;	op : =
                                           ;	.line	24; "../init_mcu.c"	P0LR = 0X00;
00017d   0345     CLR	0x45                 	CLR	_P0LR
                                           ;	op : =
                                           ;	.line	25; "../init_mcu.c"	P1 = 0X00;               //0000 0000
00017e   0307     CLR	0x7                  	CLR	_P1
                                           ;	op : =
                                           ;	.line	26; "../init_mcu.c"	P1LR = 0X00;
00017f   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
000180   0008     CRET                     	CRET	
                                           ; exit point of _init_mcu
                                           
                                           
                                           ;	code size estimation:
                                           ;	   10+    0 =    10 instructions (   20 byte)
                                           
                                           
                                           	.end
                                           ;--------------------------------------------------------
                                           ; File Created by ChiponCC : aolisn inc.
                                           ; Version 3.0.4#6752 (Nov 19 2015 16:48:50) (MSVC)
                                           ; This file was generated Mon Jun 06 10:42:33 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../main.c"
                                           	.list	p=KF8TS2408
                                           	.radix dec
                                           	.include "KF8TS2408.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8TS2402 
                                           ;       Microcontroller
                                           ; 
                                           ;       Copyright 2012-2013 ChipON, All rights reserved
                                           ;************************************************************ 
                                            
                                           IDLR              .EQU                0x00
                                           T0                .EQU                0x01
                                           PCL               .EQU                0x02
                                           PSW               .EQU                0x03
                                           IR                .EQU                0x04
                                           P0                .EQU                0x05
                                           P2                .EQU                0x06
                                           P1                .EQU                0x07
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           EIF2              .EQU                0x0D
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           CTCTL1            .EQU                0x17
                                           CM1CTL            .EQU                0x19
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           IP2               .EQU                0x24
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           VRECAL2           .EQU                0x2A
                                           EIE1              .EQU                0x2C
                                           EIE2              .EQU                0x2D
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR               .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           BDATAH            .EQU                0x38
                                           BDATAL            .EQU                0x39
                                           BADDRH            .EQU                0x3A
                                           BADDRL            .EQU                0x3B
                                           EECTL1            .EQU                0x3C
                                           EECTL2            .EQU                0x3D
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           T3L               .EQU                0x4F
                                           CTCTL             .EQU                0x53
                                           T3H               .EQU                0x5F
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           RP0                .EQU                5
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _RP0               .EQU                5
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P15                .EQU                5
                                           P14                .EQU                4
                                           P13                .EQU                3
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _P15               .EQU                5
                                           _P14               .EQU                4
                                           _P13               .EQU                3
                                           _P12               .EQU                2
                                           _P11               .EQU                1
                                           _P10               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;EIF2 Bits------------------------------------
                                           CTIF               .EQU                7
                                           _CTIF              .EQU                7
                                           
                                           ;T1CTL Bits-----------------------------------
                                           T1GC               .EQU                6
                                           T1CKS1             .EQU                5
                                           T1CKS0             .EQU                4
                                           T1SY               .EQU                2
                                           T1CS               .EQU                1
                                           T1ON               .EQU                0
                                           _T1GC              .EQU                6
                                           _T1CKS1            .EQU                5
                                           _T1CKS0            .EQU                4
                                           _T1SY              .EQU                2
                                           _T1CS              .EQU                1
                                           _T1ON              .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;CTCTL1 Bits----------------------------------
                                           CTCLKSEL1          .EQU                7
                                           CTCLKSEL0          .EQU                6
                                           CTVREFSEL1         .EQU                5
                                           CTVREFSEL0         .EQU                4
                                           _CTCLKSEL1         .EQU                7
                                           _CTCLKSEL0         .EQU                6
                                           _CTVREFSEL1        .EQU                5
                                           _CTVREFSEL0        .EQU                4
                                           
                                           ;CM1CTL Bits----------------------------------
                                           C1EN               .EQU                0
                                           _C1EN              .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;IP2 Bits-------------------------------------
                                           PCT                .EQU                7
                                           _PCT               .EQU                7
                                           
                                           ;TR0 Bits-------------------------------------
                                           TR05               .EQU                5
                                           TR04               .EQU                4
                                           TR03               .EQU                3
                                           TR02               .EQU                2
                                           TR01               .EQU                1
                                           TR00               .EQU                0
                                           _TR05              .EQU                5
                                           _TR04              .EQU                4
                                           _TR03              .EQU                3
                                           _TR02              .EQU                2
                                           _TR01              .EQU                1
                                           _TR00              .EQU                0
                                           
                                           ;TR2 Bits-------------------------------------
                                           TR27               .EQU                7
                                           TR26               .EQU                6
                                           TR25               .EQU                5
                                           TR24               .EQU                4
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR15               .EQU                5
                                           TR14               .EQU                4
                                           TR13               .EQU                3
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR15              .EQU                5
                                           _TR14              .EQU                4
                                           _TR13              .EQU                3
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T2IE               .EQU                1
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T2IE              .EQU                1
                                           _T1IE              .EQU                0
                                           
                                           ;EIE2 Bits------------------------------------
                                           CTIE               .EQU                7
                                           _CTIE              .EQU                7
                                           
                                           ;PCTL Bits------------------------------------
                                           SLVREN             .EQU                4
                                           IPEN               .EQU                3
                                           SWDTEN             .EQU                2
                                           POR                .EQU                1
                                           LVR                .EQU                0
                                           _SLVREN            .EQU                4
                                           _IPEN              .EQU                3
                                           _SWDTEN            .EQU                2
                                           _POR               .EQU                1
                                           _LVR               .EQU                0
                                           
                                           ;OSCCTL Bits----------------------------------
                                           CKOEN              .EQU                7
                                           IRCS2              .EQU                6
                                           IRCS1              .EQU                5
                                           IRCS0              .EQU                4
                                           _CKOEN             .EQU                7
                                           _IRCS2             .EQU                6
                                           _IRCS1             .EQU                5
                                           _IRCS0             .EQU                4
                                           
                                           ;ANSEL Bits-----------------------------------
                                           ANS7               .EQU                7
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS7              .EQU                7
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR Bits-------------------------------------
                                           PUR5               .EQU                5
                                           PUR4               .EQU                4
                                           PUR2               .EQU                2
                                           PUR1               .EQU                1
                                           PUR0               .EQU                0
                                           _PUR5              .EQU                5
                                           _PUR4              .EQU                4
                                           _PUR2              .EQU                2
                                           _PUR1              .EQU                1
                                           _PUR0              .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCCALIEN          .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM1             .EQU                1
                                           ADCIM0             .EQU                0
                                           _ADCCALIEN         .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM1            .EQU                1
                                           _ADCIM0            .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           P0LR3              .EQU                3
                                           P0LR2              .EQU                2
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR3             .EQU                3
                                           _P0LR2             .EQU                2
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR5              .EQU                5
                                           P1LR4              .EQU                4
                                           P1LR3              .EQU                3
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR5             .EQU                5
                                           _P1LR4             .EQU                4
                                           _P1LR3             .EQU                3
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                           
                                           ;CTCTL Bits-----------------------------------
                                           CTEN               .EQU                7
                                           CTSTART            .EQU                6
                                           CTCMS              .EQU                4
                                           CTCHSEL3           .EQU                3
                                           CTCHSEL2           .EQU                2
                                           CTCHSEL1           .EQU                1
                                           CTCHSEL0           .EQU                0
                                           _CTEN              .EQU                7
                                           _CTSTART           .EQU                6
                                           _CTCMS             .EQU                4
                                           _CTCHSEL3          .EQU                3
                                           _CTCHSEL2          .EQU                2
                                           _CTCHSEL1          .EQU                1
                                           _CTCHSEL0          .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; external declarations
                                           ;--------------------------------------------------------
                                           	.extern	_init_mcu
                                           	.extern	_BEE_READ_ONE
                                           	.extern	_BEE_READ_FUN
                                           	.extern	_BEE_WRITE_ONE
                                           	.extern	_BEE_WRITE_FUN
                                           	.extern	_delay_us
                                           	.extern	_PSW_bits
                                           	.extern	_P0_bits
                                           	.extern	_P2_bits
                                           	.extern	_P1_bits
                                           	.extern	_INTCTL_bits
                                           	.extern	_EIF1_bits
                                           	.extern	_EIF2_bits
                                           	.extern	_T1CTL_bits
                                           	.extern	_PWMCTL_bits
                                           	.extern	_CTCTL1_bits
                                           	.extern	_CM1CTL_bits
                                           	.extern	_ANSEH_bits
                                           	.extern	_ADCCTL0_bits
                                           	.extern	_OPTR_bits
                                           	.extern	_IP0_bits
                                           	.extern	_IP1_bits
                                           	.extern	_IP2_bits
                                           	.extern	_TR0_bits
                                           	.extern	_TR2_bits
                                           	.extern	_TR1_bits
                                           	.extern	_EIE1_bits
                                           	.extern	_EIE2_bits
                                           	.extern	_PCTL_bits
                                           	.extern	_OSCCTL_bits
                                           	.extern	_ANSEL_bits
                                           	.extern	_PUR_bits
                                           	.extern	_IOCL_bits
                                           	.extern	_ADCCTL1_bits
                                           	.extern	_P0LR_bits
                                           	.extern	_P2LR_bits
                                           	.extern	_P1LR_bits
                                           	.extern	_CTCTL_bits
                                           	.extern	_BEE_BUFFER
                                           	.extern	_BEE_READ_BUF
                                           	.extern	_KF8_BIT_VALUE1
                                           	.extern	_KF8_BIT_VALUE2
                                           	.extern	_IDLR
                                           	.extern	_T0
                                           	.extern	_PCL
                                           	.extern	_PSW
                                           	.extern	_IR
                                           	.extern	_P0
                                           	.extern	_P2
                                           	.extern	_P1
                                           	.extern	_PCH
                                           	.extern	_INTCTL
                                           	.extern	_EIF1
                                           	.extern	_EIF2
                                           	.extern	_T1L
                                           	.extern	_T1H
                                           	.extern	_T1CTL
                                           	.extern	_PWM1L
                                           	.extern	_PWM1H
                                           	.extern	_PWMCTL
                                           	.extern	_PP1
                                           	.extern	_CTCTL1
                                           	.extern	_CM1CTL
                                           	.extern	_VRECAL1
                                           	.extern	_ANSEH
                                           	.extern	_ADCDATAH
                                           	.extern	_ADCCTL0
                                           	.extern	_OPTR
                                           	.extern	_IP0
                                           	.extern	_IP1
                                           	.extern	_IP2
                                           	.extern	_TR0
                                           	.extern	_TR2
                                           	.extern	_TR1
                                           	.extern	_VRECAL2
                                           	.extern	_EIE1
                                           	.extern	_EIE2
                                           	.extern	_PCTL
                                           	.extern	_OSCCTL
                                           	.extern	_OSCCAL0
                                           	.extern	_ANSEL
                                           	.extern	_PP2
                                           	.extern	_PWM2L
                                           	.extern	_PWM2H
                                           	.extern	_PUR
                                           	.extern	_IOCL
                                           	.extern	_OSCCAL1
                                           	.extern	_BDATAH
                                           	.extern	_BDATAL
                                           	.extern	_BADDRH
                                           	.extern	_BADDRL
                                           	.extern	_EECTL1
                                           	.extern	_EECTL2
                                           	.extern	_ADCDATAL
                                           	.extern	_ADCCTL1
                                           	.extern	_P0LR
                                           	.extern	_P2LR
                                           	.extern	_P1LR
                                           	.extern	_OSCCAL2
                                           	.extern	_OSCCAL3
                                           	.extern	_T3L
                                           	.extern	_CTCTL
                                           	.extern	_T3H
                                           	.extern	_startup
                                           	.extern	__sdcc_gsinit_startup
                                           ;--------------------------------------------------------
                                           ; global declarations
                                           ;--------------------------------------------------------
                                           	.global	_delay_ms
                                           	.global	_INT_FUN
                                           	.global	_main
                                           
                                           	.global I0R1
                                           	.global I0PCH
                                           	.global I1R1
                                           	.global I1PCH
                                           	.global STK11
                                           	.global STK10
                                           	.global STK09
                                           	.global STK08
                                           	.global STK07
                                           	.global STK06
                                           	.global STK05
                                           	.global STK04
                                           	.global STK03
                                           	.global STK02
                                           	.global STK01
                                           	.global STK00
                                           
                                           sharebank .udata 0x0080
                                           I0R1		.res 1
                                           I0PCH		.res 1
                                           I1R1		.res 1
                                           I1PCH		.res 1
                                           STK11	.res 1
                                           	.type STK11, 108
                                           STK10	.res 1
                                           	.type STK10, 108
                                           STK09	.res 1
                                           	.type STK09, 108
                                           STK08	.res 1
                                           	.type STK08, 108
                                           STK07	.res 1
                                           	.type STK07, 108
                                           STK06	.res 1
                                           	.type STK06, 108
                                           STK05	.res 1
                                           	.type STK05, 108
                                           STK04	.res 1
                                           	.type STK04, 108
                                           STK03	.res 1
                                           	.type STK03, 108
                                           STK02	.res 1
                                           	.type STK02, 108
                                           STK01	.res 1
                                           	.type STK01, 108
                                           STK00	.res 1
                                           	.type STK00, 108
                                           
                                           ;--------------------------------------------------------
                                           ; global definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; absolute symbol definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; compiler-defined variables
                                           ;--------------------------------------------------------
                                           UDL_main_0	.udata
                                           r0x1021	.res	1
                                           UDL_main_1	.udata
                                           r0x1020	.res	1
                                           UDL_main_2	.udata
                                           r0x1022	.res	1
                                           UDL_main_3	.udata
                                           r0x1023	.res	1
                                           UDL_main_4	.udata
                                           r0x1024	.res	1
                                           UDL_main_5	.udata
                                           r0x1025	.res	1
                                           UDL_main_6	.udata
                                           r0x1026	.res	1
                                           UDL_main_7	.udata
                                           r0x1027	.res	1
                                           UDL_main_8	.udata
                                           r0x1028	.res	1
                                           UDL_main_9	.udata
                                           r0x1029	.res	1
                                           ;--------------------------------------------------------
                                           ; initialized data
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; overlayable items in internal ram 
                                           ;--------------------------------------------------------
                                           ;	.udata_ovr
                                           ;--------------------------------------------------------
                                           ; reset vector 
                                           ;--------------------------------------------------------
                                           STARTUP	.code 0x0000
000000   0000     NOP                      	NOP
                                           	PAGESEL	init_imp
000001   c181     JMP	#0x181               	JMP		init_imp
                                           
                                           	.global	init_imp
                                           INIT_IMP	.code
                                           init_imp
                                           	PAGESEL	_startup
000181   d152     CALL	#0x152              	CALL	_startup
                                           	PAGESEL	__sdcc_gsinit_startup
000182   d184     CALL	#0x184              	CALL	__sdcc_gsinit_startup
                                           	PAGESEL	_main
000183   c002     JMP	#0x2                 	JMP		_main
                                           ;--------------------------------------------------------
                                           ; interrupt and initialization code
                                           ;--------------------------------------------------------
                                           
                                           
                                           
                                           func._INT_FUN	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = I
                                           ;***
                                           ;entry:  _INT_FUN	;Function start
                                           ; 0 exit points
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _INT_FUN	;Function start
                                           ; 0 exit points
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
                                           ; R3 resprent for wsave,R4 resprent for ssave, R5 resprent for psave
                                           interrupt_service_routine_0x04
                                           _00014_DS_
                                           ;	.line	39; "../main.c"	}
                                           	IRET	
                                           
                                           
                                           
                                           func._main	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = M
                                           ;***
                                           ;entry:  _main	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   _init_mcu
                                           ;   _delay_ms
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_READ_ONE
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_WRITE_ONE
                                           ;   _init_mcu
                                           ;   _delay_ms
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_READ_ONE
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_WRITE_FUN
                                           ;   _BEE_WRITE_ONE
                                           ;7 compiler assigned registers:
                                           ;   STK00
                                           ;   r0x1026
                                           ;   r0x1027
                                           ;   r0x1028
                                           ;   r0x1029
                                           ;   STK01
                                           ;   STK02
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _main	;Function start
                                           ; 2 exit points
                                           ;	op : CALL
                                           ;	.line	52; "../main.c"	init_mcu();						//初始化MCU寄存器
                                           	PAGESEL	_init_mcu
000002   d177     CALL	#0x177              	CALL	_init_mcu
                                           	PAGESEL	$
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	53; "../main.c"	delay_ms(200);					//延时一会，防止上电误触发触摸通道
000003   98c8     MOV	R0, #0xc8            	MOV	R0,# 0xc8
000004   6503     CLR	0x3, 5               	BANKSEL	STK00
000005   518f     MOV	0x8f, R0             	MOV	STK00, R0
000006   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	PAGESEL	_delay_ms
000007   d12d     CALL	#0x12d              	CALL	_delay_ms
                                           	PAGESEL	$
                                           ;	op : =
                                           ;	.line	56; "../main.c"	for (i = 0; i < BEE_BUFFER_MAX; i++)
000008   6503     CLR	0x3, 5               	BANKSEL	r0x1026
000009   03c4     CLR	0xc4                 	CLR	r0x1026
                                           	BANKSEL	r0x1027
00000a   03c5     CLR	0xc5                 	CLR	r0x1027
                                           ;	op : =
                                           	BANKSEL	r0x1028
00000b   03c6     CLR	0xc6                 	CLR	r0x1028
                                           ;	op : LABEL
                                           ;	op : <
                                           ;unsigned compare: left < lit(0x10=16), size=1
                                           _00019_DS_
00000c   9810     MOV	R0, #0x10            	MOV	R0,# 0x10
                                           	BANKSEL	r0x1028
00000d   38c6     SUB	R0, 0xc6             	SUB	R0, r0x1028
                                           ;comparing bytes at offset 0
00000e   7003     JNB	0x3, 0               	JNB	PSW, 0
00000f   c023     JMP	#0x23                	JMP	_00022_DS_
                                           ;	op : LEFT_OP
                                           ;	.line	58; "../main.c"	BEE_BUFFER[i] = temp;
000010   6003     CLR	0x3, 0               	CLR	PSW, 0
                                           	BANKSEL	r0x1028
000011   12c6     RLCR	0xc6                	RLCR	r0x1028
                                           	BANKSEL	r0x1029
000012   51c7     MOV	0xc7, R0             	MOV	r0x1029, R0
                                           ;	op : +
000013   9890     MOV	R0, #0x90            	MOV	R0,# (_BEE_BUFFER + 0)
                                           	BANKSEL	r0x1029
000014   21c7     ADD	0xc7, R0             	ADD	r0x1029, R0
                                           ;	op : =
                                           	BANKSEL	r0x1026
000015   0ec4     MOVZ	R0, 0xc4            	MOVZ	R0, r0x1026
                                           	BANKSEL	r0x1029
000016   52c7     MOV	R1, 0xc7             	MOV	R1, r0x1029
                                           	BANKSEL	_BEE_BUFFER
000017   f741     ST	[R1], R0              	ST	[R1], R0
000018   ff11     INC	R1                   	INC	R1
                                           	BANKSEL	r0x1027
000019   0ec5     MOVZ	R0, 0xc5            	MOVZ	R0, r0x1027
                                           	BANKSEL	_BEE_BUFFER
00001a   f741     ST	[R1], R0              	ST	[R1], R0
                                           ;	op : +
                                           ;	.line	59; "../main.c"	temp += 0x1111;
00001b   9811     MOV	R0, #0x11            	MOV	R0,# 0x11
                                           	BANKSEL	r0x1026
00001c   21c4     ADD	0xc4, R0             	ADD	r0x1026, R0
00001d   9811     MOV	R0, #0x11            	MOV	R0,# 0x11
00001e   7003     JNB	0x3, 0               	JNB	PSW, 0
00001f   9812     MOV	R0, #0x12            	MOV	R0,# 0x12
                                           	BANKSEL	r0x1027
000020   21c5     ADD	0xc5, R0             	ADD	r0x1027, R0
                                           ;	op : +
                                           ;	.line	56; "../main.c"	for (i = 0; i < BEE_BUFFER_MAX; i++)
                                           	BANKSEL	r0x1028
000021   0bc6     INC	0xc6                 	INC	r0x1028
                                           ;	op : GOTO
000022   c00c     JMP	#0xc                 	JMP	_00019_DS_
                                           ;	op : LABEL
                                           ;	op : SEND
                                           ;	op : SEND
                                           ;	op : CALL
                                           _00022_DS_
                                           ;	.line	62; "../main.c"	BEE_WRITE_FUN(0x0800,BEE_BUFFER_MAX);
000023   9810     MOV	R0, #0x10            	MOV	R0,# 0x10
                                           	BANKSEL	STK01
000024   518e     MOV	0x8e, R0             	MOV	STK01, R0
000025   9800     MOV	R0, #0               	MOV	R0,# 0x00
000026   518f     MOV	0x8f, R0             	MOV	STK00, R0
000027   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
                                           	PAGESEL	_BEE_WRITE_FUN
000028   d06b     CALL	#0x6b               	CALL	_BEE_WRITE_FUN
                                           	PAGESEL	$
                                           ;	op : SEND
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	63; "../main.c"	BEE_WRITE_FUN(0x0810,BEE_BUFFER_MAX);
000029   9810     MOV	R0, #0x10            	MOV	R0,# 0x10
00002a   6503     CLR	0x3, 5               	BANKSEL	STK01
00002b   518e     MOV	0x8e, R0             	MOV	STK01, R0
00002c   9810     MOV	R0, #0x10            	MOV	R0,# 0x10
00002d   518f     MOV	0x8f, R0             	MOV	STK00, R0
00002e   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
                                           	PAGESEL	_BEE_WRITE_FUN
00002f   d06b     CALL	#0x6b               	CALL	_BEE_WRITE_FUN
                                           	PAGESEL	$
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	65; "../main.c"	temp=BEE_READ_ONE(0x0809);
000030   9809     MOV	R0, #0x9             	MOV	R0,# 0x09
000031   6503     CLR	0x3, 5               	BANKSEL	STK00
000032   518f     MOV	0x8f, R0             	MOV	STK00, R0
000033   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
                                           	PAGESEL	_BEE_READ_ONE
000034   d107     CALL	#0x107              	CALL	_BEE_READ_ONE
                                           	PAGESEL	$
000035   6503     CLR	0x3, 5               	BANKSEL	r0x1027
000036   51c5     MOV	0xc5, R0             	MOV	r0x1027, R0
                                           	BANKSEL	STK00
000037   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1026
000038   51c4     MOV	0xc4, R0             	MOV	r0x1026, R0
                                           ;	op : =
                                           ;	.line	67; "../main.c"	for (i = 0; i < 4; i++)
                                           	BANKSEL	r0x1028
000039   03c6     CLR	0xc6                 	CLR	r0x1028
                                           ;	op : LABEL
                                           ;	op : <
                                           ;unsigned compare: left < lit(0x4=4), size=1
                                           _00023_DS_
00003a   9804     MOV	R0, #0x4             	MOV	R0,# 0x04
                                           	BANKSEL	r0x1028
00003b   38c6     SUB	R0, 0xc6             	SUB	R0, r0x1028
                                           ;comparing bytes at offset 0
00003c   7003     JNB	0x3, 0               	JNB	PSW, 0
00003d   c04b     JMP	#0x4b                	JMP	_00026_DS_
                                           ;	op : LEFT_OP
                                           ;	.line	69; "../main.c"	BEE_BUFFER[i] = 0xFFF1;
00003e   6003     CLR	0x3, 0               	CLR	PSW, 0
                                           	BANKSEL	r0x1028
00003f   12c6     RLCR	0xc6                	RLCR	r0x1028
                                           	BANKSEL	r0x1029
000040   51c7     MOV	0xc7, R0             	MOV	r0x1029, R0
                                           ;	op : +
000041   9890     MOV	R0, #0x90            	MOV	R0,# (_BEE_BUFFER + 0)
                                           	BANKSEL	r0x1029
000042   21c7     ADD	0xc7, R0             	ADD	r0x1029, R0
                                           ;	op : =
000043   98f1     MOV	R0, #0xf1            	MOV	R0,# 0xf1
                                           	BANKSEL	r0x1029
000044   52c7     MOV	R1, 0xc7             	MOV	R1, r0x1029
                                           	BANKSEL	_BEE_BUFFER
000045   f741     ST	[R1], R0              	ST	[R1], R0
000046   ff11     INC	R1                   	INC	R1
000047   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	_BEE_BUFFER
000048   f741     ST	[R1], R0              	ST	[R1], R0
                                           ;	op : +
                                           ;	.line	67; "../main.c"	for (i = 0; i < 4; i++)
                                           	BANKSEL	r0x1028
000049   0bc6     INC	0xc6                 	INC	r0x1028
                                           ;	op : GOTO
00004a   c03a     JMP	#0x3a                	JMP	_00023_DS_
                                           ;	op : LABEL
                                           ;	op : SEND
                                           ;	op : SEND
                                           ;	op : CALL
                                           _00026_DS_
                                           ;	.line	72; "../main.c"	BEE_WRITE_FUN(0x0820,4);
00004b   9804     MOV	R0, #0x4             	MOV	R0,# 0x04
                                           	BANKSEL	STK01
00004c   518e     MOV	0x8e, R0             	MOV	STK01, R0
00004d   9820     MOV	R0, #0x20            	MOV	R0,# 0x20
00004e   518f     MOV	0x8f, R0             	MOV	STK00, R0
00004f   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
                                           	PAGESEL	_BEE_WRITE_FUN
000050   d06b     CALL	#0x6b               	CALL	_BEE_WRITE_FUN
                                           	PAGESEL	$
                                           ;	op : =
                                           ;d:\svn\workspace\compiler\chipon16target\gen.c:8828: size=0/2, offset=0, AOP_TYPE(res)=7
                                           ;	.line	74; "../main.c"	BEE_BUFFER[1]=temp;
000051   6503     CLR	0x3, 5               	BANKSEL	r0x1026
000052   0ec4     MOVZ	R0, 0xc4            	MOVZ	R0, r0x1026
                                           	BANKSEL	_BEE_BUFFER
000053   5192     MOV	0x92, R0             	MOV	 (_BEE_BUFFER + 2), R0
                                           ;d:\svn\workspace\compiler\chipon16target\gen.c:8828: size=1/2, offset=1, AOP_TYPE(res)=7
                                           	BANKSEL	r0x1027
000054   0ec5     MOVZ	R0, 0xc5            	MOVZ	R0, r0x1027
                                           	BANKSEL	_BEE_BUFFER
000055   5193     MOV	0x93, R0             	MOV	 (_BEE_BUFFER + 3), R0
                                           ;	op : =
                                           ;d:\svn\workspace\compiler\chipon16target\gen.c:8828: size=0/2, offset=0, AOP_TYPE(res)=7
                                           ;	.line	75; "../main.c"	BEE_BUFFER[3]=0xFF33; //验证 用 0x0F9C
000056   9833     MOV	R0, #0x33            	MOV	R0,# 0x33
                                           	BANKSEL	_BEE_BUFFER
000057   5196     MOV	0x96, R0             	MOV	 (_BEE_BUFFER + 6), R0
                                           ;d:\svn\workspace\compiler\chipon16target\gen.c:8828: size=1/2, offset=1, AOP_TYPE(res)=7
000058   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	_BEE_BUFFER
000059   5197     MOV	0x97, R0             	MOV	 (_BEE_BUFFER + 7), R0
                                           ;	op : SEND
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	77; "../main.c"	BEE_WRITE_FUN(0x0828,4);
00005a   9804     MOV	R0, #0x4             	MOV	R0,# 0x04
                                           	BANKSEL	STK01
00005b   518e     MOV	0x8e, R0             	MOV	STK01, R0
00005c   9828     MOV	R0, #0x28            	MOV	R0,# 0x28
00005d   518f     MOV	0x8f, R0             	MOV	STK00, R0
00005e   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
                                           	PAGESEL	_BEE_WRITE_FUN
00005f   d06b     CALL	#0x6b               	CALL	_BEE_WRITE_FUN
                                           	PAGESEL	$
                                           ;	op : SEND
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	79; "../main.c"	BEE_WRITE_ONE(0x0830,0x55AA);
000060   98aa     MOV	R0, #0xaa            	MOV	R0,# 0xaa
000061   6503     CLR	0x3, 5               	BANKSEL	STK02
000062   518d     MOV	0x8d, R0             	MOV	STK02, R0
000063   9855     MOV	R0, #0x55            	MOV	R0,# 0x55
000064   518e     MOV	0x8e, R0             	MOV	STK01, R0
000065   9830     MOV	R0, #0x30            	MOV	R0,# 0x30
000066   518f     MOV	0x8f, R0             	MOV	STK00, R0
000067   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
                                           	PAGESEL	_BEE_WRITE_ONE
000068   d0da     CALL	#0xda               	CALL	_BEE_WRITE_ONE
                                           	PAGESEL	$
                                           ;	op : LABEL
                                           ;	op : GOTO
                                           _00017_DS_
                                           ;	.line	81; "../main.c"	while (1);
000069   c069     JMP	#0x69                	JMP	_00017_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
00006a   0008     CRET                     	CRET	
                                           ; exit point of _main
                                           
                                           
                                           
                                           func._delay_ms	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _delay_ms	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;7 compiler assigned registers:
                                           ;   r0x1020
                                           ;   STK00
                                           ;   r0x1021
                                           ;   r0x1022
                                           ;   r0x1023
                                           ;   r0x1024
                                           ;   r0x1025
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _delay_ms	;Function start
                                           ; 2 exit points
                                           ;	op : RECEIVE
                                           ;	.line	16; "../main.c"	void delay_ms(uint ms_data)
00012d   6503     CLR	0x3, 5               	BANKSEL	r0x1020
00012e   51bf     MOV	0xbf, R0             	MOV	r0x1020, R0
                                           	BANKSEL	STK00
00012f   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1021
000130   51be     MOV	0xbe, R0             	MOV	r0x1021, R0
                                           ;	op : =
                                           ;	op : LABEL
                                           ;	op : =
                                           _00004_DS_
                                           ;	.line	19; "../main.c"	while(ms_data--)
                                           	BANKSEL	r0x1021
000131   0ebe     MOVZ	R0, 0xbe            	MOVZ	R0, r0x1021
                                           	BANKSEL	r0x1022
000132   51c0     MOV	0xc0, R0             	MOV	r0x1022, R0
                                           	BANKSEL	r0x1020
000133   0ebf     MOVZ	R0, 0xbf            	MOVZ	R0, r0x1020
                                           	BANKSEL	r0x1023
000134   51c1     MOV	0xc1, R0             	MOV	r0x1023, R0
                                           ;	op : -
000135   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	r0x1021
000136   21be     ADD	0xbe, R0             	ADD	r0x1021, R0
000137   7003     JNB	0x3, 0               	JNB	PSW, 0
000138   c13a     JMP	#0x13a               	JMP	_00038_DS_
                                           	BANKSEL	r0x1020
000139   07bf     DEC	0xbf                 	DEC	r0x1020
                                           ;	op : IFX
                                           _00038_DS_
                                           	BANKSEL	r0x1022
00013a   0ec0     MOVZ	R0, 0xc0            	MOVZ	R0, r0x1022
                                           	BANKSEL	r0x1023
00013b   30c1     ORL	R0, 0xc1             	ORL	R0, r0x1023
00013c   7203     JNB	0x3, 2               	JNB	PSW, 2
00013d   c151     JMP	#0x151               	JMP	_00007_DS_
                                           ;	op : INLINEASM
00013e   0064     CWDT                     	CWDT 
                                           ;	op : =
                                           ;	.line	23; "../main.c"	while(j--)
00013f   98c8     MOV	R0, #0xc8            	MOV	R0,# 0xc8
                                           	BANKSEL	r0x1022
000140   51c0     MOV	0xc0, R0             	MOV	r0x1022, R0
                                           	BANKSEL	r0x1023
000141   03c1     CLR	0xc1                 	CLR	r0x1023
                                           ;	op : LABEL
                                           ;	op : =
                                           _00001_DS_
                                           	BANKSEL	r0x1022
000142   0ec0     MOVZ	R0, 0xc0            	MOVZ	R0, r0x1022
                                           	BANKSEL	r0x1024
000143   51c2     MOV	0xc2, R0             	MOV	r0x1024, R0
                                           	BANKSEL	r0x1023
000144   0ec1     MOVZ	R0, 0xc1            	MOVZ	R0, r0x1023
                                           	BANKSEL	r0x1025
000145   51c3     MOV	0xc3, R0             	MOV	r0x1025, R0
                                           ;	op : -
000146   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	r0x1022
000147   21c0     ADD	0xc0, R0             	ADD	r0x1022, R0
000148   7003     JNB	0x3, 0               	JNB	PSW, 0
000149   c14b     JMP	#0x14b               	JMP	_00039_DS_
                                           	BANKSEL	r0x1023
00014a   07c1     DEC	0xc1                 	DEC	r0x1023
                                           ;	op : IFX
                                           _00039_DS_
                                           	BANKSEL	r0x1024
00014b   0ec2     MOVZ	R0, 0xc2            	MOVZ	R0, r0x1024
                                           	BANKSEL	r0x1025
00014c   30c3     ORL	R0, 0xc3             	ORL	R0, r0x1025
00014d   7203     JNB	0x3, 2               	JNB	PSW, 2
00014e   c131     JMP	#0x131               	JMP	_00004_DS_
                                           ;	op : INLINEASM
00014f   0064     CWDT                     	CWDT 
                                           ;	op : GOTO
000150   c142     JMP	#0x142               	JMP	_00001_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
                                           _00007_DS_
000151   0008     CRET                     	CRET	
                                           ; exit point of _delay_ms
                                           
                                           
                                           ;	code size estimation:
                                           ;	  149+   61 =   210 instructions (  542 byte)
                                           
                                           
                                           	.end
                                           .config
002007   04e0     CPLR	0xe0               
002008   ffff     NOPZ                    
                                           func.__sdcc_gsinit_startup
000184   d16b     CALL	#0x16b             
000185   0008     CRET                    
                                           .code
000152   d7fa     CALL	#0x7fa             
000153   512a     MOV	0x2a, R0            
000154   ffff     NOPZ                    
000155   ffff     NOPZ                    
000156   d7fb     CALL	#0x7fb             
000157   511c     MOV	0x1c, R0            
000158   ffff     NOPZ                    
000159   ffff     NOPZ                    
00015a   d7fc     CALL	#0x7fc             
00015b   514d     MOV	0x4d, R0            
00015c   ffff     NOPZ                    
00015d   ffff     NOPZ                    
00015e   d7fd     CALL	#0x7fd             
00015f   514c     MOV	0x4c, R0            
000160   ffff     NOPZ                    
000161   ffff     NOPZ                    
000162   d7fe     CALL	#0x7fe             
000163   5137     MOV	0x37, R0            
000164   ffff     NOPZ                    
000165   ffff     NOPZ                    
000166   d7ff     CALL	#0x7ff             
000167   5130     MOV	0x30, R0            
000168   ffff     NOPZ                    
000169   ffff     NOPZ                    
00016a   0008     CRET                    
                                           .cinit
00016b   6503     CLR	0x3, 5              
00016c   9880     MOV	R0, #0x80           
00016d   9948     MOV	R1, #0x48           
00016e   0000     NOP                     
00016f   d171     CALL	#0x171             
000170   0008     CRET                    
000171   020a     CLR	R2                  
000172   f750     ST	[R0], R2             
000173   ff10     INC	R0                  
000174   ff59     DECJZ	R1                
000175   c172     JMP	#0x172              
000176   0008     CRET                    
