gplink-1.1.0
Copyright (c) 1998-2005 gputils project
Listing File Generated: 10-21-2015  19:41:56
 
 
Address  Value    Disassembly              Source
-------  -----    -----------              ------
                                           ;--------------------------------------------------------
                                           ; File Created by ChiponCC : aolisn inc.
                                           ; Version 3.0.4#6752 (Jul  7 2015 17:19:27) (MSVC)
                                           ; This file was generated Wed Oct 21 19:41:55 2015
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../config_set.c"
                                           	.list	p=KF8V216
                                           	.radix dec
                                           	.include "KF8V216.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8V216 
                                           ;       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
                                           T2L               .EQU                0x11
                                           T2CTL             .EQU                0x12
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           CM1CTL            .EQU                0x19
                                           AMPCTL            .EQU                0x1B
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           AMPDT             .EQU                0x20
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           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
                                           PUR               .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           T2CCRH            .EQU                0x40
                                           T2H               .EQU                0x41
                                           PP4H              .EQU                0x42
                                           PWM4L1            .EQU                0x43
                                           PWM4H1            .EQU                0x44
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           PP4L              .EQU                0x52
                                           T2CCRL            .EQU                0x54
                                           PWM4L0            .EQU                0x55
                                           PWM4H0            .EQU                0x56
                                           PWM4CTL0          .EQU                0x57
                                           PWM4CTL1          .EQU                0x5B
                                           P4ASCTL           .EQU                0x5C
                                           PATRCTL           .EQU                0x5D
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           RP0                .EQU                5
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _RP0               .EQU                5
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P15                .EQU                5
                                           P14                .EQU                4
                                           P13                .EQU                3
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _P15               .EQU                5
                                           _P14               .EQU                4
                                           _P13               .EQU                3
                                           _P12               .EQU                2
                                           _P11               .EQU                1
                                           _P10               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           C1IF               .EQU                3
                                           PWM2IF             .EQU                2
                                           T2IF               .EQU                1
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _C1IF              .EQU                3
                                           _PWM2IF            .EQU                2
                                           _T2IF              .EQU                1
                                           _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
                                           
                                           ;T2CTL Bits-----------------------------------
                                           T2CKBS3            .EQU                6
                                           T2CKBS2            .EQU                5
                                           T2CKBS1            .EQU                4
                                           T2CKBS0            .EQU                3
                                           T2ON               .EQU                2
                                           T2CKPS1            .EQU                1
                                           T2CKPS0            .EQU                0
                                           _T2CKBS3           .EQU                6
                                           _T2CKBS2           .EQU                5
                                           _T2CKBS1           .EQU                4
                                           _T2CKBS0           .EQU                3
                                           _T2ON              .EQU                2
                                           _T2CKPS1           .EQU                1
                                           _T2CKPS0           .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;CM1CTL Bits----------------------------------
                                           C1OE               .EQU                7
                                           C1INS              .EQU                6
                                           C1P                .EQU                2
                                           C1OUT              .EQU                1
                                           C1EN               .EQU                0
                                           _C1OE              .EQU                7
                                           _C1INS             .EQU                6
                                           _C1P               .EQU                2
                                           _C1OUT             .EQU                1
                                           _C1EN              .EQU                0
                                           
                                           ;AMPCTL Bits----------------------------------
                                           CALIRD             .EQU                7
                                           CALIEN             .EQU                1
                                           AMPON              .EQU                0
                                           _CALIRD            .EQU                7
                                           _CALIEN            .EQU                1
                                           _AMPON             .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           T2CCRON            .EQU                6
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _T2CCRON           .EQU                6
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;AMPDT Bits-----------------------------------
                                           AMPDT7             .EQU                7
                                           AMPDT6             .EQU                6
                                           AMPDT5             .EQU                5
                                           AMPDT4             .EQU                4
                                           AMPDT3             .EQU                3
                                           AMPDT2             .EQU                2
                                           AMPDT1             .EQU                1
                                           AMPDT0             .EQU                0
                                           _AMPDT7            .EQU                7
                                           _AMPDT6            .EQU                6
                                           _AMPDT5            .EQU                5
                                           _AMPDT4            .EQU                4
                                           _AMPDT3            .EQU                3
                                           _AMPDT2            .EQU                2
                                           _AMPDT1            .EQU                1
                                           _AMPDT0            .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PC1                .EQU                3
                                           PPWM2              .EQU                2
                                           PT2                .EQU                1
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PC1               .EQU                3
                                           _PPWM2             .EQU                2
                                           _PT2               .EQU                1
                                           _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
                                           TR26               .EQU                6
                                           TR25               .EQU                5
                                           TR24               .EQU                4
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR17               .EQU                7
                                           TR16               .EQU                6
                                           TR15               .EQU                5
                                           TR14               .EQU                4
                                           TR13               .EQU                3
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR17              .EQU                7
                                           _TR16              .EQU                6
                                           _TR15              .EQU                5
                                           _TR14              .EQU                4
                                           _TR13              .EQU                3
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .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
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           C1IE               .EQU                3
                                           PWM2IE             .EQU                2
                                           T2IE               .EQU                1
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _C1IE              .EQU                3
                                           _PWM2IE            .EQU                2
                                           _T2IE              .EQU                1
                                           _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-----------------------------------
                                           ANS7               .EQU                7
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS7              .EQU                7
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR Bits-------------------------------------
                                           PUR5               .EQU                5
                                           PUR4               .EQU                4
                                           PUR2               .EQU                2
                                           PUR1               .EQU                1
                                           PUR0               .EQU                0
                                           _PUR5              .EQU                5
                                           _PUR4              .EQU                4
                                           _PUR2              .EQU                2
                                           _PUR1              .EQU                1
                                           _PUR0              .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCCALIEN          .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM1             .EQU                1
                                           ADCIM0             .EQU                0
                                           _ADCCALIEN         .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM1            .EQU                1
                                           _ADCIM0            .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           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
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR5              .EQU                5
                                           P1LR4              .EQU                4
                                           P1LR3              .EQU                3
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR5             .EQU                5
                                           _P1LR4             .EQU                4
                                           _P1LR3             .EQU                3
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                           
                                           ;PWM4CTL0 Bits--------------------------------
                                           P4M1               .EQU                7
                                           P4M0               .EQU                6
                                           PWM4M3             .EQU                3
                                           PWM4M2             .EQU                2
                                           PWM4M1             .EQU                1
                                           PWM4M0             .EQU                0
                                           _P4M1              .EQU                7
                                           _P4M0              .EQU                6
                                           _PWM4M3            .EQU                3
                                           _PWM4M2            .EQU                2
                                           _PWM4M1            .EQU                1
                                           _PWM4M0            .EQU                0
                                           
                                           ;PWM4CTL1 Bits--------------------------------
                                           PRSEN              .EQU                7
                                           PDC6               .EQU                6
                                           PDC5               .EQU                5
                                           PDC4               .EQU                4
                                           PDC3               .EQU                3
                                           PDC2               .EQU                2
                                           PDC1               .EQU                1
                                           PDC0               .EQU                0
                                           _PRSEN             .EQU                7
                                           _PDC6              .EQU                6
                                           _PDC5              .EQU                5
                                           _PDC4              .EQU                4
                                           _PDC3              .EQU                3
                                           _PDC2              .EQU                2
                                           _PDC1              .EQU                1
                                           _PDC0              .EQU                0
                                           
                                           ;P4ASCTL Bits---------------------------------
                                           P4ASE              .EQU                7
                                           P4ASS2             .EQU                6
                                           P4ASS1             .EQU                5
                                           P4ASS0             .EQU                4
                                           P4SSAC1            .EQU                3
                                           P4SSAC0            .EQU                2
                                           P4SSBD1            .EQU                1
                                           P4SSBD0            .EQU                0
                                           _P4ASE             .EQU                7
                                           _P4ASS2            .EQU                6
                                           _P4ASS1            .EQU                5
                                           _P4ASS0            .EQU                4
                                           _P4SSAC1           .EQU                3
                                           _P4SSAC0           .EQU                2
                                           _P4SSBD1           .EQU                1
                                           _P4SSBD0           .EQU                0
                                           
                                           ;PATRCTL Bits---------------------------------
                                           STRSYNC            .EQU                4
                                           STREND             .EQU                3
                                           STRENC             .EQU                2
                                           STRENB             .EQU                1
                                           STRENA             .EQU                0
                                           _STRSYNC           .EQU                4
                                           _STREND            .EQU                3
                                           _STRENC            .EQU                2
                                           _STRENB            .EQU                1
                                           _STRENA            .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; config word(s)
                                           ;--------------------------------------------------------
                                           	__config 0x690
                                           ;--------------------------------------------------------
                                           ; 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 (Jul  7 2015 17:19:27) (MSVC)
                                           ; This file was generated Wed Oct 21 19:41:55 2015
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../main.c"
                                           	.list	p=KF8V216
                                           	.radix dec
                                           	.include "KF8V216.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8V216 
                                           ;       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
                                           T2L               .EQU                0x11
                                           T2CTL             .EQU                0x12
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           CM1CTL            .EQU                0x19
                                           AMPCTL            .EQU                0x1B
                                           VRECAL1           .EQU                0x1C
                                           ANSEH             .EQU                0x1D
                                           ADCDATAH          .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           AMPDT             .EQU                0x20
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           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
                                           PUR               .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           ADCDATAL          .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           T2CCRH            .EQU                0x40
                                           T2H               .EQU                0x41
                                           PP4H              .EQU                0x42
                                           PWM4L1            .EQU                0x43
                                           PWM4H1            .EQU                0x44
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           PP4L              .EQU                0x52
                                           T2CCRL            .EQU                0x54
                                           PWM4L0            .EQU                0x55
                                           PWM4H0            .EQU                0x56
                                           PWM4CTL0          .EQU                0x57
                                           PWM4CTL1          .EQU                0x5B
                                           P4ASCTL           .EQU                0x5C
                                           PATRCTL           .EQU                0x5D
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           RP0                .EQU                5
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _RP0               .EQU                5
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           
                                           ;P1 Bits--------------------------------------
                                           P17                .EQU                7
                                           P16                .EQU                6
                                           P15                .EQU                5
                                           P14                .EQU                4
                                           P13                .EQU                3
                                           P12                .EQU                2
                                           P11                .EQU                1
                                           P10                .EQU                0
                                           _P17               .EQU                7
                                           _P16               .EQU                6
                                           _P15               .EQU                5
                                           _P14               .EQU                4
                                           _P13               .EQU                3
                                           _P12               .EQU                2
                                           _P11               .EQU                1
                                           _P10               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           C1IF               .EQU                3
                                           PWM2IF             .EQU                2
                                           T2IF               .EQU                1
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _C1IF              .EQU                3
                                           _PWM2IF            .EQU                2
                                           _T2IF              .EQU                1
                                           _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
                                           
                                           ;T2CTL Bits-----------------------------------
                                           T2CKBS3            .EQU                6
                                           T2CKBS2            .EQU                5
                                           T2CKBS1            .EQU                4
                                           T2CKBS0            .EQU                3
                                           T2ON               .EQU                2
                                           T2CKPS1            .EQU                1
                                           T2CKPS0            .EQU                0
                                           _T2CKBS3           .EQU                6
                                           _T2CKBS2           .EQU                5
                                           _T2CKBS1           .EQU                4
                                           _T2CKBS0           .EQU                3
                                           _T2ON              .EQU                2
                                           _T2CKPS1           .EQU                1
                                           _T2CKPS0           .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           PWM2ON             .EQU                1
                                           PWM1ON             .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _PWM2ON            .EQU                1
                                           _PWM1ON            .EQU                0
                                           
                                           ;CM1CTL Bits----------------------------------
                                           C1OE               .EQU                7
                                           C1INS              .EQU                6
                                           C1P                .EQU                2
                                           C1OUT              .EQU                1
                                           C1EN               .EQU                0
                                           _C1OE              .EQU                7
                                           _C1INS             .EQU                6
                                           _C1P               .EQU                2
                                           _C1OUT             .EQU                1
                                           _C1EN              .EQU                0
                                           
                                           ;AMPCTL Bits----------------------------------
                                           CALIRD             .EQU                7
                                           CALIEN             .EQU                1
                                           AMPON              .EQU                0
                                           _CALIRD            .EQU                7
                                           _CALIEN            .EQU                1
                                           _AMPON             .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           T2CCRON            .EQU                6
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _T2CCRON           .EQU                6
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;AMPDT Bits-----------------------------------
                                           AMPDT7             .EQU                7
                                           AMPDT6             .EQU                6
                                           AMPDT5             .EQU                5
                                           AMPDT4             .EQU                4
                                           AMPDT3             .EQU                3
                                           AMPDT2             .EQU                2
                                           AMPDT1             .EQU                1
                                           AMPDT0             .EQU                0
                                           _AMPDT7            .EQU                7
                                           _AMPDT6            .EQU                6
                                           _AMPDT5            .EQU                5
                                           _AMPDT4            .EQU                4
                                           _AMPDT3            .EQU                3
                                           _AMPDT2            .EQU                2
                                           _AMPDT1            .EQU                1
                                           _AMPDT0            .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PC1                .EQU                3
                                           PPWM2              .EQU                2
                                           PT2                .EQU                1
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PC1               .EQU                3
                                           _PPWM2             .EQU                2
                                           _PT2               .EQU                1
                                           _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
                                           TR26               .EQU                6
                                           TR25               .EQU                5
                                           TR24               .EQU                4
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           
                                           ;TR1 Bits-------------------------------------
                                           TR17               .EQU                7
                                           TR16               .EQU                6
                                           TR15               .EQU                5
                                           TR14               .EQU                4
                                           TR13               .EQU                3
                                           TR12               .EQU                2
                                           TR11               .EQU                1
                                           TR10               .EQU                0
                                           _TR17              .EQU                7
                                           _TR16              .EQU                6
                                           _TR15              .EQU                5
                                           _TR14              .EQU                4
                                           _TR13              .EQU                3
                                           _TR12              .EQU                2
                                           _TR11              .EQU                1
                                           _TR10              .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
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           C1IE               .EQU                3
                                           PWM2IE             .EQU                2
                                           T2IE               .EQU                1
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _C1IE              .EQU                3
                                           _PWM2IE            .EQU                2
                                           _T2IE              .EQU                1
                                           _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-----------------------------------
                                           ANS7               .EQU                7
                                           ANS6               .EQU                6
                                           ANS5               .EQU                5
                                           ANS4               .EQU                4
                                           ANS3               .EQU                3
                                           ANS2               .EQU                2
                                           ANS1               .EQU                1
                                           ANS0               .EQU                0
                                           _ANS7              .EQU                7
                                           _ANS6              .EQU                6
                                           _ANS5              .EQU                5
                                           _ANS4              .EQU                4
                                           _ANS3              .EQU                3
                                           _ANS2              .EQU                2
                                           _ANS1              .EQU                1
                                           _ANS0              .EQU                0
                                           
                                           ;PUR Bits-------------------------------------
                                           PUR5               .EQU                5
                                           PUR4               .EQU                4
                                           PUR2               .EQU                2
                                           PUR1               .EQU                1
                                           PUR0               .EQU                0
                                           _PUR5              .EQU                5
                                           _PUR4              .EQU                4
                                           _PUR2              .EQU                2
                                           _PUR1              .EQU                1
                                           _PUR0              .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCCALIEN          .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM1             .EQU                1
                                           ADCIM0             .EQU                0
                                           _ADCCALIEN         .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM1            .EQU                1
                                           _ADCIM0            .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           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
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           
                                           ;P1LR Bits------------------------------------
                                           P1LR7              .EQU                7
                                           P1LR6              .EQU                6
                                           P1LR5              .EQU                5
                                           P1LR4              .EQU                4
                                           P1LR3              .EQU                3
                                           P1LR2              .EQU                2
                                           P1LR1              .EQU                1
                                           P1LR0              .EQU                0
                                           _P1LR7             .EQU                7
                                           _P1LR6             .EQU                6
                                           _P1LR5             .EQU                5
                                           _P1LR4             .EQU                4
                                           _P1LR3             .EQU                3
                                           _P1LR2             .EQU                2
                                           _P1LR1             .EQU                1
                                           _P1LR0             .EQU                0
                                           
                                           ;PWM4CTL0 Bits--------------------------------
                                           P4M1               .EQU                7
                                           P4M0               .EQU                6
                                           PWM4M3             .EQU                3
                                           PWM4M2             .EQU                2
                                           PWM4M1             .EQU                1
                                           PWM4M0             .EQU                0
                                           _P4M1              .EQU                7
                                           _P4M0              .EQU                6
                                           _PWM4M3            .EQU                3
                                           _PWM4M2            .EQU                2
                                           _PWM4M1            .EQU                1
                                           _PWM4M0            .EQU                0
                                           
                                           ;PWM4CTL1 Bits--------------------------------
                                           PRSEN              .EQU                7
                                           PDC6               .EQU                6
                                           PDC5               .EQU                5
                                           PDC4               .EQU                4
                                           PDC3               .EQU                3
                                           PDC2               .EQU                2
                                           PDC1               .EQU                1
                                           PDC0               .EQU                0
                                           _PRSEN             .EQU                7
                                           _PDC6              .EQU                6
                                           _PDC5              .EQU                5
                                           _PDC4              .EQU                4
                                           _PDC3              .EQU                3
                                           _PDC2              .EQU                2
                                           _PDC1              .EQU                1
                                           _PDC0              .EQU                0
                                           
                                           ;P4ASCTL Bits---------------------------------
                                           P4ASE              .EQU                7
                                           P4ASS2             .EQU                6
                                           P4ASS1             .EQU                5
                                           P4ASS0             .EQU                4
                                           P4SSAC1            .EQU                3
                                           P4SSAC0            .EQU                2
                                           P4SSBD1            .EQU                1
                                           P4SSBD0            .EQU                0
                                           _P4ASE             .EQU                7
                                           _P4ASS2            .EQU                6
                                           _P4ASS1            .EQU                5
                                           _P4ASS0            .EQU                4
                                           _P4SSAC1           .EQU                3
                                           _P4SSAC0           .EQU                2
                                           _P4SSBD1           .EQU                1
                                           _P4SSBD0           .EQU                0
                                           
                                           ;PATRCTL Bits---------------------------------
                                           STRSYNC            .EQU                4
                                           STREND             .EQU                3
                                           STRENC             .EQU                2
                                           STRENB             .EQU                1
                                           STRENA             .EQU                0
                                           _STRSYNC           .EQU                4
                                           _STREND            .EQU                3
                                           _STRENC            .EQU                2
                                           _STRENB            .EQU                1
                                           _STRENA            .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	_T2CTL_bits
                                           	.extern	_PWMCTL_bits
                                           	.extern	_CM1CTL_bits
                                           	.extern	_AMPCTL_bits
                                           	.extern	_ANSEH_bits
                                           	.extern	_ADCCTL0_bits
                                           	.extern	_AMPDT_bits
                                           	.extern	_OPTR_bits
                                           	.extern	_IP0_bits
                                           	.extern	_IP1_bits
                                           	.extern	_TR0_bits
                                           	.extern	_TR2_bits
                                           	.extern	_TR1_bits
                                           	.extern	_VRECTL1_bits
                                           	.extern	_EIE1_bits
                                           	.extern	_PCTL_bits
                                           	.extern	_OSCCTL_bits
                                           	.extern	_ANSEL_bits
                                           	.extern	_PUR_bits
                                           	.extern	_IOCL_bits
                                           	.extern	_ADCCTL1_bits
                                           	.extern	_P0LR_bits
                                           	.extern	_P2LR_bits
                                           	.extern	_P1LR_bits
                                           	.extern	_PWM4CTL0_bits
                                           	.extern	_PWM4CTL1_bits
                                           	.extern	_P4ASCTL_bits
                                           	.extern	_PATRCTL_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	_T2L
                                           	.extern	_T2CTL
                                           	.extern	_PWM1L
                                           	.extern	_PWM1H
                                           	.extern	_PWMCTL
                                           	.extern	_PP1
                                           	.extern	_CM1CTL
                                           	.extern	_AMPCTL
                                           	.extern	_VRECAL1
                                           	.extern	_ANSEH
                                           	.extern	_ADCDATAH
                                           	.extern	_ADCCTL0
                                           	.extern	_AMPDT
                                           	.extern	_OPTR
                                           	.extern	_IP0
                                           	.extern	_IP1
                                           	.extern	_TR0
                                           	.extern	_TR2
                                           	.extern	_TR1
                                           	.extern	_VRECAL2
                                           	.extern	_VRECTL1
                                           	.extern	_EIE1
                                           	.extern	_PCTL
                                           	.extern	_OSCCTL
                                           	.extern	_OSCCAL0
                                           	.extern	_ANSEL
                                           	.extern	_PP2
                                           	.extern	_PWM2L
                                           	.extern	_PWM2H
                                           	.extern	_PUR
                                           	.extern	_IOCL
                                           	.extern	_OSCCAL1
                                           	.extern	_ADCDATAL
                                           	.extern	_ADCCTL1
                                           	.extern	_T2CCRH
                                           	.extern	_T2H
                                           	.extern	_PP4H
                                           	.extern	_PWM4L1
                                           	.extern	_PWM4H1
                                           	.extern	_P0LR
                                           	.extern	_P2LR
                                           	.extern	_P1LR
                                           	.extern	_OSCCAL2
                                           	.extern	_OSCCAL3
                                           	.extern	_PP4L
                                           	.extern	_T2CCRL
                                           	.extern	_PWM4L0
                                           	.extern	_PWM4H0
                                           	.extern	_PWM4CTL0
                                           	.extern	_PWM4CTL1
                                           	.extern	_P4ASCTL
                                           	.extern	_PATRCTL
                                           	.extern	__R2PCL
                                           	.extern	_startup
                                           	.extern	__sdcc_gsinit_startup
                                           ;--------------------------------------------------------
                                           ; global declarations
                                           ;--------------------------------------------------------
                                           	.global	_Delay_200us
                                           	.global	_Display
                                           	.global	_Adc_read
                                           	.global	_Adc_fun
                                           	.global	_Init_fun
                                           	.global	_main
                                           	.global	_int_fun0
                                           	.global	_int_fun1
                                           	.global	_Unit
                                           	.global	_Decade
                                           	.global	_Hundred
                                           	.global	_Thousand
                                           	.global	_Arr_num
                                           
                                           	.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
                                           ;--------------------------------------------------------
                                           UD_main_0	.udata
                                           _Unit	.res	1
                                           
                                           UD_main_1	.udata
                                           _Decade	.res	1
                                           
                                           UD_main_2	.udata
                                           _Hundred	.res	1
                                           
                                           UD_main_3	.udata
                                           _Thousand	.res	1
                                           
                                           ;--------------------------------------------------------
                                           ; absolute symbol definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; compiler-defined variables
                                           ;--------------------------------------------------------
                                           UDL_main_0	.udata
                                           r0x1012	.res	1
                                           UDL_main_1	.udata
                                           r0x1011	.res	1
                                           UDL_main_2	.udata
                                           r0x1013	.res	1
                                           UDL_main_3	.udata
                                           r0x1014	.res	1
                                           UDL_main_4	.udata
                                           r0x1008	.res	1
                                           UDL_main_5	.udata
                                           r0x1009	.res	1
                                           UDL_main_6	.udata
                                           r0x100A	.res	1
                                           UDL_main_7	.udata
                                           r0x100C	.res	1
                                           UDL_main_8	.udata
                                           r0x100D	.res	1
                                           UDL_main_9	.udata
                                           r0x100E	.res	1
                                           UDL_main_10	.udata
                                           r0x1010	.res	1
                                           UDL_main_11	.udata
                                           r0x100F	.res	1
                                           UDL_main_12	.udata
                                           r0x1005	.res	1
                                           UDL_main_13	.udata
                                           r0x1006	.res	1
                                           UDL_main_14	.udata
                                           r0x1007	.res	1
                                           UDL_main_15	.udata
                                           r0x1004	.res	1
                                           ;--------------------------------------------------------
                                           ; initialized data
                                           ;--------------------------------------------------------
                                           
                                           ID_main_0	.code
                                           _Arr_num
0000e4   b0e7     RRET	R0, #0xe7           	RRET R0, #0xe7
0000e5   b006     RRET	R0, #0x6            	RRET R0, #0x06
0000e6   b0b3     RRET	R0, #0xb3           	RRET R0, #0xb3
0000e7   b037     RRET	R0, #0x37           	RRET R0, #0x37
0000e8   b056     RRET	R0, #0x56           	RRET R0, #0x56
0000e9   b075     RRET	R0, #0x75           	RRET R0, #0x75
0000ea   b0f5     RRET	R0, #0xf5           	RRET R0, #0xf5
0000eb   b007     RRET	R0, #0x7            	RRET R0, #0x07
0000ec   b0f7     RRET	R0, #0xf7           	RRET R0, #0xf7
0000ed   b077     RRET	R0, #0x77           	RRET R0, #0x77
0000ee   b0d7     RRET	R0, #0xd7           	RRET R0, #0xd7
0000ef   b0f4     RRET	R0, #0xf4           	RRET R0, #0xf4
0000f0   b0e1     RRET	R0, #0xe1           	RRET R0, #0xe1
0000f1   b0b6     RRET	R0, #0xb6           	RRET R0, #0xb6
0000f2   b0f1     RRET	R0, #0xf1           	RRET R0, #0xf1
0000f3   b0d1     RRET	R0, #0xd1           	RRET R0, #0xd1
0000f4   b000     RRET	R0, #0              	RRET R0, #0x00
                                           
                                           ;--------------------------------------------------------
                                           ; overlayable items in internal ram 
                                           ;--------------------------------------------------------
                                           ;	.udata_ovr
                                           ;--------------------------------------------------------
                                           ; reset vector 
                                           ;--------------------------------------------------------
                                           STARTUP	.code 0x0000
000000   0000     NOP                      	NOP
                                           	PAGESEL	init_imp
000001   c118     JMP	#0x118               	JMP		init_imp
                                           
                                           	.global	init_imp
                                           INIT_IMP	.code
                                           init_imp
                                           	PAGESEL	_startup
000118   d0c1     CALL	#0xc1               	CALL	_startup
                                           	PAGESEL	__sdcc_gsinit_startup
000119   d11b     CALL	#0x11b              	CALL	__sdcc_gsinit_startup
                                           	PAGESEL	_main
00011a   c083     JMP	#0x83                	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
                                           _00042_DS_
                                           ;	.line	200; "../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
                                           _00044_DS_
                                           ;	.line	207; "../main.c"	}
                                           	IRET	
                                           
                                           
                                           
                                           func._main	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = M
                                           ;***
                                           ;entry:  _main	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   _Init_fun
                                           ;   _Delay_200us
                                           ;   _Adc_read
                                           ;   _Display
                                           ;   _Init_fun
                                           ;   _Delay_200us
                                           ;   _Adc_read
                                           ;   _Display
                                           ;5 compiler assigned registers:
                                           ;   r0x1011
                                           ;   STK00
                                           ;   r0x1012
                                           ;   r0x1013
                                           ;   r0x1014
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _main	;Function start
                                           ; 2 exit points
                                           ;	op : CALL
                                           ;	.line	65; "../main.c"	Init_fun();			                //³õÊ¼»¯
                                           	PAGESEL	_Init_fun
000083   d0f5     CALL	#0xf5               	CALL	_Init_fun
                                           	PAGESEL	$
                                           ;	op : CALL
                                           ;	.line	66; "../main.c"	Delay_200us();
                                           	PAGESEL	_Delay_200us
000084   d112     CALL	#0x112              	CALL	_Delay_200us
                                           	PAGESEL	$
                                           ;	op : LABEL
                                           ;	op : CALL
                                           _00002_DS_
                                           ;	.line	70; "../main.c"	Dis_adc = Adc_read();           //½«ADC²ÉÑù·µ»ØÖµ¸³ÓèDis_adc
                                           	PAGESEL	_Adc_read
000085   d05b     CALL	#0x5b               	CALL	_Adc_read
                                           	PAGESEL	$
000086   6503     CLR	0x3, 5               	BANKSEL	r0x1011
000087   5195     MOV	0x95, R0             	MOV	r0x1011, R0
                                           	BANKSEL	STK00
000088   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1012
000089   5194     MOV	0x94, R0             	MOV	r0x1012, R0
                                           ;	op : BITWISEAND
                                           ;	.line	71; "../main.c"	Unit = Dis_adc&0x0f;            //½«Dis_adcµÄ×îµÍ4Î»¸³ÓèÊýÂë¹ÜµÄ¸öÎ»
00008a   980f     MOV	R0, #0xf             	MOV	R0,# 0x0f
                                           	BANKSEL	r0x1012
00008b   2894     AND	R0, 0x94             	AND	R0, r0x1012
                                           	BANKSEL	_Unit
00008c   5190     MOV	0x90, R0             	MOV	_Unit, R0
                                           	BANKSEL	r0x1013
00008d   5196     MOV	0x96, R0             	MOV	r0x1013, R0
                                           	BANKSEL	r0x1014
00008e   0397     CLR	0x97                 	CLR	r0x1014
                                           ;	op : CAST
                                           ;;102	MOVZ	R0, r0x1013
                                           ;	op : BITWISEAND
                                           ;	.line	72; "../main.c"	Decade = Dis_adc&0xf0;
00008f   98f0     MOV	R0, #0xf0            	MOV	R0,# 0xf0
                                           	BANKSEL	r0x1012
000090   2894     AND	R0, 0x94             	AND	R0, r0x1012
                                           	BANKSEL	_Decade
000091   5191     MOV	0x91, R0             	MOV	_Decade, R0
                                           	BANKSEL	r0x1013
000092   5196     MOV	0x96, R0             	MOV	r0x1013, R0
                                           	BANKSEL	r0x1014
000093   0397     CLR	0x97                 	CLR	r0x1014
                                           ;	op : CAST
                                           ;;101	MOVZ	R0, r0x1013
                                           ;	op : RIGHT_OP
                                           ;	.line	73; "../main.c"	Decade >>= 4;                   //½«Dis_adcµÄµÚ7-4Î»¸³ÓèÊýÂë¹ÜµÄÊ®Î»
                                           	BANKSEL	_Decade
000094   4091     SWAPR	R0, 0x91           	SWAPR	R0, _Decade
000095   880f     AND	R0, #0xf             	AND	R0,# 0x0f
                                           	BANKSEL	_Decade
000096   5191     MOV	0x91, R0             	MOV	_Decade, R0
                                           ;	op : RIGHT_OP
                                           ;	.line	74; "../main.c"	Dis_adc >>= 8;                  //ÓÒÒÆ8Î»£¬È¡Dis_adcµÄ¸ß8Î»
                                           	BANKSEL	r0x1011
000097   0e95     MOVZ	R0, 0x95            	MOVZ	R0, r0x1011
                                           	BANKSEL	r0x1012
000098   5194     MOV	0x94, R0             	MOV	r0x1012, R0
                                           	BANKSEL	r0x1011
000099   0395     CLR	0x95                 	CLR	r0x1011
                                           ;	op : BITWISEAND
                                           ;	.line	75; "../main.c"	Hundred = Dis_adc&0x0f;         //½«´ËÊ±µÄDis_adcµÄ×îµÍ4Î»¸³ÓèÊýÂë¹ÜµÄ°ÙÎ»
00009a   980f     MOV	R0, #0xf             	MOV	R0,# 0x0f
                                           	BANKSEL	r0x1012
00009b   2894     AND	R0, 0x94             	AND	R0, r0x1012
                                           	BANKSEL	_Hundred
00009c   5192     MOV	0x92, R0             	MOV	_Hundred, R0
                                           	BANKSEL	r0x1013
00009d   5196     MOV	0x96, R0             	MOV	r0x1013, R0
                                           	BANKSEL	r0x1014
00009e   0397     CLR	0x97                 	CLR	r0x1014
                                           ;	op : CAST
                                           ;;99	MOVZ	R0, r0x1013
                                           ;	op : BITWISEAND
                                           ;	.line	76; "../main.c"	Thousand = Dis_adc&0xf0;
00009f   98f0     MOV	R0, #0xf0            	MOV	R0,# 0xf0
                                           	BANKSEL	r0x1012
0000a0   2994     AND	0x94, R0             	AND	r0x1012, R0
                                           	BANKSEL	r0x1011
0000a1   0395     CLR	0x95                 	CLR	r0x1011
                                           ;	op : CAST
                                           	BANKSEL	r0x1012
0000a2   0e94     MOVZ	R0, 0x94            	MOVZ	R0, r0x1012
                                           	BANKSEL	_Thousand
0000a3   5193     MOV	0x93, R0             	MOV	_Thousand, R0
                                           ;	op : RIGHT_OP
                                           ;	.line	77; "../main.c"	Thousand >>= 4;                 //½«´ËÊ±µÄDis_adcµÄµÚ7-4Î»¸³ÓèÊýÂë¹ÜµÄÇ§Î»
                                           	BANKSEL	_Thousand
0000a4   4093     SWAPR	R0, 0x93           	SWAPR	R0, _Thousand
0000a5   880f     AND	R0, #0xf             	AND	R0,# 0x0f
                                           	BANKSEL	_Thousand
0000a6   5193     MOV	0x93, R0             	MOV	_Thousand, R0
                                           ;	op : CALL
                                           ;	.line	78; "../main.c"	Display();                      //ÏÔÊ¾
                                           	PAGESEL	_Display
0000a7   d002     CALL	#0x2                	CALL	_Display
                                           	PAGESEL	$
                                           ;	op : GOTO
0000a8   c085     JMP	#0x85                	JMP	_00002_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
0000a9   0008     CRET                     	CRET	
                                           ; exit point of _main
                                           
                                           
                                           
                                           func._Delay_200us	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _Delay_200us	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;1 compiler assigned register :
                                           ;   r0x1004
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _Delay_200us	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	194; "../main.c"	while(--i);
000112   983c     MOV	R0, #0x3c            	MOV	R0,# 0x3c
000113   6503     CLR	0x3, 5               	BANKSEL	r0x1004
000114   51a3     MOV	0xa3, R0             	MOV	r0x1004, R0
                                           ;	op : LABEL
                                           ;	op : -
                                           _00033_DS_
                                           	BANKSEL	r0x1004
000115   09a3     DECJZ	0xa3               	DECJZ	r0x1004
000116   c115     JMP	#0x115               	JMP	_00033_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
000117   0008     CRET                     	CRET	
                                           ; exit point of _Delay_200us
                                           
                                           
                                           
                                           func._Display	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _Display	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;   __R2PCL
                                           ;   _Delay_200us
                                           ;3 compiler assigned registers:
                                           ;   r0x1005
                                           ;   r0x1006
                                           ;   r0x1007
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _Display	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	156; "../main.c"	for(i = 0; i < 50 ; i++)
000002   6503     CLR	0x3, 5               	BANKSEL	r0x1005
000003   03a0     CLR	0xa0                 	CLR	r0x1005
                                           ;	op : LABEL
                                           ;	op : <
                                           ;unsigned compare: left < lit(0x32=50), size=1
                                           _00023_DS_
000004   9832     MOV	R0, #0x32            	MOV	R0,# 0x32
                                           	BANKSEL	r0x1005
000005   38a0     SUB	R0, 0xa0             	SUB	R0, r0x1005
                                           ;comparing bytes at offset 0
000006   7003     JNB	0x3, 0               	JNB	PSW, 0
000007   c05a     JMP	#0x5a                	JMP	_00027_DS_
                                           ;	op : =
                                           ;	.line	158; "../main.c"	NUM1_IO=0;
000008   6445     CLR	0x45, 4              	CLR	_P0LR_bits, 4
                                           ;	op : +
                                           ;	.line	159; "../main.c"	P1LR=Arr_num[Unit];
000009   98e4     MOV	R0, #0xe4            	MOV	R0,# (_Arr_num + 0)
                                           	BANKSEL	_Unit
00000a   2090     ADD	R0, 0x90             	ADD	R0, _Unit
                                           	BANKSEL	r0x1006
00000b   51a1     MOV	0xa1, R0             	MOV	r0x1006, R0
00000c   9800     MOV	R0, #0               	MOV	R0,# high (_Arr_num + 0)
                                           	BANKSEL	r0x1007
00000d   51a2     MOV	0xa2, R0             	MOV	r0x1007, R0
00000e   0208     CLR	R0                   	CLR	R0
00000f   7003     JNB	0x3, 0               	JNB	PSW, 0
000010   ff10     INC	R0                   	INC	R0
000011   7203     JNB	0x3, 2               	JNB	PSW, 2
000012   c014     JMP	#0x14                	JMP	_00046_DS_
                                           	BANKSEL	r0x1007
000013   21a2     ADD	0xa2, R0             	ADD	r0x1007, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00046_DS_
                                           	BANKSEL	r0x1007
000014   52a2     MOV	R1, 0xa2             	MOV	R1, r0x1007
                                           	BANKSEL	r0x1006
000015   50a1     MOV	R0, 0xa1             	MOV	R0, r0x1006
                                           	PAGESEL	__R2PCL
000016   d0bf     CALL	#0xbf               	CALL	__R2PCL
                                           	PAGESEL	$
000017   5147     MOV	0x47, R0             	MOV	_P1LR, R0
                                           ;	op : CALL
                                           ;	.line	160; "../main.c"	Delay_200us();
                                           	PAGESEL	_Delay_200us
000018   d112     CALL	#0x112              	CALL	_Delay_200us
                                           	PAGESEL	$
                                           ;	op : =
                                           ;	.line	161; "../main.c"	P1LR=0;
000019   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : =
                                           ;	.line	162; "../main.c"	NUM1_IO=1;
00001a   6c45     SET	0x45, 4              	SET	_P0LR_bits, 4
                                           ;	op : =
                                           ;	.line	164; "../main.c"	NUM2_IO=0;
00001b   6545     CLR	0x45, 5              	CLR	_P0LR_bits, 5
                                           ;	op : +
                                           ;	.line	165; "../main.c"	P1LR=Arr_num[Decade];
00001c   98e4     MOV	R0, #0xe4            	MOV	R0,# (_Arr_num + 0)
00001d   6503     CLR	0x3, 5               	BANKSEL	_Decade
00001e   2091     ADD	R0, 0x91             	ADD	R0, _Decade
                                           	BANKSEL	r0x1006
00001f   51a1     MOV	0xa1, R0             	MOV	r0x1006, R0
000020   9800     MOV	R0, #0               	MOV	R0,# high (_Arr_num + 0)
                                           	BANKSEL	r0x1007
000021   51a2     MOV	0xa2, R0             	MOV	r0x1007, R0
000022   0208     CLR	R0                   	CLR	R0
000023   7003     JNB	0x3, 0               	JNB	PSW, 0
000024   ff10     INC	R0                   	INC	R0
000025   7203     JNB	0x3, 2               	JNB	PSW, 2
000026   c028     JMP	#0x28                	JMP	_00047_DS_
                                           	BANKSEL	r0x1007
000027   21a2     ADD	0xa2, R0             	ADD	r0x1007, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00047_DS_
                                           	BANKSEL	r0x1007
000028   52a2     MOV	R1, 0xa2             	MOV	R1, r0x1007
                                           	BANKSEL	r0x1006
000029   50a1     MOV	R0, 0xa1             	MOV	R0, r0x1006
                                           	PAGESEL	__R2PCL
00002a   d0bf     CALL	#0xbf               	CALL	__R2PCL
                                           	PAGESEL	$
00002b   5147     MOV	0x47, R0             	MOV	_P1LR, R0
                                           ;	op : CALL
                                           ;	.line	166; "../main.c"	Delay_200us();
                                           	PAGESEL	_Delay_200us
00002c   d112     CALL	#0x112              	CALL	_Delay_200us
                                           	PAGESEL	$
                                           ;	op : =
                                           ;	.line	167; "../main.c"	P1LR=0;
00002d   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : =
                                           ;	.line	168; "../main.c"	NUM2_IO=1;
00002e   6d45     SET	0x45, 5              	SET	_P0LR_bits, 5
                                           ;	op : =
                                           ;	.line	170; "../main.c"	NUM3_IO=0;
00002f   6145     CLR	0x45, 1              	CLR	_P0LR_bits, 1
                                           ;	op : +
                                           ;	.line	171; "../main.c"	P1LR=Arr_num[Hundred];
000030   98e4     MOV	R0, #0xe4            	MOV	R0,# (_Arr_num + 0)
000031   6503     CLR	0x3, 5               	BANKSEL	_Hundred
000032   2092     ADD	R0, 0x92             	ADD	R0, _Hundred
                                           	BANKSEL	r0x1006
000033   51a1     MOV	0xa1, R0             	MOV	r0x1006, R0
000034   9800     MOV	R0, #0               	MOV	R0,# high (_Arr_num + 0)
                                           	BANKSEL	r0x1007
000035   51a2     MOV	0xa2, R0             	MOV	r0x1007, R0
000036   0208     CLR	R0                   	CLR	R0
000037   7003     JNB	0x3, 0               	JNB	PSW, 0
000038   ff10     INC	R0                   	INC	R0
000039   7203     JNB	0x3, 2               	JNB	PSW, 2
00003a   c03c     JMP	#0x3c                	JMP	_00048_DS_
                                           	BANKSEL	r0x1007
00003b   21a2     ADD	0xa2, R0             	ADD	r0x1007, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00048_DS_
                                           	BANKSEL	r0x1007
00003c   52a2     MOV	R1, 0xa2             	MOV	R1, r0x1007
                                           	BANKSEL	r0x1006
00003d   50a1     MOV	R0, 0xa1             	MOV	R0, r0x1006
                                           	PAGESEL	__R2PCL
00003e   d0bf     CALL	#0xbf               	CALL	__R2PCL
                                           	PAGESEL	$
00003f   5147     MOV	0x47, R0             	MOV	_P1LR, R0
                                           ;	op : CALL
                                           ;	.line	172; "../main.c"	Delay_200us();
                                           	PAGESEL	_Delay_200us
000040   d112     CALL	#0x112              	CALL	_Delay_200us
                                           	PAGESEL	$
                                           ;	op : =
                                           ;	.line	173; "../main.c"	P1LR=0;
000041   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : =
                                           ;	.line	174; "../main.c"	NUM3_IO=1;
000042   6945     SET	0x45, 1              	SET	_P0LR_bits, 1
                                           ;	op : =
                                           ;	.line	176; "../main.c"	NUM4_IO=0;
000043   6045     CLR	0x45, 0              	CLR	_P0LR_bits, 0
                                           ;	op : +
                                           ;	.line	177; "../main.c"	P1LR=Arr_num[Thousand];
000044   98e4     MOV	R0, #0xe4            	MOV	R0,# (_Arr_num + 0)
000045   6503     CLR	0x3, 5               	BANKSEL	_Thousand
000046   2093     ADD	R0, 0x93             	ADD	R0, _Thousand
                                           	BANKSEL	r0x1006
000047   51a1     MOV	0xa1, R0             	MOV	r0x1006, R0
000048   9800     MOV	R0, #0               	MOV	R0,# high (_Arr_num + 0)
                                           	BANKSEL	r0x1007
000049   51a2     MOV	0xa2, R0             	MOV	r0x1007, R0
00004a   0208     CLR	R0                   	CLR	R0
00004b   7003     JNB	0x3, 0               	JNB	PSW, 0
00004c   ff10     INC	R0                   	INC	R0
00004d   7203     JNB	0x3, 2               	JNB	PSW, 2
00004e   c050     JMP	#0x50                	JMP	_00049_DS_
                                           	BANKSEL	r0x1007
00004f   21a2     ADD	0xa2, R0             	ADD	r0x1007, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00049_DS_
                                           	BANKSEL	r0x1007
000050   52a2     MOV	R1, 0xa2             	MOV	R1, r0x1007
                                           	BANKSEL	r0x1006
000051   50a1     MOV	R0, 0xa1             	MOV	R0, r0x1006
                                           	PAGESEL	__R2PCL
000052   d0bf     CALL	#0xbf               	CALL	__R2PCL
                                           	PAGESEL	$
000053   5147     MOV	0x47, R0             	MOV	_P1LR, R0
                                           ;	op : CALL
                                           ;	.line	178; "../main.c"	Delay_200us();
                                           	PAGESEL	_Delay_200us
000054   d112     CALL	#0x112              	CALL	_Delay_200us
                                           	PAGESEL	$
                                           ;	op : =
                                           ;	.line	179; "../main.c"	P1LR=0;
000055   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : =
                                           ;	.line	180; "../main.c"	NUM4_IO=1;
000056   6845     SET	0x45, 0              	SET	_P0LR_bits, 0
                                           ;	op : +
                                           ;	.line	156; "../main.c"	for(i = 0; i < 50 ; i++)
000057   6503     CLR	0x3, 5               	BANKSEL	r0x1005
000058   0ba0     INC	0xa0                 	INC	r0x1005
                                           ;	op : GOTO
000059   c004     JMP	#0x4                 	JMP	_00023_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
                                           _00027_DS_
00005a   0008     CRET                     	CRET	
                                           ; exit point of _Display
                                           
                                           
                                           
                                           func._Adc_read	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _Adc_read	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   _Adc_fun
                                           ;   _Adc_fun
                                           ;6 compiler assigned registers:
                                           ;   r0x100C
                                           ;   r0x100D
                                           ;   r0x100E
                                           ;   r0x100F
                                           ;   STK00
                                           ;   r0x1010
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _Adc_read	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	137; "../main.c"	uint Adc_sum = 0 ; 		          //adc²ÉÑùÀÛ¼Ó±äÁ¿
00005b   6503     CLR	0x3, 5               	BANKSEL	r0x100C
00005c   039b     CLR	0x9b                 	CLR	r0x100C
                                           	BANKSEL	r0x100D
00005d   039c     CLR	0x9c                 	CLR	r0x100D
                                           ;	op : =
                                           ;	.line	139; "../main.c"	for(i = 0; i < 8; i++)
00005e   9808     MOV	R0, #0x8             	MOV	R0,# 0x08
                                           	BANKSEL	r0x100E
00005f   519d     MOV	0x9d, R0             	MOV	r0x100E, R0
                                           ;	op : LABEL
                                           ;	op : CALL
                                           _00018_DS_
                                           ;	.line	141; "../main.c"	Adc_sum += Adc_fun();		  //ÀÛ¼Ó°Ë´Î²ÉÑùÖµ
                                           	PAGESEL	_Adc_fun
000060   d0ce     CALL	#0xce               	CALL	_Adc_fun
                                           	PAGESEL	$
000061   6503     CLR	0x3, 5               	BANKSEL	r0x100F
000062   519f     MOV	0x9f, R0             	MOV	r0x100F, R0
                                           	BANKSEL	STK00
000063   0e8f     MOVZ	R0, 0x8f            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1010
000064   519e     MOV	0x9e, R0             	MOV	r0x1010, R0
                                           ;	op : +
                                           	BANKSEL	r0x1010
000065   509e     MOV	R0, 0x9e             	MOV	R0, r0x1010
                                           	BANKSEL	r0x100C
000066   219b     ADD	0x9b, R0             	ADD	r0x100C, R0
                                           	BANKSEL	r0x100F
000067   0e9f     MOVZ	R0, 0x9f            	MOVZ	R0, r0x100F
000068   7003     JNB	0x3, 0               	JNB	PSW, 0
000069   ff10     INC	R0                   	INC	R0
00006a   7203     JNB	0x3, 2               	JNB	PSW, 2
00006b   c06d     JMP	#0x6d                	JMP	_00050_DS_
                                           	BANKSEL	r0x100D
00006c   219c     ADD	0x9c, R0             	ADD	r0x100D, R0
                                           ;	op : CAST
                                           _00050_DS_
                                           	BANKSEL	r0x100E
00006d   0e9d     MOVZ	R0, 0x9d            	MOVZ	R0, r0x100E
                                           	BANKSEL	r0x1010
00006e   519e     MOV	0x9e, R0             	MOV	r0x1010, R0
                                           ;	op : -
                                           	BANKSEL	r0x1010
00006f   079e     DEC	0x9e                 	DEC	r0x1010
                                           ;	op : CAST
                                           	BANKSEL	r0x1010
000070   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x1010
                                           	BANKSEL	r0x100E
000071   519d     MOV	0x9d, R0             	MOV	r0x100E, R0
                                           ;	op : IFX
                                           ;	.line	139; "../main.c"	for(i = 0; i < 8; i++)
000072   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	BANKSEL	r0x100E
000073   309d     ORL	R0, 0x9d             	ORL	R0, r0x100E
000074   7a03     JB	0x3, 2                	JB	PSW, 2
000075   c060     JMP	#0x60                	JMP	_00018_DS_
                                           ;	op : RIGHT_OP
                                           ;	.line	143; "../main.c"	Adc_sum >>= 3;		              //ÓÒÒÆ¶¯3Î»  ³ý8Çó¾ùÖµ
000076   6003     CLR	0x3, 0               	CLR	PSW, 0
                                           	BANKSEL	r0x100D
000077   119c     RRC	0x9c                 	RRC	r0x100D
                                           	BANKSEL	r0x100C
000078   119b     RRC	0x9b                 	RRC	r0x100C
000079   6003     CLR	0x3, 0               	CLR	PSW, 0
                                           	BANKSEL	r0x100D
00007a   119c     RRC	0x9c                 	RRC	r0x100D
                                           	BANKSEL	r0x100C
00007b   119b     RRC	0x9b                 	RRC	r0x100C
00007c   6003     CLR	0x3, 0               	CLR	PSW, 0
                                           	BANKSEL	r0x100D
00007d   119c     RRC	0x9c                 	RRC	r0x100D
                                           	BANKSEL	r0x100C
00007e   119b     RRC	0x9b                 	RRC	r0x100C
                                           ;	op : RETURN
                                           ;	.line	144; "../main.c"	return Adc_sum;
                                           	BANKSEL	r0x100C
00007f   0e9b     MOVZ	R0, 0x9b            	MOVZ	R0, r0x100C
                                           	BANKSEL	STK00
000080   518f     MOV	0x8f, R0             	MOV	STK00, R0
                                           	BANKSEL	r0x100D
000081   0e9c     MOVZ	R0, 0x9c            	MOVZ	R0, r0x100D
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
000082   0008     CRET                     	CRET	
                                           ; exit point of _Adc_read
                                           
                                           
                                           
                                           func._Adc_fun	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _Adc_fun	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;5 compiler assigned registers:
                                           ;   r0x1008
                                           ;   r0x1009
                                           ;   r0x100A
                                           ;   r0x100B
                                           ;   STK00
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _Adc_fun	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	117; "../main.c"	START = 1;					  //Æô¶¯ADC
0000ce   691f     SET	0x1f, 1              	SET	_ADCCTL0_bits, 1
                                           ;	op : LABEL
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00009_DS_
                                           ;	.line	118; "../main.c"	while(START);                 //µÈ´ý×ª»»½áÊø
0000cf   711f     JNB	0x1f, 1              	JNB	_ADCCTL0_bits, 1
0000d0   c0cf     JMP	#0xcf                	JMP	_00009_DS_
                                           ;	op : BITWISEAND
                                           ;	.line	121; "../main.c"	Adc_num = ADCDATAH&0x0F;	  //½«¸ßÎ»¼Ó½øÈ¥
0000d1   980f     MOV	R0, #0xf             	MOV	R0,# 0x0f
0000d2   281e     AND	R0, 0x1e             	AND	R0, _ADCDATAH
0000d3   6503     CLR	0x3, 5               	BANKSEL	r0x1009
0000d4   5199     MOV	0x99, R0             	MOV	r0x1009, R0
                                           	BANKSEL	r0x1008
0000d5   5198     MOV	0x98, R0             	MOV	r0x1008, R0
                                           ;	op : CAST
                                           ;;100	MOVZ	R0, r0x1008
                                           	BANKSEL	r0x100A
0000d6   039a     CLR	0x9a                 	CLR	r0x100A
                                           ;	op : LEFT_OP
                                           ;	.line	122; "../main.c"	Adc_num <<= 8;		          //×óÒÆ¶¯8Î»¸ßÎ»¹éÎ»
                                           	BANKSEL	r0x1009
0000d7   0e99     MOVZ	R0, 0x99            	MOVZ	R0, r0x1009
                                           	BANKSEL	r0x100A
0000d8   519a     MOV	0x9a, R0             	MOV	r0x100A, R0
                                           	BANKSEL	r0x1009
0000d9   0399     CLR	0x99                 	CLR	r0x1009
                                           ;	op : CAST
                                           ;	.line	123; "../main.c"	Adc_num |= ADCDATAL;		  //½«µÍÎ»¼Ó½øÈ¥
0000da   0e3e     MOVZ	R0, 0x3e            	MOVZ	R0, _ADCDATAL
                                           	BANKSEL	r0x1008
0000db   5198     MOV	0x98, R0             	MOV	r0x1008, R0
                                           ;;1	CLR	r0x100B
                                           ;	op : |
                                           	BANKSEL	r0x1008
0000dc   0e98     MOVZ	R0, 0x98            	MOVZ	R0, r0x1008
                                           	BANKSEL	r0x1009
0000dd   3199     ORL	0x99, R0             	ORL	r0x1009, R0
0000de   9800     MOV	R0, #0               	MOV	R0,# 0x00
                                           	BANKSEL	r0x100A
0000df   319a     ORL	0x9a, R0             	ORL	r0x100A, R0
                                           ;	op : RETURN
                                           ;	.line	126; "../main.c"	return Adc_num;			      //·µ»Ø×ª»»Öµ
                                           	BANKSEL	r0x1009
0000e0   0e99     MOVZ	R0, 0x99            	MOVZ	R0, r0x1009
                                           	BANKSEL	STK00
0000e1   518f     MOV	0x8f, R0             	MOV	STK00, R0
                                           	BANKSEL	r0x100A
0000e2   0e9a     MOVZ	R0, 0x9a            	MOVZ	R0, r0x100A
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
0000e3   0008     CRET                     	CRET	
                                           ; exit point of _Adc_fun
                                           
                                           
                                           
                                           func._Init_fun	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _Init_fun	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _Init_fun	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	91; "../main.c"	OSCCTL = 0x60;                     //ÉèÖÃÎª8M
0000f5   9860     MOV	R0, #0x60            	MOV	R0,# 0x60
0000f6   512f     MOV	0x2f, R0             	MOV	_OSCCTL, R0
                                           ;	op : =
                                           ;	.line	93; "../main.c"	TR0 = 0x0C;				           //ÉèÖÃP03¶Ë¿ÚÎªÊäÈë  P02ÎªAN2Ä£ÄâÍ¨µÀ ÅäÖÃÎªÊäÈë¿Ú
0000f7   980c     MOV	R0, #0xc             	MOV	R0,# 0x0c
0000f8   5125     MOV	0x25, R0             	MOV	_TR0, R0
                                           ;	op : =
                                           ;	.line	94; "../main.c"	TR1 = 0x00;				           //ÉèÖÃP1¶Ë¿ÚÎªÊä³ö
0000f9   0327     CLR	0x27                 	CLR	_TR1
                                           ;	op : =
                                           ;	.line	96; "../main.c"	P0 = 0;
0000fa   0305     CLR	0x5                  	CLR	_P0
                                           ;	op : =
                                           ;	.line	97; "../main.c"	P1 = 0;
0000fb   0307     CLR	0x7                  	CLR	_P1
                                           ;	op : =
                                           ;	.line	99; "../main.c"	P0LR = 0;
0000fc   0345     CLR	0x45                 	CLR	_P0LR
                                           ;	op : =
                                           ;	.line	100; "../main.c"	P1LR = 0;
0000fd   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : =
                                           ;	.line	103; "../main.c"	ANSEL = 0x04;		              //ÉèÖÃÍ¨µÀ2ÎªÄ£Äâ¿Ú
0000fe   9804     MOV	R0, #0x4             	MOV	R0,# 0x04
0000ff   5131     MOV	0x31, R0             	MOV	_ANSEL, R0
                                           ;	op : =
                                           ;	.line	104; "../main.c"	ADCCTL0 = 0x89;		              //ÓÒ¶ÔÆë£¬Í¨µÀ2£¬ ADÊ¹ÄÜ´ò¿ª
000100   9889     MOV	R0, #0x89            	MOV	R0,# 0x89
000101   511f     MOV	0x1f, R0             	MOV	_ADCCTL0, R0
                                           ;	op : =
                                           ;	.line	105; "../main.c"	ADCCTL1 = 0x17;		              //8·ÖÆµ£¬VDD×÷Îª²Î¿¼µçÑ¹
000102   9817     MOV	R0, #0x17            	MOV	R0,# 0x17
000103   513f     MOV	0x3f, R0             	MOV	_ADCCTL1, R0
                                           ;	op : =
                                           ;	.line	106; "../main.c"	PCTL = 0X00;                      //½ûÖ¹ÖÐ¶ÏÓÅÏÈ¼¶ IPEN = 0
000104   032e     CLR	0x2e                 	CLR	_PCTL
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
000105   0008     CRET                     	CRET	
                                           ; exit point of _Init_fun
                                           
                                           
                                           ;	code size estimation:
                                           ;	  231+   93 =   324 instructions (  834 byte)
                                           
                                           
                                           	.end
002007   0690     DECR	0x90               
002008   ffff     NOPZ                    
0000aa   a800     XOR	R0, #0              
0000ab   7203     JNB	0x3, 2              
0000ac   c0b2     JMP	#0xb2               
0000ad   a880     XOR	R0, #0x80           
0000ae   7203     JNB	0x3, 2              
0000af   c0ba     JMP	#0xba               
0000b0   0208     CLR	R0                  
0000b1   c0be     JMP	#0xbe               
0000b2   6503     CLR	0x3, 5              
0000b3   528e     MOV	R1, 0x8e            
0000b4   6503     CLR	0x3, 5              
0000b5   708f     JNB	0x8f, 0             
0000b6   6d03     SET	0x3, 5              
0000b7   f708     LD	R0, [R1]             
0000b8   9000     ORL	R0, #0              
0000b9   c0be     JMP	#0xbe               
0000ba   6503     CLR	0x3, 5              
0000bb   528f     MOV	R1, 0x8f            
0000bc   508e     MOV	R0, 0x8e            
0000bd   d0bf     CALL	#0xbf              
0000be   0008     CRET                    
0000bf   530a     MOV	0xa, R1             
0000c0   5102     MOV	0x2, R0             
0000c1   d7fa     CALL	#0x7fa             
0000c2   512a     MOV	0x2a, R0            
0000c3   d7fb     CALL	#0x7fb             
0000c4   511c     MOV	0x1c, R0            
0000c5   d7fc     CALL	#0x7fc             
0000c6   514d     MOV	0x4d, R0            
0000c7   d7fd     CALL	#0x7fd             
0000c8   514c     MOV	0x4c, R0            
0000c9   d7fe     CALL	#0x7fe             
0000ca   5137     MOV	0x37, R0            
0000cb   d7ff     CALL	#0x7ff             
0000cc   5130     MOV	0x30, R0            
0000cd   0008     CRET                    
00011b   d106     CALL	#0x106             
00011c   0008     CRET                    
000106   6503     CLR	0x3, 5              
000107   9880     MOV	R0, #0x80           
000108   9924     MOV	R1, #0x24           
000109   0000     NOP                     
00010a   d10c     CALL	#0x10c             
00010b   0008     CRET                    
00010c   020a     CLR	R2                  
00010d   f750     ST	[R0], R2             
00010e   ff10     INC	R0                  
00010f   ff59     DECJZ	R1                
000110   c10d     JMP	#0x10d              
000111   0008     CRET                    
