gplink-1.1.0
Copyright (c) 1998-2005 gputils project
Listing File Generated: 5-20-2016  15:29:34
 
 
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 Thu May 19 09:31:18 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../config_set.c"
                                           	.list	p=KF8V111
                                           	.radix dec
                                           	.include "KF8V111.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8V111 
                                           ;       Microcontroller
                                           ; 
                                           ;       Copyright 2012-2013 ChipON, All rights reserved
                                           ;************************************************************ 
                                            
                                           T0                .EQU                0x01
                                           PCL               .EQU                0x02
                                           PSW               .EQU                0x03
                                           P0                .EQU                0x05
                                           P2                .EQU                0x06
                                           P1                .EQU                0x07
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           PUR2              .EQU                0x28
                                           PUR1              .EQU                0x29
                                           VRECAL2           .EQU                0x2A
                                           VRECTL1           .EQU                0x2B
                                           EIE1              .EQU                0x2C
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR0              .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _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
                                           _P27               .EQU                7
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _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
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;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----------------------------------
                                           INT1SE             .EQU                6
                                           PWM2CKS            .EQU                3
                                           PWM1CKS            .EQU                2
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT1SE            .EQU                6
                                           _PWM2CKS           .EQU                3
                                           _PWM1CKS           .EQU                2
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           _ANS11             .EQU                3
                                           
                                           ;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
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;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
                                           _TR27              .EQU                7
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR17               .EQU                7
                                           TR16               .EQU                6
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR17              .EQU                7
                                           _TR16              .EQU                6
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .EQU                0
                                           
                                           ;PUR2 Bits------------------------------------
                                           PUR23              .EQU                3
                                           _PUR23             .EQU                3
                                           
                                           ;PUR1 Bits------------------------------------
                                           PUR17              .EQU                7
                                           PUR16              .EQU                6
                                           PUR12              .EQU                2
                                           PUR11              .EQU                1
                                           PUR10              .EQU                0
                                           _PUR17             .EQU                7
                                           _PUR16             .EQU                6
                                           _PUR12             .EQU                2
                                           _PUR11             .EQU                1
                                           _PUR10             .EQU                0
                                           
                                           ;VRECTL1 Bits---------------------------------
                                           VREOE              .EQU                3
                                           VREEN              .EQU                1
                                           LPREN              .EQU                0
                                           _VREOE             .EQU                3
                                           _VREEN             .EQU                1
                                           _LPREN             .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T1IE              .EQU                0
                                           
                                           ;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-----------------------------------
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR0 Bits------------------------------------
                                           PUR05              .EQU                5
                                           PUR04              .EQU                4
                                           PUR02              .EQU                2
                                           PUR01              .EQU                1
                                           PUR00              .EQU                0
                                           _PUR05             .EQU                5
                                           _PUR04             .EQU                4
                                           _PUR02             .EQU                2
                                           _PUR01             .EQU                1
                                           _PUR00             .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
                                           P0LR2              .EQU                2
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR2             .EQU                2
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           _P2LR7             .EQU                7
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; config word(s)
                                           ;--------------------------------------------------------
                                           	__config 0x6d0
                                           ;--------------------------------------------------------
                                           ; 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 Fri May 20 15:29:34 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../main.c"
                                           	.list	p=KF8V111
                                           	.radix dec
                                           	.include "KF8V111.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8V111 
                                           ;       Microcontroller
                                           ; 
                                           ;       Copyright 2012-2013 ChipON, All rights reserved
                                           ;************************************************************ 
                                            
                                           T0                .EQU                0x01
                                           PCL               .EQU                0x02
                                           PSW               .EQU                0x03
                                           P0                .EQU                0x05
                                           P2                .EQU                0x06
                                           P1                .EQU                0x07
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           PUR2              .EQU                0x28
                                           PUR1              .EQU                0x29
                                           VRECAL2           .EQU                0x2A
                                           VRECTL1           .EQU                0x2B
                                           EIE1              .EQU                0x2C
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR0              .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _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
                                           _P27               .EQU                7
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _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
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;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----------------------------------
                                           INT1SE             .EQU                6
                                           PWM2CKS            .EQU                3
                                           PWM1CKS            .EQU                2
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT1SE            .EQU                6
                                           _PWM2CKS           .EQU                3
                                           _PWM1CKS           .EQU                2
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           _ANS11             .EQU                3
                                           
                                           ;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
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;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
                                           _TR27              .EQU                7
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR17               .EQU                7
                                           TR16               .EQU                6
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR17              .EQU                7
                                           _TR16              .EQU                6
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .EQU                0
                                           
                                           ;PUR2 Bits------------------------------------
                                           PUR23              .EQU                3
                                           _PUR23             .EQU                3
                                           
                                           ;PUR1 Bits------------------------------------
                                           PUR17              .EQU                7
                                           PUR16              .EQU                6
                                           PUR12              .EQU                2
                                           PUR11              .EQU                1
                                           PUR10              .EQU                0
                                           _PUR17             .EQU                7
                                           _PUR16             .EQU                6
                                           _PUR12             .EQU                2
                                           _PUR11             .EQU                1
                                           _PUR10             .EQU                0
                                           
                                           ;VRECTL1 Bits---------------------------------
                                           VREOE              .EQU                3
                                           VREEN              .EQU                1
                                           LPREN              .EQU                0
                                           _VREOE             .EQU                3
                                           _VREEN             .EQU                1
                                           _LPREN             .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T1IE              .EQU                0
                                           
                                           ;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-----------------------------------
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR0 Bits------------------------------------
                                           PUR05              .EQU                5
                                           PUR04              .EQU                4
                                           PUR02              .EQU                2
                                           PUR01              .EQU                1
                                           PUR00              .EQU                0
                                           _PUR05             .EQU                5
                                           _PUR04             .EQU                4
                                           _PUR02             .EQU                2
                                           _PUR01             .EQU                1
                                           _PUR00             .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
                                           P0LR2              .EQU                2
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR2             .EQU                2
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           _P2LR7             .EQU                7
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; external declarations
                                           ;--------------------------------------------------------
                                           	.extern	_PSW_bits
                                           	.extern	_P0_bits
                                           	.extern	_P2_bits
                                           	.extern	_P1_bits
                                           	.extern	_INTCTL_bits
                                           	.extern	_EIF1_bits
                                           	.extern	_T1CTL_bits
                                           	.extern	_PWMCTL_bits
                                           	.extern	_ANSEH_bits
                                           	.extern	_ADCCTL0_bits
                                           	.extern	_OPTR_bits
                                           	.extern	_IP0_bits
                                           	.extern	_IP1_bits
                                           	.extern	_TR0_bits
                                           	.extern	_TR2_bits
                                           	.extern	_TR1_bits
                                           	.extern	_PUR2_bits
                                           	.extern	_PUR1_bits
                                           	.extern	_VRECTL1_bits
                                           	.extern	_EIE1_bits
                                           	.extern	_PCTL_bits
                                           	.extern	_OSCCTL_bits
                                           	.extern	_ANSEL_bits
                                           	.extern	_PUR0_bits
                                           	.extern	_IOCL_bits
                                           	.extern	_ADCCTL1_bits
                                           	.extern	_P0LR_bits
                                           	.extern	_P2LR_bits
                                           	.extern	_P1LR_bits
                                           	.extern	_T0
                                           	.extern	_PCL
                                           	.extern	_PSW
                                           	.extern	_P0
                                           	.extern	_P2
                                           	.extern	_P1
                                           	.extern	_PCH
                                           	.extern	_INTCTL
                                           	.extern	_EIF1
                                           	.extern	_T1L
                                           	.extern	_T1H
                                           	.extern	_T1CTL
                                           	.extern	_PWM1L
                                           	.extern	_PWMCTL
                                           	.extern	_PP1
                                           	.extern	_VRECAL1
                                           	.extern	_ANSEH
                                           	.extern	_ADCDATAH
                                           	.extern	_ADCCTL0
                                           	.extern	_OPTR
                                           	.extern	_IP0
                                           	.extern	_IP1
                                           	.extern	_TR0
                                           	.extern	_TR2
                                           	.extern	_TR1
                                           	.extern	_PUR2
                                           	.extern	_PUR1
                                           	.extern	_VRECAL2
                                           	.extern	_VRECTL1
                                           	.extern	_EIE1
                                           	.extern	_PCTL
                                           	.extern	_OSCCTL
                                           	.extern	_OSCCAL0
                                           	.extern	_ANSEL
                                           	.extern	_PP2
                                           	.extern	_PWM2L
                                           	.extern	_PWM2H
                                           	.extern	_PUR0
                                           	.extern	_IOCL
                                           	.extern	_OSCCAL1
                                           	.extern	_ADCDATAL
                                           	.extern	_ADCCTL1
                                           	.extern	_P0LR
                                           	.extern	_P2LR
                                           	.extern	_P1LR
                                           	.extern	_OSCCAL2
                                           	.extern	_OSCCAL3
                                           	.extern	_startup
                                           	.extern	__sdcc_gsinit_startup
                                           ;--------------------------------------------------------
                                           ; global declarations
                                           ;--------------------------------------------------------
                                           	.global	_Delay_ms
                                           	.global	_init_mcu
                                           	.global	_init_pwm
                                           	.global	_pwm_function
                                           	.global	_main
                                           	.global	_int_fun0
                                           	.global	_int_fun1
                                           
                                           	.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
                                           r0x1002	.res	1
                                           UDL_main_1	.udata
                                           r0x1001	.res	1
                                           UDL_main_2	.udata
                                           r0x1003	.res	1
                                           UDL_main_3	.udata
                                           r0x1004	.res	1
                                           UDL_main_4	.udata
                                           r0x1005	.res	1
                                           ;--------------------------------------------------------
                                           ; initialized data
                                           ;--------------------------------------------------------
                                           LDS_00000	.idata
                                           _pwm_function_direction_1_1
                                           	.db 0
                                           
                                           ;--------------------------------------------------------
                                           ; overlayable items in internal ram 
                                           ;--------------------------------------------------------
                                           ;	.udata_ovr
                                           ;--------------------------------------------------------
                                           ; reset vector 
                                           ;--------------------------------------------------------
                                           STARTUP	.code 0x0000
000000   0000     NOP                      	NOP
                                           	PAGESEL	init_imp
000001   c095     JMP	#0x95                	JMP		init_imp
                                           
                                           	.global	init_imp
                                           INIT_IMP	.code
                                           init_imp
                                           	PAGESEL	_startup
000095   d044     CALL	#0x44               	CALL	_startup
                                           	PAGESEL	__sdcc_gsinit_startup
000096   d098     CALL	#0x98               	CALL	__sdcc_gsinit_startup
                                           	PAGESEL	_main
000097   c06d     JMP	#0x6d                	JMP		_main
                                           ;--------------------------------------------------------
                                           ; interrupt and initialization code
                                           ;--------------------------------------------------------
                                           
                                           
                                           
                                           func._int_fun0	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = I
                                           ;***
                                           ;entry:  _int_fun0	;Function start
                                           ; 0 exit points
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _int_fun0	;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
                                           _00038_DS_
                                           ;	.line	142; "../main.c"	}
                                           	IRET	
                                           
                                           
                                           
                                           func._int_fun1	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = I
                                           ;***
                                           ;entry:  _int_fun1	;Function start
                                           ; 0 exit points
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _int_fun1	;Function start
                                           ; 0 exit points
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
                                           ; R3 resprent for wsave,R4 resprent for ssave, R5 resprent for psave
                                           interrupt_service_routine_0x14
                                           _00040_DS_
                                           ;	.line	149; "../main.c"	}
                                           	IRET	
                                           
                                           
                                           
                                           func._main	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = M
                                           ;***
                                           ;entry:  _main	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   _init_mcu
                                           ;   _init_pwm
                                           ;   _Delay_ms
                                           ;   _pwm_function
                                           ;   _Delay_ms
                                           ;   _init_mcu
                                           ;   _init_pwm
                                           ;   _Delay_ms
                                           ;   _pwm_function
                                           ;   _Delay_ms
                                           ;1 compiler assigned register :
                                           ;   STK00
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _main	;Function start
                                           ; 2 exit points
                                           ;	op : CALL
                                           ;	.line	125; "../main.c"	init_mcu();
                                           	PAGESEL	_init_mcu
00006d   d07c     CALL	#0x7c               	CALL	_init_mcu
                                           	PAGESEL	$
                                           ;	op : CALL
                                           ;	.line	126; "../main.c"	init_pwm();
                                           	PAGESEL	_init_pwm
00006e   d05d     CALL	#0x5d               	CALL	_init_pwm
                                           	PAGESEL	$
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	127; "../main.c"	Delay_ms(10);
00006f   980a     MOV	R0, #0xa             	MOV	R0,# 0x0a
                                           	BANKSEL	STK00
000070   518f     MOV	0x8f, R0             	MOV	STK00, R0
000071   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	PAGESEL	_Delay_ms
000072   d029     CALL	#0x29               	CALL	_Delay_ms
                                           	PAGESEL	$
                                           ;	op : =
                                           ;	.line	129; "../main.c"	PWM1ON=1;							//¿ªÆôPWM1
000073   6815     SET	0x15, 0              	SET	_PWMCTL_bits, 0
                                           ;	op : =
                                           ;	.line	130; "../main.c"	PWM2ON=1;							//¿ªÆôPWM2
000074   6915     SET	0x15, 1              	SET	_PWMCTL_bits, 1
                                           ;	op : LABEL
                                           ;	op : CALL
                                           _00033_DS_
                                           ;	.line	133; "../main.c"	pwm_function();
                                           	PAGESEL	_pwm_function
000075   d002     CALL	#0x2                	CALL	_pwm_function
                                           	PAGESEL	$
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	134; "../main.c"	Delay_ms(10);
000076   980a     MOV	R0, #0xa             	MOV	R0,# 0x0a
                                           	BANKSEL	STK00
000077   518f     MOV	0x8f, R0             	MOV	STK00, R0
000078   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	PAGESEL	_Delay_ms
000079   d029     CALL	#0x29               	CALL	_Delay_ms
                                           	PAGESEL	$
                                           ;	op : GOTO
00007a   c075     JMP	#0x75                	JMP	_00033_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
00007b   0008     CRET                     	CRET	
                                           ; exit point of _main
                                           
                                           
                                           
                                           func._pwm_function	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _pwm_function	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;5 compiler assigned registers:
                                           ;   r0x1001
                                           ;   r0x1002
                                           ;   r0x1003
                                           ;   r0x1004
                                           ;   r0x1005
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _pwm_function	;Function start
                                           ; 2 exit points
                                           ;	op : IFX
                                           ;	.line	97; "../main.c"	if(direction)
000002   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	BANKSEL	_pwm_function_direction_1_1
000003   3095     ORL	R0, 0x95             	ORL	R0, _pwm_function_direction_1_1
000004   7203     JNB	0x3, 2               	JNB	PSW, 2
000005   c020     JMP	#0x20                	JMP	_00023_DS_
                                           ;	op : +
                                           ;	.line	99; "../main.c"	PWM1L++;						//PWM1Ôö´óÕ¼¿Õ±È
000006   0b13     INC	0x13                 	INC	_PWM1L
                                           ;	op : +
                                           ;	.line	100; "../main.c"	PWM2L++;						//PWM2Ôö´óÕ¼¿Õ±È
000007   0b33     INC	0x33                 	INC	_PWM2L
                                           ;	op : CAST
                                           ;	.line	101; "../main.c"	if(PWM1L > (PP1-1) )
000008   0e16     MOVZ	R0, 0x16            	MOVZ	R0, _PP1
                                           	BANKSEL	r0x1001
000009   5191     MOV	0x91, R0             	MOV	r0x1001, R0
                                           	BANKSEL	r0x1002
00000a   0390     CLR	0x90                 	CLR	r0x1002
                                           ;	op : -
00000b   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	r0x1001
00000c   2191     ADD	0x91, R0             	ADD	r0x1001, R0
00000d   7003     JNB	0x3, 0               	JNB	PSW, 0
00000e   c010     JMP	#0x10                	JMP	_00042_DS_
                                           	BANKSEL	r0x1002
00000f   0790     DEC	0x90                 	DEC	r0x1002
                                           ;	op : CAST
                                           _00042_DS_
000010   0e13     MOVZ	R0, 0x13            	MOVZ	R0, _PWM1L
                                           	BANKSEL	r0x1003
000011   5192     MOV	0x92, R0             	MOV	r0x1003, R0
                                           ;;1	CLR	r0x1004
                                           ;	op : >
                                           	BANKSEL	r0x1002
000012   0e90     MOVZ	R0, 0x90            	MOVZ	R0, r0x1002
000013   8080     ADD	R0, #0x80            	ADD	R0,# 0x80
                                           	BANKSEL	r0x1005
000014   5194     MOV	0x94, R0             	MOV	r0x1005, R0
000015   9800     MOV	R0, #0               	MOV	R0,# 0x00
000016   8080     ADD	R0, #0x80            	ADD	R0,# 0x80
                                           	BANKSEL	r0x1005
000017   3894     SUB	R0, 0x94             	SUB	R0, r0x1005
                                           ;comparing bytes at offset 1
000018   7a03     JB	0x3, 2                	JB	PSW, 2
000019   c01c     JMP	#0x1c                	JMP	_00030_DS_
                                           	BANKSEL	r0x1003
00001a   0e92     MOVZ	R0, 0x92            	MOVZ	R0, r0x1003
                                           	BANKSEL	r0x1001
00001b   3891     SUB	R0, 0x91             	SUB	R0, r0x1001
                                           _00030_DS_
00001c   7003     JNB	0x3, 0               	JNB	PSW, 0
00001d   c028     JMP	#0x28                	JMP	_00025_DS_
                                           ;	op : =
                                           ;	.line	103; "../main.c"	direction=0;				//»»Ïò
                                           	BANKSEL	_pwm_function_direction_1_1
00001e   0395     CLR	0x95                 	CLR	_pwm_function_direction_1_1
                                           ;	op : GOTO
00001f   c028     JMP	#0x28                	JMP	_00025_DS_
                                           ;	op : LABEL
                                           ;	op : -
                                           _00023_DS_
                                           ;	.line	108; "../main.c"	PWM1L--;						//PWM1¼õÐ¡Õ¼¿Õ±È
000020   0713     DEC	0x13                 	DEC	_PWM1L
                                           ;	op : -
                                           ;	.line	109; "../main.c"	PWM2L--;						//PWM1¼õÐ¡Õ¼¿Õ±È
000021   0733     DEC	0x33                 	DEC	_PWM2L
                                           ;	op : IFX
                                           ;	.line	110; "../main.c"	if(PWM1L==0)
000022   9800     MOV	R0, #0               	MOV	R0,# 0x00
000023   3013     ORL	R0, 0x13             	ORL	R0, _PWM1L
000024   7a03     JB	0x3, 2                	JB	PSW, 2
000025   c028     JMP	#0x28                	JMP	_00025_DS_
                                           ;	op : =
                                           ;	.line	112; "../main.c"	direction=1;				//»»Ïò
000026   9801     MOV	R0, #0x1             	MOV	R0,# 0x01
                                           	BANKSEL	_pwm_function_direction_1_1
000027   5195     MOV	0x95, R0             	MOV	_pwm_function_direction_1_1, R0
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
                                           _00025_DS_
000028   0008     CRET                     	CRET	
                                           ; exit point of _pwm_function
                                           
                                           
                                           
                                           func._init_pwm	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _init_pwm	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _init_pwm	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	68; "../main.c"	T1CTL = 0X01;			//T1Ô¤·ÖÆµ±È=1£¬Æô¶¯T1
00005d   9801     MOV	R0, #0x1             	MOV	R0,# 0x01
00005e   5110     MOV	0x10, R0             	MOV	_T1CTL, R0
                                           ;	op : =
                                           ;	.line	69; "../main.c"	T1L = 0;
00005f   030e     CLR	0xe                  	CLR	_T1L
                                           ;	op : =
                                           ;	.line	70; "../main.c"	T1H = 0;
000060   030f     CLR	0xf                  	CLR	_T1H
                                           ;	op : =
                                           ;	.line	71; "../main.c"	PP1 = 0xff;				//PWM1µÄÖÜÆÚ¼Ä´æÆ÷ £¬·Ö±æÂÊÎª255£¬T=(255+1)*4*(1/16MHz)*1=64us£¬F=1/T=15.6KHz
000061   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
000062   5116     MOV	0x16, R0             	MOV	_PP1, R0
                                           ;	op : =
                                           ;	.line	72; "../main.c"	PP2 = 0xff;				//PWM2µÄÖÜÆÚ¼Ä´æÆ÷ £¬·Ö±æÂÊÎª255£¬T=(255+1)*4*(1/16MHz)*1=64us£¬F=1/T=15.6KHz
000063   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
000064   5132     MOV	0x32, R0             	MOV	_PP2, R0
                                           ;	op : RIGHT_OP
                                           ;	.line	73; "../main.c"	PWM1L = PP1/2;			//PWM1³õÊ¼»¯Õ¼¿Õ±ÈÎª50%
000065   6003     CLR	0x3, 0               	CLR	PSW, 0
000066   1016     RRCR	0x16                	RRCR	_PP1
000067   5113     MOV	0x13, R0             	MOV	_PWM1L, R0
                                           ;	op : RIGHT_OP
                                           ;	.line	74; "../main.c"	PWM2L = PP2/2;			//PWM2³õÊ¼»¯Õ¼¿Õ±ÈÎª50%
000068   6003     CLR	0x3, 0               	CLR	PSW, 0
000069   1032     RRCR	0x32                	RRCR	_PP2
00006a   5133     MOV	0x33, R0             	MOV	_PWM2L, R0
                                           ;	op : =
                                           ;	.line	76; "../main.c"	PWMCTL = 0;				//¹Ø±ÕPWM1¡¢PWM2
00006b   0315     CLR	0x15                 	CLR	_PWMCTL
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
00006c   0008     CRET                     	CRET	
                                           ; exit point of _init_pwm
                                           
                                           
                                           
                                           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	43; "../main.c"	OSCCTL = 0x50;          //ÉèÖÃÎª16M
00007c   9850     MOV	R0, #0x50            	MOV	R0,# 0x50
00007d   512f     MOV	0x2f, R0             	MOV	_OSCCTL, R0
                                           ;	op : =
                                           ;	.line	46; "../main.c"	TR0 = 0x08;				//ÉèÖÃP03¶Ë¿ÚÎªÊäÈë£¬P0ÆäËûI/O¿ÚÎªÊä³ö
00007e   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
00007f   5125     MOV	0x25, R0             	MOV	_TR0, R0
                                           ;	op : =
                                           ;	.line	47; "../main.c"	TR1 = 0x00;				//ÉèÖÃP1¶Ë¿ÚÎªÊä³ö
000080   0327     CLR	0x27                 	CLR	_TR1
                                           ;	op : =
                                           ;	.line	48; "../main.c"	TR2 = 0x00;				//ÉèÖÃP2¶Ë¿ÚÎªÊä³ö
000081   0326     CLR	0x26                 	CLR	_TR2
                                           ;	op : =
                                           ;	.line	49; "../main.c"	P0 = 0;
000082   0305     CLR	0x5                  	CLR	_P0
                                           ;	op : =
                                           ;	.line	50; "../main.c"	P1 = 0;
000083   0307     CLR	0x7                  	CLR	_P1
                                           ;	op : =
                                           ;	.line	51; "../main.c"	P2 = 0;
000084   0306     CLR	0x6                  	CLR	_P2
                                           ;	op : =
                                           ;	.line	52; "../main.c"	P0LR = 0;				//P0¿ÚÊä³öµÍµçÆ½
000085   0345     CLR	0x45                 	CLR	_P0LR
                                           ;	op : =
                                           ;	.line	53; "../main.c"	P1LR = 0;				//P1¿ÚÊä³öµÍµçÆ½
000086   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : =
                                           ;	.line	54; "../main.c"	P2LR = 0;				//P2¿ÚÊä³öµÍµçÆ½
000087   0346     CLR	0x46                 	CLR	_P2LR
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
000088   0008     CRET                     	CRET	
                                           ; exit point of _init_mcu
                                           
                                           
                                           
                                           func._Delay_ms	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _Delay_ms	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;5 compiler assigned registers:
                                           ;   r0x1001
                                           ;   STK00
                                           ;   r0x1002
                                           ;   r0x1003
                                           ;   r0x1004
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _Delay_ms	;Function start
                                           ; 2 exit points
                                           ;	op : RECEIVE
                                           ;	.line	24; "../main.c"	void Delay_ms(uint ms_data)
                                           	BANKSEL	r0x1001
000029   5191     MOV	0x91, R0             	MOV	r0x1001, R0
                                           	BANKSEL	STK00
00002a   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1002
00002b   5190     MOV	0x90, R0             	MOV	r0x1002, R0
                                           ;	op : =
                                           ;	op : LABEL
                                           ;	op : =
                                           _00004_DS_
                                           ;	.line	27; "../main.c"	while(ms_data--)
                                           	BANKSEL	r0x1002
00002c   0e90     MOVZ	R0, 0x90            	MOVZ	R0, r0x1002
                                           	BANKSEL	r0x1003
00002d   5192     MOV	0x92, R0             	MOV	r0x1003, R0
                                           	BANKSEL	r0x1001
00002e   0e91     MOVZ	R0, 0x91            	MOVZ	R0, r0x1001
                                           	BANKSEL	r0x1004
00002f   5193     MOV	0x93, R0             	MOV	r0x1004, R0
                                           ;	op : -
000030   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	r0x1002
000031   2190     ADD	0x90, R0             	ADD	r0x1002, R0
000032   7003     JNB	0x3, 0               	JNB	PSW, 0
000033   c035     JMP	#0x35                	JMP	_00043_DS_
                                           	BANKSEL	r0x1001
000034   0791     DEC	0x91                 	DEC	r0x1001
                                           ;	op : IFX
                                           _00043_DS_
                                           	BANKSEL	r0x1003
000035   0e92     MOVZ	R0, 0x92            	MOVZ	R0, r0x1003
                                           	BANKSEL	r0x1004
000036   3093     ORL	R0, 0x93             	ORL	R0, r0x1004
000037   7203     JNB	0x3, 2               	JNB	PSW, 2
000038   c043     JMP	#0x43                	JMP	_00007_DS_
                                           ;	op : =
                                           ;	.line	30; "../main.c"	while(i--);
000039   987c     MOV	R0, #0x7c            	MOV	R0,# 0x7c
                                           	BANKSEL	r0x1003
00003a   5192     MOV	0x92, R0             	MOV	r0x1003, R0
                                           ;	op : LABEL
                                           ;	op : =
                                           _00001_DS_
                                           	BANKSEL	r0x1003
00003b   0e92     MOVZ	R0, 0x92            	MOVZ	R0, r0x1003
                                           	BANKSEL	r0x1004
00003c   5193     MOV	0x93, R0             	MOV	r0x1004, R0
                                           ;	op : -
                                           	BANKSEL	r0x1003
00003d   0792     DEC	0x92                 	DEC	r0x1003
                                           ;	op : IFX
00003e   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	BANKSEL	r0x1004
00003f   3093     ORL	R0, 0x93             	ORL	R0, r0x1004
000040   7203     JNB	0x3, 2               	JNB	PSW, 2
000041   c02c     JMP	#0x2c                	JMP	_00004_DS_
                                           ;	op : GOTO
000042   c03b     JMP	#0x3b                	JMP	_00001_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
                                           _00007_DS_
000043   0008     CRET                     	CRET	
                                           ; exit point of _Delay_ms
                                           
                                           
                                           ;	code size estimation:
                                           ;	  122+   31 =   153 instructions (  368 byte)
                                           
                                           
                                           	.end
                                           .config
002007   06d0     DECR	0xd0               
002008   ffff     NOPZ                    
                                           func.__sdcc_gsinit_startup
000098   d089     CALL	#0x89              
000099   0008     CRET                    
                                           .code
000044   d3fa     CALL	#0x3fa             
000045   512a     MOV	0x2a, R0            
000046   ffff     NOPZ                    
000047   ffff     NOPZ                    
000048   d3fb     CALL	#0x3fb             
000049   511c     MOV	0x1c, R0            
00004a   ffff     NOPZ                    
00004b   ffff     NOPZ                    
00004c   d3fc     CALL	#0x3fc             
00004d   514d     MOV	0x4d, R0            
00004e   ffff     NOPZ                    
00004f   ffff     NOPZ                    
000050   d3fd     CALL	#0x3fd             
000051   514c     MOV	0x4c, R0            
000052   ffff     NOPZ                    
000053   ffff     NOPZ                    
000054   d3fe     CALL	#0x3fe             
000055   5137     MOV	0x37, R0            
000056   ffff     NOPZ                    
000057   ffff     NOPZ                    
000058   d3ff     CALL	#0x3ff             
000059   5130     MOV	0x30, R0            
00005a   ffff     NOPZ                    
00005b   ffff     NOPZ                    
00005c   0008     CRET                    
                                           .cinit
000089   9880     MOV	R0, #0x80           
00008a   9915     MOV	R1, #0x15           
00008b   0000     NOP                     
00008c   d08f     CALL	#0x8f              
00008d   0395     CLR	0x95                
00008e   0008     CRET                    
00008f   020a     CLR	R2                  
000090   f750     ST	[R0], R2             
000091   ff10     INC	R0                  
000092   ff59     DECJZ	R1                
000093   c090     JMP	#0x90               
000094   0008     CRET                    
