gplink-1.1.0
Copyright (c) 1998-2005 gputils project
Listing File Generated: 5-31-2016  17:23:26
 
 
Address  Value    Disassembly              Source
-------  -----    -----------              ------
                                           ;--------------------------------------------------------
                                           ; File Created by ChiponCC : aolisn inc.
                                           ; Version 3.0.4#6752 (Mar  1 2016 15:13:08) (MSVC)
                                           ; This file was generated Tue May 31 17:09:41 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../config_set.c"
                                           	.radix dec
                                           	.include "KF8TS2716.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8TS2716 
                                           ;       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
                                           P3                .EQU                0x08
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           EIF2              .EQU                0x0D
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           BANK              .EQU                0x17
                                           ADSCANCTL         .EQU                0x18
                                           ANSEH             .EQU                0x1D
                                           ADCDATA0H         .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           IP2               .EQU                0x24
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           OSCSTA            .EQU                0x28
                                           IP3               .EQU                0x29
                                           VRECAL1           .EQU                0x2A
                                           VRECTL            .EQU                0x2B
                                           EIE1              .EQU                0x2C
                                           EIE2              .EQU                0x2D
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR0              .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           NVMDATAH          .EQU                0x38
                                           NVMDATAL          .EQU                0x39
                                           NVMADDRH          .EQU                0x3A
                                           NVMADDRL          .EQU                0x3B
                                           NVMCTL0           .EQU                0x3C
                                           NVMCTL1           .EQU                0x3D
                                           ADCDATA0L         .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           P3LR              .EQU                0x48
                                           TR3               .EQU                0x49
                                           EIE3              .EQU                0x4A
                                           EIF3              .EQU                0x4B
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           T3L               .EQU                0x4F
                                           ADCDATA1H         .EQU                0x50
                                           ADCDATA1L         .EQU                0x51
                                           CTCTL0            .EQU                0x53
                                           ADCINTCTL         .EQU                0x58
                                           ADCDATA2H         .EQU                0x59
                                           ADCDATA2L         .EQU                0x5A
                                           ADCDATA3H         .EQU                0x5E
                                           T3H               .EQU                0x5F
                                           PUR1              .EQU                0x60
                                           PUR2              .EQU                0x61
                                           CTCTL1            .EQU                0x64
                                           INTEDGCTL         .EQU                0x67
                                           ADCDATA3L         .EQU                0x6A
                                           VBIASCTL          .EQU                0x6B
                                           VBIAS1EN          .EQU                0x6C
                                           VBIAS2EN          .EQU                0x6D
                                           VDAC              .EQU                0x112
                                           RSCTL             .EQU                0x120
                                           TXSDR             .EQU                0x121
                                           RXSDR             .EQU                0x122
                                           BRCTL             .EQU                0x123
                                           TSCTL             .EQU                0x124
                                           EUBRGL            .EQU                0x125
                                           EUBRGH            .EQU                0x126
                                           SSCICTL0          .EQU                0x128
                                           SSCICTL1          .EQU                0x12A
                                           SSCISTA           .EQU                0x12B
                                           SSCIBUFR          .EQU                0x12C
                                           SSCIMSK           .EQU                0x12E
                                           SSCIADD           .EQU                0x12E
                                           WDTPS             .EQU                0x12F
                                           MULAH             .EQU                0x130
                                           MULAL             .EQU                0x131
                                           MULBH             .EQU                0x132
                                           MULBL             .EQU                0x133
                                           MULCTL            .EQU                0x134
                                           MULRES3           .EQU                0x135
                                           MULRES2           .EQU                0x136
                                           MULRES1           .EQU                0x137
                                           MULRES0           .EQU                0x138
                                           DIVCTL            .EQU                0x139
                                           DIVAH             .EQU                0x13A
                                           DIVAL             .EQU                0x13B
                                           DIVB              .EQU                0x13C
                                           DIVQH             .EQU                0x13D
                                           DIVQL             .EQU                0x13E
                                           DIVR              .EQU                0x13F
                                           LEDCTL            .EQU                0x140
                                           LEDPRE            .EQU                0x141
                                           LEDDATA0          .EQU                0x142
                                           LEDDATA1          .EQU                0x143
                                           LEDDATA2          .EQU                0x144
                                           LEDDATA3          .EQU                0x145
                                           LEDDATA4          .EQU                0x146
                                           LEDDATA5          .EQU                0x147
                                           LEDDATA6          .EQU                0x148
                                           LEDDATA7          .EQU                0x149
                                           LEDOMS1           .EQU                0x150
                                           LEDODS0           .EQU                0x155
                                           LEDOMS0           .EQU                0x157
                                           LEDODS1           .EQU                0x158
                                           VRECAL2           .EQU                0x159
                                           VRECAL3           .EQU                0x15A
                                           LEDLUM            .EQU                0x15C
                                           T4L               .EQU                0x160
                                           T4H               .EQU                0x161
                                           T4REL             .EQU                0x162
                                           T4REH             .EQU                0x163
                                           T4CTL             .EQU                0x164
                                           RC32KCAL          .EQU                0x165
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           P23                .EQU                3
                                           P22                .EQU                2
                                           P21                .EQU                1
                                           P20                .EQU                0
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           _P23               .EQU                3
                                           _P22               .EQU                2
                                           _P21               .EQU                1
                                           _P20               .EQU                0
                                           
                                           ;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
                                           
                                           ;P3 Bits--------------------------------------
                                           P37                .EQU                7
                                           P36                .EQU                6
                                           P35                .EQU                5
                                           P34                .EQU                4
                                           P33                .EQU                3
                                           P32                .EQU                2
                                           P31                .EQU                1
                                           P30                .EQU                0
                                           _P37               .EQU                7
                                           _P36               .EQU                6
                                           _P35               .EQU                5
                                           _P34               .EQU                4
                                           _P33               .EQU                3
                                           _P32               .EQU                2
                                           _P31               .EQU                1
                                           _P30               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;EIF2 Bits------------------------------------
                                           T3IF               .EQU                7
                                           RCIF               .EQU                5
                                           TXIF               .EQU                4
                                           BCLIF              .EQU                1
                                           SSCIIF             .EQU                0
                                           _T3IF              .EQU                7
                                           _RCIF              .EQU                5
                                           _TXIF              .EQU                4
                                           _BCLIF             .EQU                1
                                           _SSCIIF            .EQU                0
                                           
                                           ;T1CTL Bits-----------------------------------
                                           T1RLD              .EQU                7
                                           T1GC               .EQU                6
                                           T1CKS1             .EQU                5
                                           T1CKS0             .EQU                4
                                           T1OSCEN            .EQU                3
                                           T1SY               .EQU                2
                                           T1CS               .EQU                1
                                           T1ON               .EQU                0
                                           _T1RLD             .EQU                7
                                           _T1GC              .EQU                6
                                           _T1CKS1            .EQU                5
                                           _T1CKS0            .EQU                4
                                           _T1OSCEN           .EQU                3
                                           _T1SY              .EQU                2
                                           _T1CS              .EQU                1
                                           _T1ON              .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           PWM2ON             .EQU                4
                                           PWM1ON             .EQU                0
                                           _PWM2ON            .EQU                4
                                           _PWM1ON            .EQU                0
                                           
                                           ;BANK Bits------------------------------------
                                           PR3                .EQU                3
                                           PR2                .EQU                2
                                           PR1                .EQU                1
                                           PR0                .EQU                0
                                           _PR3               .EQU                3
                                           _PR2               .EQU                2
                                           _PR1               .EQU                1
                                           _PR0               .EQU                0
                                           
                                           ;ADSCANCTL Bits-------------------------------
                                           ADSCANEN           .EQU                7
                                           SMOD1              .EQU                6
                                           SMOD0              .EQU                5
                                           STIM4              .EQU                4
                                           STIM3              .EQU                3
                                           STIM2              .EQU                2
                                           STIM1              .EQU                1
                                           STIM0              .EQU                0
                                           _ADSCANEN          .EQU                7
                                           _SMOD1             .EQU                6
                                           _SMOD0             .EQU                5
                                           _STIM4             .EQU                4
                                           _STIM3             .EQU                3
                                           _STIM2             .EQU                2
                                           _STIM1             .EQU                1
                                           _STIM0             .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS15              .EQU                7
                                           ANS14              .EQU                6
                                           ANS13              .EQU                5
                                           ANS12              .EQU                4
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS15             .EQU                7
                                           _ANS14             .EQU                6
                                           _ANS13             .EQU                5
                                           _ANS12             .EQU                4
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;IP2 Bits-------------------------------------
                                           PT3                .EQU                7
                                           PRC                .EQU                5
                                           PTX                .EQU                4
                                           PBCL               .EQU                1
                                           PSSCI              .EQU                0
                                           _PT3               .EQU                7
                                           _PRC               .EQU                5
                                           _PTX               .EQU                4
                                           _PBCL              .EQU                1
                                           _PSSCI             .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
                                           TR23               .EQU                3
                                           TR22               .EQU                2
                                           TR21               .EQU                1
                                           TR20               .EQU                0
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           _TR23              .EQU                3
                                           _TR22              .EQU                2
                                           _TR21              .EQU                1
                                           _TR20              .EQU                0
                                           
                                           ;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
                                           
                                           ;OSCSTA Bits----------------------------------
                                           OSTS               .EQU                6
                                           HTS                .EQU                5
                                           LTS                .EQU                4
                                           SCF1               .EQU                1
                                           SCF0               .EQU                0
                                           _OSTS              .EQU                6
                                           _HTS               .EQU                5
                                           _LTS               .EQU                4
                                           _SCF1              .EQU                1
                                           _SCF0              .EQU                0
                                           
                                           ;IP3 Bits-------------------------------------
                                           PT4                .EQU                7
                                           POSCFAIL           .EQU                5
                                           _PT4               .EQU                7
                                           _POSCFAIL          .EQU                5
                                           
                                           ;VRECTL Bits----------------------------------
                                           VRESEL1            .EQU                7
                                           VRESEL0            .EQU                6
                                           VRECALEN           .EQU                5
                                           VREBG              .EQU                4
                                           VREOE              .EQU                3
                                           P18OE              .EQU                2
                                           VREEN              .EQU                1
                                           LPREN              .EQU                0
                                           _VRESEL1           .EQU                7
                                           _VRESEL0           .EQU                6
                                           _VRECALEN          .EQU                5
                                           _VREBG             .EQU                4
                                           _VREOE             .EQU                3
                                           _P18OE             .EQU                2
                                           _VREEN             .EQU                1
                                           _LPREN             .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T1IE              .EQU                0
                                           
                                           ;EIE2 Bits------------------------------------
                                           T3IE               .EQU                7
                                           RCIE               .EQU                5
                                           TXIE               .EQU                4
                                           BCLIE              .EQU                1
                                           SSCIIE             .EQU                0
                                           _T3IE              .EQU                7
                                           _RCIE              .EQU                5
                                           _TXIE              .EQU                4
                                           _BCLIE             .EQU                1
                                           _SSCIIE            .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----------------------------------
                                           CLKOE              .EQU                7
                                           IRCS2              .EQU                6
                                           IRCS1              .EQU                5
                                           IRCS0              .EQU                4
                                           SCS1               .EQU                3
                                           SCS0               .EQU                2
                                           IESO               .EQU                1
                                           FSCM               .EQU                0
                                           _CLKOE             .EQU                7
                                           _IRCS2             .EQU                6
                                           _IRCS1             .EQU                5
                                           _IRCS0             .EQU                4
                                           _SCS1              .EQU                3
                                           _SCS0              .EQU                2
                                           _IESO              .EQU                1
                                           _FSCM              .EQU                0
                                           
                                           ;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
                                           
                                           ;PUR0 Bits------------------------------------
                                           PUR05              .EQU                5
                                           PUR04              .EQU                4
                                           PUR03              .EQU                3
                                           PUR01              .EQU                1
                                           PUR00              .EQU                0
                                           _PUR05             .EQU                5
                                           _PUR04             .EQU                4
                                           _PUR03             .EQU                3
                                           _PUR01             .EQU                1
                                           _PUR00             .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCALEN            .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM              .EQU                0
                                           _ADCALEN           .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM             .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           P0LR3              .EQU                3
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR3             .EQU                3
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           P2LR3              .EQU                3
                                           P2LR2              .EQU                2
                                           P2LR1              .EQU                1
                                           P2LR0              .EQU                0
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           _P2LR3             .EQU                3
                                           _P2LR2             .EQU                2
                                           _P2LR1             .EQU                1
                                           _P2LR0             .EQU                0
                                           
                                           ;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
                                           
                                           ;P3LR Bits------------------------------------
                                           P3LR7              .EQU                7
                                           P3LR6              .EQU                6
                                           P3LR5              .EQU                5
                                           P3LR4              .EQU                4
                                           P3LR3              .EQU                3
                                           P3LR2              .EQU                2
                                           P3LR1              .EQU                1
                                           P3LR0              .EQU                0
                                           _P3LR7             .EQU                7
                                           _P3LR6             .EQU                6
                                           _P3LR5             .EQU                5
                                           _P3LR4             .EQU                4
                                           _P3LR3             .EQU                3
                                           _P3LR2             .EQU                2
                                           _P3LR1             .EQU                1
                                           _P3LR0             .EQU                0
                                           
                                           ;TR3 Bits-------------------------------------
                                           TR37               .EQU                7
                                           TR36               .EQU                6
                                           TR35               .EQU                5
                                           TR34               .EQU                4
                                           TR33               .EQU                3
                                           TR32               .EQU                2
                                           TR31               .EQU                1
                                           TR30               .EQU                0
                                           _TR37              .EQU                7
                                           _TR36              .EQU                6
                                           _TR35              .EQU                5
                                           _TR34              .EQU                4
                                           _TR33              .EQU                3
                                           _TR32              .EQU                2
                                           _TR31              .EQU                1
                                           _TR30              .EQU                0
                                           
                                           ;EIE3 Bits------------------------------------
                                           T4IE               .EQU                7
                                           OSCFAILIE          .EQU                5
                                           _T4IE              .EQU                7
                                           _OSCFAILIE         .EQU                5
                                           
                                           ;EIF3 Bits------------------------------------
                                           T4IF               .EQU                7
                                           OSCFAILIF          .EQU                5
                                           _T4IF              .EQU                7
                                           _OSCFAILIF         .EQU                5
                                           
                                           ;CTCTL0 Bits----------------------------------
                                           CTEN               .EQU                7
                                           CTSTART            .EQU                6
                                           CTCHSEL4           .EQU                4
                                           CTCHSEL3           .EQU                3
                                           CTCHSEL2           .EQU                2
                                           CTCHSEL1           .EQU                1
                                           CTCHSEL0           .EQU                0
                                           _CTEN              .EQU                7
                                           _CTSTART           .EQU                6
                                           _CTCHSEL4          .EQU                4
                                           _CTCHSEL3          .EQU                3
                                           _CTCHSEL2          .EQU                2
                                           _CTCHSEL1          .EQU                1
                                           _CTCHSEL0          .EQU                0
                                           
                                           ;ADCINTCTL Bits-------------------------------
                                           INTCTL1            .EQU                1
                                           INTCTL0            .EQU                0
                                           _INTCTL1           .EQU                1
                                           _INTCTL0           .EQU                0
                                           
                                           ;PUR1 Bits------------------------------------
                                           PUR17              .EQU                7
                                           PUR16              .EQU                6
                                           PUR15              .EQU                5
                                           PUR14              .EQU                4
                                           PUR13              .EQU                3
                                           PUR12              .EQU                2
                                           PUR11              .EQU                1
                                           PUR10              .EQU                0
                                           _PUR17             .EQU                7
                                           _PUR16             .EQU                6
                                           _PUR15             .EQU                5
                                           _PUR14             .EQU                4
                                           _PUR13             .EQU                3
                                           _PUR12             .EQU                2
                                           _PUR11             .EQU                1
                                           _PUR10             .EQU                0
                                           
                                           ;PUR2 Bits------------------------------------
                                           PUR27              .EQU                7
                                           PUR26              .EQU                6
                                           PUR25              .EQU                5
                                           PUR24              .EQU                4
                                           PUR23              .EQU                3
                                           PUR22              .EQU                2
                                           PUR21              .EQU                1
                                           PUR20              .EQU                0
                                           _PUR27             .EQU                7
                                           _PUR26             .EQU                6
                                           _PUR25             .EQU                5
                                           _PUR24             .EQU                4
                                           _PUR23             .EQU                3
                                           _PUR22             .EQU                2
                                           _PUR21             .EQU                1
                                           _PUR20             .EQU                0
                                           
                                           ;CTCTL1 Bits----------------------------------
                                           CTCLKSEL1          .EQU                7
                                           CTCLKSEL0          .EQU                6
                                           VSEL               .EQU                0
                                           _CTCLKSEL1         .EQU                7
                                           _CTCLKSEL0         .EQU                6
                                           _VSEL              .EQU                0
                                           
                                           ;INTEDGCTL Bits-------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           T1CLKEN            .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _T1CLKEN           .EQU                0
                                           
                                           ;VBIASCTL Bits--------------------------------
                                           VBIASEN            .EQU                7
                                           VBSEL              .EQU                6
                                           ISEL3              .EQU                3
                                           ISEL2              .EQU                2
                                           ISEL1              .EQU                1
                                           ISEL0              .EQU                0
                                           _VBIASEN           .EQU                7
                                           _VBSEL             .EQU                6
                                           _ISEL3             .EQU                3
                                           _ISEL2             .EQU                2
                                           _ISEL1             .EQU                1
                                           _ISEL0             .EQU                0
                                           
                                           ;VBIAS1EN Bits--------------------------------
                                           VBS17EN            .EQU                7
                                           VBS16EN            .EQU                6
                                           VBS15EN            .EQU                5
                                           VBS14EN            .EQU                4
                                           VBS13EN            .EQU                3
                                           VBS12EN            .EQU                2
                                           VBS11EN            .EQU                1
                                           VBS10EN            .EQU                0
                                           _VBS17EN           .EQU                7
                                           _VBS16EN           .EQU                6
                                           _VBS15EN           .EQU                5
                                           _VBS14EN           .EQU                4
                                           _VBS13EN           .EQU                3
                                           _VBS12EN           .EQU                2
                                           _VBS11EN           .EQU                1
                                           _VBS10EN           .EQU                0
                                           
                                           ;VBIAS2EN Bits--------------------------------
                                           VBS27EN            .EQU                7
                                           VBS26EN            .EQU                6
                                           VBS25EN            .EQU                5
                                           VBS24EN            .EQU                4
                                           VBS23EN            .EQU                3
                                           VBS22EN            .EQU                2
                                           VBS21EN            .EQU                1
                                           VBS20EN            .EQU                0
                                           _VBS27EN           .EQU                7
                                           _VBS26EN           .EQU                6
                                           _VBS25EN           .EQU                5
                                           _VBS24EN           .EQU                4
                                           _VBS23EN           .EQU                3
                                           _VBS22EN           .EQU                2
                                           _VBS21EN           .EQU                1
                                           _VBS20EN           .EQU                0
                                           
                                           ;VDAC Bits------------------------------------
                                           VDAC3              .EQU                7
                                           VDAC2              .EQU                6
                                           VDAC1              .EQU                5
                                           VDAC0              .EQU                4
                                           _VDAC3             .EQU                7
                                           _VDAC2             .EQU                6
                                           _VDAC1             .EQU                5
                                           _VDAC0             .EQU                4
                                           
                                           ;RSCTL Bits-----------------------------------
                                           SPEN               .EQU                7
                                           RX9                .EQU                6
                                           SRXEN              .EQU                5
                                           CRXEN              .EQU                4
                                           ADREN              .EQU                3
                                           FRER               .EQU                2
                                           OVFER              .EQU                1
                                           RX9D               .EQU                0
                                           _SPEN              .EQU                7
                                           _RX9               .EQU                6
                                           _SRXEN             .EQU                5
                                           _CRXEN             .EQU                4
                                           _ADREN             .EQU                3
                                           _FRER              .EQU                2
                                           _OVFER             .EQU                1
                                           _RX9D              .EQU                0
                                           
                                           ;BRCTL Bits-----------------------------------
                                           ABRDOVF            .EQU                7
                                           RCIDLF             .EQU                6
                                           SCKPS              .EQU                5
                                           BRG16              .EQU                4
                                           WUEN               .EQU                1
                                           ABRDEN             .EQU                0
                                           _ABRDOVF           .EQU                7
                                           _RCIDLF            .EQU                6
                                           _SCKPS             .EQU                5
                                           _BRG16             .EQU                4
                                           _WUEN              .EQU                1
                                           _ABRDEN            .EQU                0
                                           
                                           ;TSCTL Bits-----------------------------------
                                           CSRS               .EQU                7
                                           TX9                .EQU                6
                                           TXEN               .EQU                5
                                           SYNC               .EQU                4
                                           SENDB              .EQU                3
                                           HBRG               .EQU                2
                                           TXSRS              .EQU                1
                                           TX9D               .EQU                0
                                           _CSRS              .EQU                7
                                           _TX9               .EQU                6
                                           _TXEN              .EQU                5
                                           _SYNC              .EQU                4
                                           _SENDB             .EQU                3
                                           _HBRG              .EQU                2
                                           _TXSRS             .EQU                1
                                           _TX9D              .EQU                0
                                           
                                           ;SSCICTL0 Bits--------------------------------
                                           SSCIWCFL           .EQU                7
                                           SSCIOV             .EQU                6
                                           SSCIEN             .EQU                5
                                           SSCICKP            .EQU                4
                                           SSCIMOD3           .EQU                3
                                           SSCIMOD2           .EQU                2
                                           SSCIMOD1           .EQU                1
                                           SSCIMOD0           .EQU                0
                                           _SSCIWCFL          .EQU                7
                                           _SSCIOV            .EQU                6
                                           _SSCIEN            .EQU                5
                                           _SSCICKP           .EQU                4
                                           _SSCIMOD3          .EQU                3
                                           _SSCIMOD2          .EQU                2
                                           _SSCIMOD1          .EQU                1
                                           _SSCIMOD0          .EQU                0
                                           
                                           ;SSCICTL1 Bits--------------------------------
                                           SSCICALLEN         .EQU                7
                                           SSCIACKSTA         .EQU                6
                                           SSCIACKDAT         .EQU                5
                                           SSCIACKEN          .EQU                4
                                           SSCIRCEN           .EQU                3
                                           STOPEN             .EQU                2
                                           RESTARTEN          .EQU                1
                                           STARTEN            .EQU                0
                                           _SSCICALLEN        .EQU                7
                                           _SSCIACKSTA        .EQU                6
                                           _SSCIACKDAT        .EQU                5
                                           _SSCIACKEN         .EQU                4
                                           _SSCIRCEN          .EQU                3
                                           _STOPEN            .EQU                2
                                           _RESTARTEN         .EQU                1
                                           _STARTEN           .EQU                0
                                           
                                           ;SSCISTA Bits---------------------------------
                                           SAMPLE             .EQU                7
                                           CKEGE              .EQU                6
                                           SSCIDA             .EQU                5
                                           SSCISTOP           .EQU                4
                                           SSCISTART          .EQU                3
                                           SSCIRW             .EQU                2
                                           SSCIUA             .EQU                1
                                           SSCIBUF            .EQU                0
                                           _SAMPLE            .EQU                7
                                           _CKEGE             .EQU                6
                                           _SSCIDA            .EQU                5
                                           _SSCISTOP          .EQU                4
                                           _SSCISTART         .EQU                3
                                           _SSCIRW            .EQU                2
                                           _SSCIUA            .EQU                1
                                           _SSCIBUF           .EQU                0
                                           
                                           ;SSCIMSK Bits---------------------------------
                                           SSCIMSK7           .EQU                7
                                           SSCIMSK6           .EQU                6
                                           SSCIMSK5           .EQU                5
                                           SSCIMSK4           .EQU                4
                                           SSCIMSK3           .EQU                3
                                           SSCIMSK2           .EQU                2
                                           SSCIMSK1           .EQU                1
                                           SSCIMSK0           .EQU                0
                                           _SSCIMSK7          .EQU                7
                                           _SSCIMSK6          .EQU                6
                                           _SSCIMSK5          .EQU                5
                                           _SSCIMSK4          .EQU                4
                                           _SSCIMSK3          .EQU                3
                                           _SSCIMSK2          .EQU                2
                                           _SSCIMSK1          .EQU                1
                                           _SSCIMSK0          .EQU                0
                                           
                                           ;WDTPS Bits-----------------------------------
                                           WDTPS3             .EQU                3
                                           WDTPS2             .EQU                2
                                           WDTPS1             .EQU                1
                                           WDTPS0             .EQU                0
                                           _WDTPS3            .EQU                3
                                           _WDTPS2            .EQU                2
                                           _WDTPS1            .EQU                1
                                           _WDTPS0            .EQU                0
                                           
                                           ;MULCTL Bits----------------------------------
                                           MULEN              .EQU                1
                                           MULIF              .EQU                0
                                           _MULEN             .EQU                1
                                           _MULIF             .EQU                0
                                           
                                           ;DIVCTL Bits----------------------------------
                                           DIVOEN             .EQU                1
                                           DIVEN              .EQU                0
                                           _DIVOEN            .EQU                1
                                           _DIVEN             .EQU                0
                                           
                                           ;LEDCTL Bits----------------------------------
                                           LEDEN              .EQU                7
                                           DIGEN2             .EQU                4
                                           DIGEN1             .EQU                3
                                           DIGEN0             .EQU                2
                                           PNS1               .EQU                1
                                           PNS0               .EQU                0
                                           _LEDEN             .EQU                7
                                           _DIGEN2            .EQU                4
                                           _DIGEN1            .EQU                3
                                           _DIGEN0            .EQU                2
                                           _PNS1              .EQU                1
                                           _PNS0              .EQU                0
                                           
                                           ;LEDPRE Bits----------------------------------
                                           LEDCKS13           .EQU                7
                                           LEDCKS12           .EQU                6
                                           LEDCKS11           .EQU                5
                                           LEDCKS10           .EQU                4
                                           LEDCKS03           .EQU                3
                                           LEDCKS02           .EQU                2
                                           LEDCKS01           .EQU                1
                                           LEDCKS00           .EQU                0
                                           _LEDCKS13          .EQU                7
                                           _LEDCKS12          .EQU                6
                                           _LEDCKS11          .EQU                5
                                           _LEDCKS10          .EQU                4
                                           _LEDCKS03          .EQU                3
                                           _LEDCKS02          .EQU                2
                                           _LEDCKS01          .EQU                1
                                           _LEDCKS00          .EQU                0
                                           
                                           ;LEDDATA0 Bits--------------------------------
                                           DAT07              .EQU                7
                                           DAT06              .EQU                6
                                           DAT05              .EQU                5
                                           DAT04              .EQU                4
                                           DAT03              .EQU                3
                                           DAT02              .EQU                2
                                           DAT01              .EQU                1
                                           DAT00              .EQU                0
                                           _DAT07             .EQU                7
                                           _DAT06             .EQU                6
                                           _DAT05             .EQU                5
                                           _DAT04             .EQU                4
                                           _DAT03             .EQU                3
                                           _DAT02             .EQU                2
                                           _DAT01             .EQU                1
                                           _DAT00             .EQU                0
                                           
                                           ;LEDDATA1 Bits--------------------------------
                                           DAT17              .EQU                7
                                           DAT16              .EQU                6
                                           DAT15              .EQU                5
                                           DAT14              .EQU                4
                                           DAT13              .EQU                3
                                           DAT12              .EQU                2
                                           DAT11              .EQU                1
                                           DAT10              .EQU                0
                                           _DAT17             .EQU                7
                                           _DAT16             .EQU                6
                                           _DAT15             .EQU                5
                                           _DAT14             .EQU                4
                                           _DAT13             .EQU                3
                                           _DAT12             .EQU                2
                                           _DAT11             .EQU                1
                                           _DAT10             .EQU                0
                                           
                                           ;LEDDATA2 Bits--------------------------------
                                           DAT27              .EQU                7
                                           DAT26              .EQU                6
                                           DAT25              .EQU                5
                                           DAT24              .EQU                4
                                           DAT23              .EQU                3
                                           DAT22              .EQU                2
                                           DAT21              .EQU                1
                                           DAT20              .EQU                0
                                           _DAT27             .EQU                7
                                           _DAT26             .EQU                6
                                           _DAT25             .EQU                5
                                           _DAT24             .EQU                4
                                           _DAT23             .EQU                3
                                           _DAT22             .EQU                2
                                           _DAT21             .EQU                1
                                           _DAT20             .EQU                0
                                           
                                           ;LEDDATA3 Bits--------------------------------
                                           DAT37              .EQU                7
                                           DAT36              .EQU                6
                                           DAT35              .EQU                5
                                           DAT34              .EQU                4
                                           DAT33              .EQU                3
                                           DAT32              .EQU                2
                                           DAT31              .EQU                1
                                           DAT30              .EQU                0
                                           _DAT37             .EQU                7
                                           _DAT36             .EQU                6
                                           _DAT35             .EQU                5
                                           _DAT34             .EQU                4
                                           _DAT33             .EQU                3
                                           _DAT32             .EQU                2
                                           _DAT31             .EQU                1
                                           _DAT30             .EQU                0
                                           
                                           ;LEDDATA4 Bits--------------------------------
                                           DAT47              .EQU                7
                                           DAT46              .EQU                6
                                           DAT45              .EQU                5
                                           DAT44              .EQU                4
                                           DAT43              .EQU                3
                                           DAT42              .EQU                2
                                           DAT41              .EQU                1
                                           DAT40              .EQU                0
                                           _DAT47             .EQU                7
                                           _DAT46             .EQU                6
                                           _DAT45             .EQU                5
                                           _DAT44             .EQU                4
                                           _DAT43             .EQU                3
                                           _DAT42             .EQU                2
                                           _DAT41             .EQU                1
                                           _DAT40             .EQU                0
                                           
                                           ;LEDDATA5 Bits--------------------------------
                                           DAT57              .EQU                7
                                           DAT56              .EQU                6
                                           DAT55              .EQU                5
                                           DAT54              .EQU                4
                                           DAT53              .EQU                3
                                           DAT52              .EQU                2
                                           DAT51              .EQU                1
                                           DAT50              .EQU                0
                                           _DAT57             .EQU                7
                                           _DAT56             .EQU                6
                                           _DAT55             .EQU                5
                                           _DAT54             .EQU                4
                                           _DAT53             .EQU                3
                                           _DAT52             .EQU                2
                                           _DAT51             .EQU                1
                                           _DAT50             .EQU                0
                                           
                                           ;LEDDATA6 Bits--------------------------------
                                           DAT67              .EQU                7
                                           DAT66              .EQU                6
                                           DAT65              .EQU                5
                                           DAT64              .EQU                4
                                           DAT63              .EQU                3
                                           DAT62              .EQU                2
                                           DAT61              .EQU                1
                                           DAT60              .EQU                0
                                           _DAT67             .EQU                7
                                           _DAT66             .EQU                6
                                           _DAT65             .EQU                5
                                           _DAT64             .EQU                4
                                           _DAT63             .EQU                3
                                           _DAT62             .EQU                2
                                           _DAT61             .EQU                1
                                           _DAT60             .EQU                0
                                           
                                           ;LEDDATA7 Bits--------------------------------
                                           DAT77              .EQU                7
                                           DAT76              .EQU                6
                                           DAT75              .EQU                5
                                           DAT74              .EQU                4
                                           DAT73              .EQU                3
                                           DAT72              .EQU                2
                                           DAT71              .EQU                1
                                           DAT70              .EQU                0
                                           _DAT77             .EQU                7
                                           _DAT76             .EQU                6
                                           _DAT75             .EQU                5
                                           _DAT74             .EQU                4
                                           _DAT73             .EQU                3
                                           _DAT72             .EQU                2
                                           _DAT71             .EQU                1
                                           _DAT70             .EQU                0
                                           
                                           ;LEDOMS1 Bits---------------------------------
                                           LEDOM17            .EQU                7
                                           LEDOM16            .EQU                6
                                           LEDOM15            .EQU                5
                                           LEDOM14            .EQU                4
                                           LEDOM13            .EQU                3
                                           LEDOM12            .EQU                2
                                           LEDOM11            .EQU                1
                                           LEDOM10            .EQU                0
                                           _LEDOM17           .EQU                7
                                           _LEDOM16           .EQU                6
                                           _LEDOM15           .EQU                5
                                           _LEDOM14           .EQU                4
                                           _LEDOM13           .EQU                3
                                           _LEDOM12           .EQU                2
                                           _LEDOM11           .EQU                1
                                           _LEDOM10           .EQU                0
                                           
                                           ;LEDODS0 Bits---------------------------------
                                           LEDOD07            .EQU                7
                                           LEDOD06            .EQU                6
                                           LEDOD05            .EQU                5
                                           LEDOD04            .EQU                4
                                           LEDOD03            .EQU                3
                                           LEDOD02            .EQU                2
                                           LEDOD01            .EQU                1
                                           LEDOD00            .EQU                0
                                           _LEDOD07           .EQU                7
                                           _LEDOD06           .EQU                6
                                           _LEDOD05           .EQU                5
                                           _LEDOD04           .EQU                4
                                           _LEDOD03           .EQU                3
                                           _LEDOD02           .EQU                2
                                           _LEDOD01           .EQU                1
                                           _LEDOD00           .EQU                0
                                           
                                           ;LEDOMS0 Bits---------------------------------
                                           LEDOM07            .EQU                7
                                           LEDOM06            .EQU                6
                                           LEDOM05            .EQU                5
                                           LEDOM04            .EQU                4
                                           LEDOM03            .EQU                3
                                           LEDOM02            .EQU                2
                                           LEDOM01            .EQU                1
                                           LEDOM00            .EQU                0
                                           _LEDOM07           .EQU                7
                                           _LEDOM06           .EQU                6
                                           _LEDOM05           .EQU                5
                                           _LEDOM04           .EQU                4
                                           _LEDOM03           .EQU                3
                                           _LEDOM02           .EQU                2
                                           _LEDOM01           .EQU                1
                                           _LEDOM00           .EQU                0
                                           
                                           ;LEDODS1 Bits---------------------------------
                                           LEDOD17            .EQU                7
                                           LEDOD16            .EQU                6
                                           LEDOD15            .EQU                5
                                           LEDOD14            .EQU                4
                                           LEDOD13            .EQU                3
                                           LEDOD12            .EQU                2
                                           LEDOD11            .EQU                1
                                           LEDOD10            .EQU                0
                                           _LEDOD17           .EQU                7
                                           _LEDOD16           .EQU                6
                                           _LEDOD15           .EQU                5
                                           _LEDOD14           .EQU                4
                                           _LEDOD13           .EQU                3
                                           _LEDOD12           .EQU                2
                                           _LEDOD11           .EQU                1
                                           _LEDOD10           .EQU                0
                                           
                                           ;LEDLUM Bits----------------------------------
                                           LEDBR              .EQU                7
                                           FRAMEF             .EQU                3
                                           LUM2               .EQU                2
                                           LUM1               .EQU                1
                                           LUM0               .EQU                0
                                           _LEDBR             .EQU                7
                                           _FRAMEF            .EQU                3
                                           _LUM2              .EQU                2
                                           _LUM1              .EQU                1
                                           _LUM0              .EQU                0
                                           
                                           ;T4CTL Bits-----------------------------------
                                           T4REN              .EQU                7
                                           HSPEN              .EQU                6
                                           T4CKS1             .EQU                5
                                           T4CKS0             .EQU                4
                                           LSPEN              .EQU                3
                                           T4CS1              .EQU                2
                                           T4CS0              .EQU                1
                                           T4ON               .EQU                0
                                           _T4REN             .EQU                7
                                           _HSPEN             .EQU                6
                                           _T4CKS1            .EQU                5
                                           _T4CKS0            .EQU                4
                                           _LSPEN             .EQU                3
                                           _T4CS1             .EQU                2
                                           _T4CS0             .EQU                1
                                           _T4ON              .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; config word(s)
                                           ;--------------------------------------------------------
                                           	__config 0x594
                                           ;--------------------------------------------------------
                                           ; external declarations
                                           ;--------------------------------------------------------
                                           
                                           	.extern I0R1
                                           	.extern I0R7
                                           	.extern I0PSW
                                           	.extern I0PCH
                                           	.extern I1R1
                                           	.extern I1R7
                                           	.extern I1PSW
                                           	.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 (Mar  1 2016 15:13:08) (MSVC)
                                           ; This file was generated Tue May 31 17:23:26 2016
                                           ;--------------------------------------------------------
                                           ; chipon port for the 16-bit core
                                           ;--------------------------------------------------------
                                           ;	.file	"../main.c"
                                           	.radix dec
                                           	.include "KF8TS2716.inc"
                                           
                                           ;************************************************************ 
                                           ;       Header file for the KungFu8 
                                           ;       KF8TS2716 
                                           ;       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
                                           P3                .EQU                0x08
                                           PCH               .EQU                0x0A
                                           INTCTL            .EQU                0x0B
                                           EIF1              .EQU                0x0C
                                           EIF2              .EQU                0x0D
                                           T1L               .EQU                0x0E
                                           T1H               .EQU                0x0F
                                           T1CTL             .EQU                0x10
                                           PWM1L             .EQU                0x13
                                           PWM1H             .EQU                0x14
                                           PWMCTL            .EQU                0x15
                                           PP1               .EQU                0x16
                                           BANK              .EQU                0x17
                                           ADSCANCTL         .EQU                0x18
                                           ANSEH             .EQU                0x1D
                                           ADCDATA0H         .EQU                0x1E
                                           ADCCTL0           .EQU                0x1F
                                           OPTR              .EQU                0x21
                                           IP0               .EQU                0x22
                                           IP1               .EQU                0x23
                                           IP2               .EQU                0x24
                                           TR0               .EQU                0x25
                                           TR2               .EQU                0x26
                                           TR1               .EQU                0x27
                                           OSCSTA            .EQU                0x28
                                           IP3               .EQU                0x29
                                           VRECAL1           .EQU                0x2A
                                           VRECTL            .EQU                0x2B
                                           EIE1              .EQU                0x2C
                                           EIE2              .EQU                0x2D
                                           PCTL              .EQU                0x2E
                                           OSCCTL            .EQU                0x2F
                                           OSCCAL0           .EQU                0x30
                                           ANSEL             .EQU                0x31
                                           PP2               .EQU                0x32
                                           PWM2L             .EQU                0x33
                                           PWM2H             .EQU                0x34
                                           PUR0              .EQU                0x35
                                           IOCL              .EQU                0x36
                                           OSCCAL1           .EQU                0x37
                                           NVMDATAH          .EQU                0x38
                                           NVMDATAL          .EQU                0x39
                                           NVMADDRH          .EQU                0x3A
                                           NVMADDRL          .EQU                0x3B
                                           NVMCTL0           .EQU                0x3C
                                           NVMCTL1           .EQU                0x3D
                                           ADCDATA0L         .EQU                0x3E
                                           ADCCTL1           .EQU                0x3F
                                           P0LR              .EQU                0x45
                                           P2LR              .EQU                0x46
                                           P1LR              .EQU                0x47
                                           P3LR              .EQU                0x48
                                           TR3               .EQU                0x49
                                           EIE3              .EQU                0x4A
                                           EIF3              .EQU                0x4B
                                           OSCCAL2           .EQU                0x4C
                                           OSCCAL3           .EQU                0x4D
                                           T3L               .EQU                0x4F
                                           ADCDATA1H         .EQU                0x50
                                           ADCDATA1L         .EQU                0x51
                                           CTCTL0            .EQU                0x53
                                           ADCINTCTL         .EQU                0x58
                                           ADCDATA2H         .EQU                0x59
                                           ADCDATA2L         .EQU                0x5A
                                           ADCDATA3H         .EQU                0x5E
                                           T3H               .EQU                0x5F
                                           PUR1              .EQU                0x60
                                           PUR2              .EQU                0x61
                                           CTCTL1            .EQU                0x64
                                           INTEDGCTL         .EQU                0x67
                                           ADCDATA3L         .EQU                0x6A
                                           VBIASCTL          .EQU                0x6B
                                           VBIAS1EN          .EQU                0x6C
                                           VBIAS2EN          .EQU                0x6D
                                           VDAC              .EQU                0x112
                                           RSCTL             .EQU                0x120
                                           TXSDR             .EQU                0x121
                                           RXSDR             .EQU                0x122
                                           BRCTL             .EQU                0x123
                                           TSCTL             .EQU                0x124
                                           EUBRGL            .EQU                0x125
                                           EUBRGH            .EQU                0x126
                                           SSCICTL0          .EQU                0x128
                                           SSCICTL1          .EQU                0x12A
                                           SSCISTA           .EQU                0x12B
                                           SSCIBUFR          .EQU                0x12C
                                           SSCIMSK           .EQU                0x12E
                                           SSCIADD           .EQU                0x12E
                                           WDTPS             .EQU                0x12F
                                           MULAH             .EQU                0x130
                                           MULAL             .EQU                0x131
                                           MULBH             .EQU                0x132
                                           MULBL             .EQU                0x133
                                           MULCTL            .EQU                0x134
                                           MULRES3           .EQU                0x135
                                           MULRES2           .EQU                0x136
                                           MULRES1           .EQU                0x137
                                           MULRES0           .EQU                0x138
                                           DIVCTL            .EQU                0x139
                                           DIVAH             .EQU                0x13A
                                           DIVAL             .EQU                0x13B
                                           DIVB              .EQU                0x13C
                                           DIVQH             .EQU                0x13D
                                           DIVQL             .EQU                0x13E
                                           DIVR              .EQU                0x13F
                                           LEDCTL            .EQU                0x140
                                           LEDPRE            .EQU                0x141
                                           LEDDATA0          .EQU                0x142
                                           LEDDATA1          .EQU                0x143
                                           LEDDATA2          .EQU                0x144
                                           LEDDATA3          .EQU                0x145
                                           LEDDATA4          .EQU                0x146
                                           LEDDATA5          .EQU                0x147
                                           LEDDATA6          .EQU                0x148
                                           LEDDATA7          .EQU                0x149
                                           LEDOMS1           .EQU                0x150
                                           LEDODS0           .EQU                0x155
                                           LEDOMS0           .EQU                0x157
                                           LEDODS1           .EQU                0x158
                                           VRECAL2           .EQU                0x159
                                           VRECAL3           .EQU                0x15A
                                           LEDLUM            .EQU                0x15C
                                           T4L               .EQU                0x160
                                           T4H               .EQU                0x161
                                           T4REL             .EQU                0x162
                                           T4REH             .EQU                0x163
                                           T4CTL             .EQU                0x164
                                           RC32KCAL          .EQU                0x165
                                            
                                            
                                           
                                           ;PSW Bits-------------------------------------
                                           TO                 .EQU                4
                                           PD                 .EQU                3
                                           Z                  .EQU                2
                                           DC                 .EQU                1
                                           CY                 .EQU                0
                                           _TO                .EQU                4
                                           _PD                .EQU                3
                                           _Z                 .EQU                2
                                           _DC                .EQU                1
                                           _CY                .EQU                0
                                           
                                           ;P0 Bits--------------------------------------
                                           P05                .EQU                5
                                           P04                .EQU                4
                                           P03                .EQU                3
                                           P02                .EQU                2
                                           P01                .EQU                1
                                           P00                .EQU                0
                                           _P05               .EQU                5
                                           _P04               .EQU                4
                                           _P03               .EQU                3
                                           _P02               .EQU                2
                                           _P01               .EQU                1
                                           _P00               .EQU                0
                                           
                                           ;P2 Bits--------------------------------------
                                           P27                .EQU                7
                                           P26                .EQU                6
                                           P25                .EQU                5
                                           P24                .EQU                4
                                           P23                .EQU                3
                                           P22                .EQU                2
                                           P21                .EQU                1
                                           P20                .EQU                0
                                           _P27               .EQU                7
                                           _P26               .EQU                6
                                           _P25               .EQU                5
                                           _P24               .EQU                4
                                           _P23               .EQU                3
                                           _P22               .EQU                2
                                           _P21               .EQU                1
                                           _P20               .EQU                0
                                           
                                           ;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
                                           
                                           ;P3 Bits--------------------------------------
                                           P37                .EQU                7
                                           P36                .EQU                6
                                           P35                .EQU                5
                                           P34                .EQU                4
                                           P33                .EQU                3
                                           P32                .EQU                2
                                           P31                .EQU                1
                                           P30                .EQU                0
                                           _P37               .EQU                7
                                           _P36               .EQU                6
                                           _P35               .EQU                5
                                           _P34               .EQU                4
                                           _P33               .EQU                3
                                           _P32               .EQU                2
                                           _P31               .EQU                1
                                           _P30               .EQU                0
                                           
                                           ;INTCTL Bits----------------------------------
                                           AIE                .EQU                7
                                           AIEH               .EQU                7
                                           PUIE               .EQU                6
                                           AIEL               .EQU                6
                                           T0IE               .EQU                5
                                           INT0IE             .EQU                4
                                           P0IE               .EQU                3
                                           T0IF               .EQU                2
                                           INT0IF             .EQU                1
                                           P0IF               .EQU                0
                                           _AIE               .EQU                7
                                           _AIEH              .EQU                7
                                           _PUIE              .EQU                6
                                           _AIEL              .EQU                6
                                           _T0IE              .EQU                5
                                           _INT0IE            .EQU                4
                                           _P0IE              .EQU                3
                                           _T0IF              .EQU                2
                                           _INT0IF            .EQU                1
                                           _P0IF              .EQU                0
                                           
                                           ;EIF1 Bits------------------------------------
                                           ADIF               .EQU                6
                                           INT2IF             .EQU                5
                                           INT1IF             .EQU                4
                                           PWM2IF             .EQU                2
                                           T1IF               .EQU                0
                                           _ADIF              .EQU                6
                                           _INT2IF            .EQU                5
                                           _INT1IF            .EQU                4
                                           _PWM2IF            .EQU                2
                                           _T1IF              .EQU                0
                                           
                                           ;EIF2 Bits------------------------------------
                                           T3IF               .EQU                7
                                           RCIF               .EQU                5
                                           TXIF               .EQU                4
                                           BCLIF              .EQU                1
                                           SSCIIF             .EQU                0
                                           _T3IF              .EQU                7
                                           _RCIF              .EQU                5
                                           _TXIF              .EQU                4
                                           _BCLIF             .EQU                1
                                           _SSCIIF            .EQU                0
                                           
                                           ;T1CTL Bits-----------------------------------
                                           T1RLD              .EQU                7
                                           T1GC               .EQU                6
                                           T1CKS1             .EQU                5
                                           T1CKS0             .EQU                4
                                           T1OSCEN            .EQU                3
                                           T1SY               .EQU                2
                                           T1CS               .EQU                1
                                           T1ON               .EQU                0
                                           _T1RLD             .EQU                7
                                           _T1GC              .EQU                6
                                           _T1CKS1            .EQU                5
                                           _T1CKS0            .EQU                4
                                           _T1OSCEN           .EQU                3
                                           _T1SY              .EQU                2
                                           _T1CS              .EQU                1
                                           _T1ON              .EQU                0
                                           
                                           ;PWMCTL Bits----------------------------------
                                           PWM2ON             .EQU                4
                                           PWM1ON             .EQU                0
                                           _PWM2ON            .EQU                4
                                           _PWM1ON            .EQU                0
                                           
                                           ;BANK Bits------------------------------------
                                           PR3                .EQU                3
                                           PR2                .EQU                2
                                           PR1                .EQU                1
                                           PR0                .EQU                0
                                           _PR3               .EQU                3
                                           _PR2               .EQU                2
                                           _PR1               .EQU                1
                                           _PR0               .EQU                0
                                           
                                           ;ADSCANCTL Bits-------------------------------
                                           ADSCANEN           .EQU                7
                                           SMOD1              .EQU                6
                                           SMOD0              .EQU                5
                                           STIM4              .EQU                4
                                           STIM3              .EQU                3
                                           STIM2              .EQU                2
                                           STIM1              .EQU                1
                                           STIM0              .EQU                0
                                           _ADSCANEN          .EQU                7
                                           _SMOD1             .EQU                6
                                           _SMOD0             .EQU                5
                                           _STIM4             .EQU                4
                                           _STIM3             .EQU                3
                                           _STIM2             .EQU                2
                                           _STIM1             .EQU                1
                                           _STIM0             .EQU                0
                                           
                                           ;ANSEH Bits-----------------------------------
                                           ANS15              .EQU                7
                                           ANS14              .EQU                6
                                           ANS13              .EQU                5
                                           ANS12              .EQU                4
                                           ANS11              .EQU                3
                                           ANS10              .EQU                2
                                           ANS9               .EQU                1
                                           ANS8               .EQU                0
                                           _ANS15             .EQU                7
                                           _ANS14             .EQU                6
                                           _ANS13             .EQU                5
                                           _ANS12             .EQU                4
                                           _ANS11             .EQU                3
                                           _ANS10             .EQU                2
                                           _ANS9              .EQU                1
                                           _ANS8              .EQU                0
                                           
                                           ;ADCCTL0 Bits---------------------------------
                                           ADLR               .EQU                7
                                           CHS3               .EQU                5
                                           CHS2               .EQU                4
                                           CHS1               .EQU                3
                                           CHS0               .EQU                2
                                           START              .EQU                1
                                           ADEN               .EQU                0
                                           _ADLR              .EQU                7
                                           _CHS3              .EQU                5
                                           _CHS2              .EQU                4
                                           _CHS1              .EQU                3
                                           _CHS0              .EQU                2
                                           _START             .EQU                1
                                           _ADEN              .EQU                0
                                           
                                           ;OPTR Bits------------------------------------
                                           PUPH               .EQU                7
                                           INT0SE             .EQU                6
                                           T0CS               .EQU                5
                                           T0SE               .EQU                4
                                           PSA                .EQU                3
                                           PS2                .EQU                2
                                           PS1                .EQU                1
                                           PS0                .EQU                0
                                           _PUPH              .EQU                7
                                           _INT0SE            .EQU                6
                                           _T0CS              .EQU                5
                                           _T0SE              .EQU                4
                                           _PSA               .EQU                3
                                           _PS2               .EQU                2
                                           _PS1               .EQU                1
                                           _PS0               .EQU                0
                                           
                                           ;IP0 Bits-------------------------------------
                                           PT0                .EQU                2
                                           PINT0              .EQU                1
                                           PP0                .EQU                0
                                           _PT0               .EQU                2
                                           _PINT0             .EQU                1
                                           _PP0               .EQU                0
                                           
                                           ;IP1 Bits-------------------------------------
                                           PADC               .EQU                6
                                           PINT2              .EQU                5
                                           PINT1              .EQU                4
                                           PPWM2              .EQU                2
                                           PT1                .EQU                0
                                           _PADC              .EQU                6
                                           _PINT2             .EQU                5
                                           _PINT1             .EQU                4
                                           _PPWM2             .EQU                2
                                           _PT1               .EQU                0
                                           
                                           ;IP2 Bits-------------------------------------
                                           PT3                .EQU                7
                                           PRC                .EQU                5
                                           PTX                .EQU                4
                                           PBCL               .EQU                1
                                           PSSCI              .EQU                0
                                           _PT3               .EQU                7
                                           _PRC               .EQU                5
                                           _PTX               .EQU                4
                                           _PBCL              .EQU                1
                                           _PSSCI             .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
                                           TR23               .EQU                3
                                           TR22               .EQU                2
                                           TR21               .EQU                1
                                           TR20               .EQU                0
                                           _TR27              .EQU                7
                                           _TR26              .EQU                6
                                           _TR25              .EQU                5
                                           _TR24              .EQU                4
                                           _TR23              .EQU                3
                                           _TR22              .EQU                2
                                           _TR21              .EQU                1
                                           _TR20              .EQU                0
                                           
                                           ;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
                                           
                                           ;OSCSTA Bits----------------------------------
                                           OSTS               .EQU                6
                                           HTS                .EQU                5
                                           LTS                .EQU                4
                                           SCF1               .EQU                1
                                           SCF0               .EQU                0
                                           _OSTS              .EQU                6
                                           _HTS               .EQU                5
                                           _LTS               .EQU                4
                                           _SCF1              .EQU                1
                                           _SCF0              .EQU                0
                                           
                                           ;IP3 Bits-------------------------------------
                                           PT4                .EQU                7
                                           POSCFAIL           .EQU                5
                                           _PT4               .EQU                7
                                           _POSCFAIL          .EQU                5
                                           
                                           ;VRECTL Bits----------------------------------
                                           VRESEL1            .EQU                7
                                           VRESEL0            .EQU                6
                                           VRECALEN           .EQU                5
                                           VREBG              .EQU                4
                                           VREOE              .EQU                3
                                           P18OE              .EQU                2
                                           VREEN              .EQU                1
                                           LPREN              .EQU                0
                                           _VRESEL1           .EQU                7
                                           _VRESEL0           .EQU                6
                                           _VRECALEN          .EQU                5
                                           _VREBG             .EQU                4
                                           _VREOE             .EQU                3
                                           _P18OE             .EQU                2
                                           _VREEN             .EQU                1
                                           _LPREN             .EQU                0
                                           
                                           ;EIE1 Bits------------------------------------
                                           ADIE               .EQU                6
                                           INT2IE             .EQU                5
                                           INT1IE             .EQU                4
                                           PWM2IE             .EQU                2
                                           T1IE               .EQU                0
                                           _ADIE              .EQU                6
                                           _INT2IE            .EQU                5
                                           _INT1IE            .EQU                4
                                           _PWM2IE            .EQU                2
                                           _T1IE              .EQU                0
                                           
                                           ;EIE2 Bits------------------------------------
                                           T3IE               .EQU                7
                                           RCIE               .EQU                5
                                           TXIE               .EQU                4
                                           BCLIE              .EQU                1
                                           SSCIIE             .EQU                0
                                           _T3IE              .EQU                7
                                           _RCIE              .EQU                5
                                           _TXIE              .EQU                4
                                           _BCLIE             .EQU                1
                                           _SSCIIE            .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----------------------------------
                                           CLKOE              .EQU                7
                                           IRCS2              .EQU                6
                                           IRCS1              .EQU                5
                                           IRCS0              .EQU                4
                                           SCS1               .EQU                3
                                           SCS0               .EQU                2
                                           IESO               .EQU                1
                                           FSCM               .EQU                0
                                           _CLKOE             .EQU                7
                                           _IRCS2             .EQU                6
                                           _IRCS1             .EQU                5
                                           _IRCS0             .EQU                4
                                           _SCS1              .EQU                3
                                           _SCS0              .EQU                2
                                           _IESO              .EQU                1
                                           _FSCM              .EQU                0
                                           
                                           ;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
                                           
                                           ;PUR0 Bits------------------------------------
                                           PUR05              .EQU                5
                                           PUR04              .EQU                4
                                           PUR03              .EQU                3
                                           PUR01              .EQU                1
                                           PUR00              .EQU                0
                                           _PUR05             .EQU                5
                                           _PUR04             .EQU                4
                                           _PUR03             .EQU                3
                                           _PUR01             .EQU                1
                                           _PUR00             .EQU                0
                                           
                                           ;IOCL Bits------------------------------------
                                           IOCL5              .EQU                5
                                           IOCL4              .EQU                4
                                           IOCL3              .EQU                3
                                           IOCL2              .EQU                2
                                           IOCL1              .EQU                1
                                           IOCL0              .EQU                0
                                           _IOCL5             .EQU                5
                                           _IOCL4             .EQU                4
                                           _IOCL3             .EQU                3
                                           _IOCL2             .EQU                2
                                           _IOCL1             .EQU                1
                                           _IOCL0             .EQU                0
                                           
                                           ;ADCCTL1 Bits---------------------------------
                                           ADCALEN            .EQU                7
                                           ADCS2              .EQU                6
                                           ADCS1              .EQU                5
                                           ADCS0              .EQU                4
                                           VCFG1              .EQU                3
                                           VCFG0              .EQU                2
                                           ADCIM              .EQU                0
                                           _ADCALEN           .EQU                7
                                           _ADCS2             .EQU                6
                                           _ADCS1             .EQU                5
                                           _ADCS0             .EQU                4
                                           _VCFG1             .EQU                3
                                           _VCFG0             .EQU                2
                                           _ADCIM             .EQU                0
                                           
                                           ;P0LR Bits------------------------------------
                                           P0LR5              .EQU                5
                                           P0LR4              .EQU                4
                                           P0LR3              .EQU                3
                                           P0LR1              .EQU                1
                                           P0LR0              .EQU                0
                                           _P0LR5             .EQU                5
                                           _P0LR4             .EQU                4
                                           _P0LR3             .EQU                3
                                           _P0LR1             .EQU                1
                                           _P0LR0             .EQU                0
                                           
                                           ;P2LR Bits------------------------------------
                                           P2LR7              .EQU                7
                                           P2LR6              .EQU                6
                                           P2LR5              .EQU                5
                                           P2LR4              .EQU                4
                                           P2LR3              .EQU                3
                                           P2LR2              .EQU                2
                                           P2LR1              .EQU                1
                                           P2LR0              .EQU                0
                                           _P2LR7             .EQU                7
                                           _P2LR6             .EQU                6
                                           _P2LR5             .EQU                5
                                           _P2LR4             .EQU                4
                                           _P2LR3             .EQU                3
                                           _P2LR2             .EQU                2
                                           _P2LR1             .EQU                1
                                           _P2LR0             .EQU                0
                                           
                                           ;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
                                           
                                           ;P3LR Bits------------------------------------
                                           P3LR7              .EQU                7
                                           P3LR6              .EQU                6
                                           P3LR5              .EQU                5
                                           P3LR4              .EQU                4
                                           P3LR3              .EQU                3
                                           P3LR2              .EQU                2
                                           P3LR1              .EQU                1
                                           P3LR0              .EQU                0
                                           _P3LR7             .EQU                7
                                           _P3LR6             .EQU                6
                                           _P3LR5             .EQU                5
                                           _P3LR4             .EQU                4
                                           _P3LR3             .EQU                3
                                           _P3LR2             .EQU                2
                                           _P3LR1             .EQU                1
                                           _P3LR0             .EQU                0
                                           
                                           ;TR3 Bits-------------------------------------
                                           TR37               .EQU                7
                                           TR36               .EQU                6
                                           TR35               .EQU                5
                                           TR34               .EQU                4
                                           TR33               .EQU                3
                                           TR32               .EQU                2
                                           TR31               .EQU                1
                                           TR30               .EQU                0
                                           _TR37              .EQU                7
                                           _TR36              .EQU                6
                                           _TR35              .EQU                5
                                           _TR34              .EQU                4
                                           _TR33              .EQU                3
                                           _TR32              .EQU                2
                                           _TR31              .EQU                1
                                           _TR30              .EQU                0
                                           
                                           ;EIE3 Bits------------------------------------
                                           T4IE               .EQU                7
                                           OSCFAILIE          .EQU                5
                                           _T4IE              .EQU                7
                                           _OSCFAILIE         .EQU                5
                                           
                                           ;EIF3 Bits------------------------------------
                                           T4IF               .EQU                7
                                           OSCFAILIF          .EQU                5
                                           _T4IF              .EQU                7
                                           _OSCFAILIF         .EQU                5
                                           
                                           ;CTCTL0 Bits----------------------------------
                                           CTEN               .EQU                7
                                           CTSTART            .EQU                6
                                           CTCHSEL4           .EQU                4
                                           CTCHSEL3           .EQU                3
                                           CTCHSEL2           .EQU                2
                                           CTCHSEL1           .EQU                1
                                           CTCHSEL0           .EQU                0
                                           _CTEN              .EQU                7
                                           _CTSTART           .EQU                6
                                           _CTCHSEL4          .EQU                4
                                           _CTCHSEL3          .EQU                3
                                           _CTCHSEL2          .EQU                2
                                           _CTCHSEL1          .EQU                1
                                           _CTCHSEL0          .EQU                0
                                           
                                           ;ADCINTCTL Bits-------------------------------
                                           INTCTL1            .EQU                1
                                           INTCTL0            .EQU                0
                                           _INTCTL1           .EQU                1
                                           _INTCTL0           .EQU                0
                                           
                                           ;PUR1 Bits------------------------------------
                                           PUR17              .EQU                7
                                           PUR16              .EQU                6
                                           PUR15              .EQU                5
                                           PUR14              .EQU                4
                                           PUR13              .EQU                3
                                           PUR12              .EQU                2
                                           PUR11              .EQU                1
                                           PUR10              .EQU                0
                                           _PUR17             .EQU                7
                                           _PUR16             .EQU                6
                                           _PUR15             .EQU                5
                                           _PUR14             .EQU                4
                                           _PUR13             .EQU                3
                                           _PUR12             .EQU                2
                                           _PUR11             .EQU                1
                                           _PUR10             .EQU                0
                                           
                                           ;PUR2 Bits------------------------------------
                                           PUR27              .EQU                7
                                           PUR26              .EQU                6
                                           PUR25              .EQU                5
                                           PUR24              .EQU                4
                                           PUR23              .EQU                3
                                           PUR22              .EQU                2
                                           PUR21              .EQU                1
                                           PUR20              .EQU                0
                                           _PUR27             .EQU                7
                                           _PUR26             .EQU                6
                                           _PUR25             .EQU                5
                                           _PUR24             .EQU                4
                                           _PUR23             .EQU                3
                                           _PUR22             .EQU                2
                                           _PUR21             .EQU                1
                                           _PUR20             .EQU                0
                                           
                                           ;CTCTL1 Bits----------------------------------
                                           CTCLKSEL1          .EQU                7
                                           CTCLKSEL0          .EQU                6
                                           VSEL               .EQU                0
                                           _CTCLKSEL1         .EQU                7
                                           _CTCLKSEL0         .EQU                6
                                           _VSEL              .EQU                0
                                           
                                           ;INTEDGCTL Bits-------------------------------
                                           INT2SE             .EQU                7
                                           INT1SE             .EQU                6
                                           T1CLKEN            .EQU                0
                                           _INT2SE            .EQU                7
                                           _INT1SE            .EQU                6
                                           _T1CLKEN           .EQU                0
                                           
                                           ;VBIASCTL Bits--------------------------------
                                           VBIASEN            .EQU                7
                                           VBSEL              .EQU                6
                                           ISEL3              .EQU                3
                                           ISEL2              .EQU                2
                                           ISEL1              .EQU                1
                                           ISEL0              .EQU                0
                                           _VBIASEN           .EQU                7
                                           _VBSEL             .EQU                6
                                           _ISEL3             .EQU                3
                                           _ISEL2             .EQU                2
                                           _ISEL1             .EQU                1
                                           _ISEL0             .EQU                0
                                           
                                           ;VBIAS1EN Bits--------------------------------
                                           VBS17EN            .EQU                7
                                           VBS16EN            .EQU                6
                                           VBS15EN            .EQU                5
                                           VBS14EN            .EQU                4
                                           VBS13EN            .EQU                3
                                           VBS12EN            .EQU                2
                                           VBS11EN            .EQU                1
                                           VBS10EN            .EQU                0
                                           _VBS17EN           .EQU                7
                                           _VBS16EN           .EQU                6
                                           _VBS15EN           .EQU                5
                                           _VBS14EN           .EQU                4
                                           _VBS13EN           .EQU                3
                                           _VBS12EN           .EQU                2
                                           _VBS11EN           .EQU                1
                                           _VBS10EN           .EQU                0
                                           
                                           ;VBIAS2EN Bits--------------------------------
                                           VBS27EN            .EQU                7
                                           VBS26EN            .EQU                6
                                           VBS25EN            .EQU                5
                                           VBS24EN            .EQU                4
                                           VBS23EN            .EQU                3
                                           VBS22EN            .EQU                2
                                           VBS21EN            .EQU                1
                                           VBS20EN            .EQU                0
                                           _VBS27EN           .EQU                7
                                           _VBS26EN           .EQU                6
                                           _VBS25EN           .EQU                5
                                           _VBS24EN           .EQU                4
                                           _VBS23EN           .EQU                3
                                           _VBS22EN           .EQU                2
                                           _VBS21EN           .EQU                1
                                           _VBS20EN           .EQU                0
                                           
                                           ;VDAC Bits------------------------------------
                                           VDAC3              .EQU                7
                                           VDAC2              .EQU                6
                                           VDAC1              .EQU                5
                                           VDAC0              .EQU                4
                                           _VDAC3             .EQU                7
                                           _VDAC2             .EQU                6
                                           _VDAC1             .EQU                5
                                           _VDAC0             .EQU                4
                                           
                                           ;RSCTL Bits-----------------------------------
                                           SPEN               .EQU                7
                                           RX9                .EQU                6
                                           SRXEN              .EQU                5
                                           CRXEN              .EQU                4
                                           ADREN              .EQU                3
                                           FRER               .EQU                2
                                           OVFER              .EQU                1
                                           RX9D               .EQU                0
                                           _SPEN              .EQU                7
                                           _RX9               .EQU                6
                                           _SRXEN             .EQU                5
                                           _CRXEN             .EQU                4
                                           _ADREN             .EQU                3
                                           _FRER              .EQU                2
                                           _OVFER             .EQU                1
                                           _RX9D              .EQU                0
                                           
                                           ;BRCTL Bits-----------------------------------
                                           ABRDOVF            .EQU                7
                                           RCIDLF             .EQU                6
                                           SCKPS              .EQU                5
                                           BRG16              .EQU                4
                                           WUEN               .EQU                1
                                           ABRDEN             .EQU                0
                                           _ABRDOVF           .EQU                7
                                           _RCIDLF            .EQU                6
                                           _SCKPS             .EQU                5
                                           _BRG16             .EQU                4
                                           _WUEN              .EQU                1
                                           _ABRDEN            .EQU                0
                                           
                                           ;TSCTL Bits-----------------------------------
                                           CSRS               .EQU                7
                                           TX9                .EQU                6
                                           TXEN               .EQU                5
                                           SYNC               .EQU                4
                                           SENDB              .EQU                3
                                           HBRG               .EQU                2
                                           TXSRS              .EQU                1
                                           TX9D               .EQU                0
                                           _CSRS              .EQU                7
                                           _TX9               .EQU                6
                                           _TXEN              .EQU                5
                                           _SYNC              .EQU                4
                                           _SENDB             .EQU                3
                                           _HBRG              .EQU                2
                                           _TXSRS             .EQU                1
                                           _TX9D              .EQU                0
                                           
                                           ;SSCICTL0 Bits--------------------------------
                                           SSCIWCFL           .EQU                7
                                           SSCIOV             .EQU                6
                                           SSCIEN             .EQU                5
                                           SSCICKP            .EQU                4
                                           SSCIMOD3           .EQU                3
                                           SSCIMOD2           .EQU                2
                                           SSCIMOD1           .EQU                1
                                           SSCIMOD0           .EQU                0
                                           _SSCIWCFL          .EQU                7
                                           _SSCIOV            .EQU                6
                                           _SSCIEN            .EQU                5
                                           _SSCICKP           .EQU                4
                                           _SSCIMOD3          .EQU                3
                                           _SSCIMOD2          .EQU                2
                                           _SSCIMOD1          .EQU                1
                                           _SSCIMOD0          .EQU                0
                                           
                                           ;SSCICTL1 Bits--------------------------------
                                           SSCICALLEN         .EQU                7
                                           SSCIACKSTA         .EQU                6
                                           SSCIACKDAT         .EQU                5
                                           SSCIACKEN          .EQU                4
                                           SSCIRCEN           .EQU                3
                                           STOPEN             .EQU                2
                                           RESTARTEN          .EQU                1
                                           STARTEN            .EQU                0
                                           _SSCICALLEN        .EQU                7
                                           _SSCIACKSTA        .EQU                6
                                           _SSCIACKDAT        .EQU                5
                                           _SSCIACKEN         .EQU                4
                                           _SSCIRCEN          .EQU                3
                                           _STOPEN            .EQU                2
                                           _RESTARTEN         .EQU                1
                                           _STARTEN           .EQU                0
                                           
                                           ;SSCISTA Bits---------------------------------
                                           SAMPLE             .EQU                7
                                           CKEGE              .EQU                6
                                           SSCIDA             .EQU                5
                                           SSCISTOP           .EQU                4
                                           SSCISTART          .EQU                3
                                           SSCIRW             .EQU                2
                                           SSCIUA             .EQU                1
                                           SSCIBUF            .EQU                0
                                           _SAMPLE            .EQU                7
                                           _CKEGE             .EQU                6
                                           _SSCIDA            .EQU                5
                                           _SSCISTOP          .EQU                4
                                           _SSCISTART         .EQU                3
                                           _SSCIRW            .EQU                2
                                           _SSCIUA            .EQU                1
                                           _SSCIBUF           .EQU                0
                                           
                                           ;SSCIMSK Bits---------------------------------
                                           SSCIMSK7           .EQU                7
                                           SSCIMSK6           .EQU                6
                                           SSCIMSK5           .EQU                5
                                           SSCIMSK4           .EQU                4
                                           SSCIMSK3           .EQU                3
                                           SSCIMSK2           .EQU                2
                                           SSCIMSK1           .EQU                1
                                           SSCIMSK0           .EQU                0
                                           _SSCIMSK7          .EQU                7
                                           _SSCIMSK6          .EQU                6
                                           _SSCIMSK5          .EQU                5
                                           _SSCIMSK4          .EQU                4
                                           _SSCIMSK3          .EQU                3
                                           _SSCIMSK2          .EQU                2
                                           _SSCIMSK1          .EQU                1
                                           _SSCIMSK0          .EQU                0
                                           
                                           ;WDTPS Bits-----------------------------------
                                           WDTPS3             .EQU                3
                                           WDTPS2             .EQU                2
                                           WDTPS1             .EQU                1
                                           WDTPS0             .EQU                0
                                           _WDTPS3            .EQU                3
                                           _WDTPS2            .EQU                2
                                           _WDTPS1            .EQU                1
                                           _WDTPS0            .EQU                0
                                           
                                           ;MULCTL Bits----------------------------------
                                           MULEN              .EQU                1
                                           MULIF              .EQU                0
                                           _MULEN             .EQU                1
                                           _MULIF             .EQU                0
                                           
                                           ;DIVCTL Bits----------------------------------
                                           DIVOEN             .EQU                1
                                           DIVEN              .EQU                0
                                           _DIVOEN            .EQU                1
                                           _DIVEN             .EQU                0
                                           
                                           ;LEDCTL Bits----------------------------------
                                           LEDEN              .EQU                7
                                           DIGEN2             .EQU                4
                                           DIGEN1             .EQU                3
                                           DIGEN0             .EQU                2
                                           PNS1               .EQU                1
                                           PNS0               .EQU                0
                                           _LEDEN             .EQU                7
                                           _DIGEN2            .EQU                4
                                           _DIGEN1            .EQU                3
                                           _DIGEN0            .EQU                2
                                           _PNS1              .EQU                1
                                           _PNS0              .EQU                0
                                           
                                           ;LEDPRE Bits----------------------------------
                                           LEDCKS13           .EQU                7
                                           LEDCKS12           .EQU                6
                                           LEDCKS11           .EQU                5
                                           LEDCKS10           .EQU                4
                                           LEDCKS03           .EQU                3
                                           LEDCKS02           .EQU                2
                                           LEDCKS01           .EQU                1
                                           LEDCKS00           .EQU                0
                                           _LEDCKS13          .EQU                7
                                           _LEDCKS12          .EQU                6
                                           _LEDCKS11          .EQU                5
                                           _LEDCKS10          .EQU                4
                                           _LEDCKS03          .EQU                3
                                           _LEDCKS02          .EQU                2
                                           _LEDCKS01          .EQU                1
                                           _LEDCKS00          .EQU                0
                                           
                                           ;LEDDATA0 Bits--------------------------------
                                           DAT07              .EQU                7
                                           DAT06              .EQU                6
                                           DAT05              .EQU                5
                                           DAT04              .EQU                4
                                           DAT03              .EQU                3
                                           DAT02              .EQU                2
                                           DAT01              .EQU                1
                                           DAT00              .EQU                0
                                           _DAT07             .EQU                7
                                           _DAT06             .EQU                6
                                           _DAT05             .EQU                5
                                           _DAT04             .EQU                4
                                           _DAT03             .EQU                3
                                           _DAT02             .EQU                2
                                           _DAT01             .EQU                1
                                           _DAT00             .EQU                0
                                           
                                           ;LEDDATA1 Bits--------------------------------
                                           DAT17              .EQU                7
                                           DAT16              .EQU                6
                                           DAT15              .EQU                5
                                           DAT14              .EQU                4
                                           DAT13              .EQU                3
                                           DAT12              .EQU                2
                                           DAT11              .EQU                1
                                           DAT10              .EQU                0
                                           _DAT17             .EQU                7
                                           _DAT16             .EQU                6
                                           _DAT15             .EQU                5
                                           _DAT14             .EQU                4
                                           _DAT13             .EQU                3
                                           _DAT12             .EQU                2
                                           _DAT11             .EQU                1
                                           _DAT10             .EQU                0
                                           
                                           ;LEDDATA2 Bits--------------------------------
                                           DAT27              .EQU                7
                                           DAT26              .EQU                6
                                           DAT25              .EQU                5
                                           DAT24              .EQU                4
                                           DAT23              .EQU                3
                                           DAT22              .EQU                2
                                           DAT21              .EQU                1
                                           DAT20              .EQU                0
                                           _DAT27             .EQU                7
                                           _DAT26             .EQU                6
                                           _DAT25             .EQU                5
                                           _DAT24             .EQU                4
                                           _DAT23             .EQU                3
                                           _DAT22             .EQU                2
                                           _DAT21             .EQU                1
                                           _DAT20             .EQU                0
                                           
                                           ;LEDDATA3 Bits--------------------------------
                                           DAT37              .EQU                7
                                           DAT36              .EQU                6
                                           DAT35              .EQU                5
                                           DAT34              .EQU                4
                                           DAT33              .EQU                3
                                           DAT32              .EQU                2
                                           DAT31              .EQU                1
                                           DAT30              .EQU                0
                                           _DAT37             .EQU                7
                                           _DAT36             .EQU                6
                                           _DAT35             .EQU                5
                                           _DAT34             .EQU                4
                                           _DAT33             .EQU                3
                                           _DAT32             .EQU                2
                                           _DAT31             .EQU                1
                                           _DAT30             .EQU                0
                                           
                                           ;LEDDATA4 Bits--------------------------------
                                           DAT47              .EQU                7
                                           DAT46              .EQU                6
                                           DAT45              .EQU                5
                                           DAT44              .EQU                4
                                           DAT43              .EQU                3
                                           DAT42              .EQU                2
                                           DAT41              .EQU                1
                                           DAT40              .EQU                0
                                           _DAT47             .EQU                7
                                           _DAT46             .EQU                6
                                           _DAT45             .EQU                5
                                           _DAT44             .EQU                4
                                           _DAT43             .EQU                3
                                           _DAT42             .EQU                2
                                           _DAT41             .EQU                1
                                           _DAT40             .EQU                0
                                           
                                           ;LEDDATA5 Bits--------------------------------
                                           DAT57              .EQU                7
                                           DAT56              .EQU                6
                                           DAT55              .EQU                5
                                           DAT54              .EQU                4
                                           DAT53              .EQU                3
                                           DAT52              .EQU                2
                                           DAT51              .EQU                1
                                           DAT50              .EQU                0
                                           _DAT57             .EQU                7
                                           _DAT56             .EQU                6
                                           _DAT55             .EQU                5
                                           _DAT54             .EQU                4
                                           _DAT53             .EQU                3
                                           _DAT52             .EQU                2
                                           _DAT51             .EQU                1
                                           _DAT50             .EQU                0
                                           
                                           ;LEDDATA6 Bits--------------------------------
                                           DAT67              .EQU                7
                                           DAT66              .EQU                6
                                           DAT65              .EQU                5
                                           DAT64              .EQU                4
                                           DAT63              .EQU                3
                                           DAT62              .EQU                2
                                           DAT61              .EQU                1
                                           DAT60              .EQU                0
                                           _DAT67             .EQU                7
                                           _DAT66             .EQU                6
                                           _DAT65             .EQU                5
                                           _DAT64             .EQU                4
                                           _DAT63             .EQU                3
                                           _DAT62             .EQU                2
                                           _DAT61             .EQU                1
                                           _DAT60             .EQU                0
                                           
                                           ;LEDDATA7 Bits--------------------------------
                                           DAT77              .EQU                7
                                           DAT76              .EQU                6
                                           DAT75              .EQU                5
                                           DAT74              .EQU                4
                                           DAT73              .EQU                3
                                           DAT72              .EQU                2
                                           DAT71              .EQU                1
                                           DAT70              .EQU                0
                                           _DAT77             .EQU                7
                                           _DAT76             .EQU                6
                                           _DAT75             .EQU                5
                                           _DAT74             .EQU                4
                                           _DAT73             .EQU                3
                                           _DAT72             .EQU                2
                                           _DAT71             .EQU                1
                                           _DAT70             .EQU                0
                                           
                                           ;LEDOMS1 Bits---------------------------------
                                           LEDOM17            .EQU                7
                                           LEDOM16            .EQU                6
                                           LEDOM15            .EQU                5
                                           LEDOM14            .EQU                4
                                           LEDOM13            .EQU                3
                                           LEDOM12            .EQU                2
                                           LEDOM11            .EQU                1
                                           LEDOM10            .EQU                0
                                           _LEDOM17           .EQU                7
                                           _LEDOM16           .EQU                6
                                           _LEDOM15           .EQU                5
                                           _LEDOM14           .EQU                4
                                           _LEDOM13           .EQU                3
                                           _LEDOM12           .EQU                2
                                           _LEDOM11           .EQU                1
                                           _LEDOM10           .EQU                0
                                           
                                           ;LEDODS0 Bits---------------------------------
                                           LEDOD07            .EQU                7
                                           LEDOD06            .EQU                6
                                           LEDOD05            .EQU                5
                                           LEDOD04            .EQU                4
                                           LEDOD03            .EQU                3
                                           LEDOD02            .EQU                2
                                           LEDOD01            .EQU                1
                                           LEDOD00            .EQU                0
                                           _LEDOD07           .EQU                7
                                           _LEDOD06           .EQU                6
                                           _LEDOD05           .EQU                5
                                           _LEDOD04           .EQU                4
                                           _LEDOD03           .EQU                3
                                           _LEDOD02           .EQU                2
                                           _LEDOD01           .EQU                1
                                           _LEDOD00           .EQU                0
                                           
                                           ;LEDOMS0 Bits---------------------------------
                                           LEDOM07            .EQU                7
                                           LEDOM06            .EQU                6
                                           LEDOM05            .EQU                5
                                           LEDOM04            .EQU                4
                                           LEDOM03            .EQU                3
                                           LEDOM02            .EQU                2
                                           LEDOM01            .EQU                1
                                           LEDOM00            .EQU                0
                                           _LEDOM07           .EQU                7
                                           _LEDOM06           .EQU                6
                                           _LEDOM05           .EQU                5
                                           _LEDOM04           .EQU                4
                                           _LEDOM03           .EQU                3
                                           _LEDOM02           .EQU                2
                                           _LEDOM01           .EQU                1
                                           _LEDOM00           .EQU                0
                                           
                                           ;LEDODS1 Bits---------------------------------
                                           LEDOD17            .EQU                7
                                           LEDOD16            .EQU                6
                                           LEDOD15            .EQU                5
                                           LEDOD14            .EQU                4
                                           LEDOD13            .EQU                3
                                           LEDOD12            .EQU                2
                                           LEDOD11            .EQU                1
                                           LEDOD10            .EQU                0
                                           _LEDOD17           .EQU                7
                                           _LEDOD16           .EQU                6
                                           _LEDOD15           .EQU                5
                                           _LEDOD14           .EQU                4
                                           _LEDOD13           .EQU                3
                                           _LEDOD12           .EQU                2
                                           _LEDOD11           .EQU                1
                                           _LEDOD10           .EQU                0
                                           
                                           ;LEDLUM Bits----------------------------------
                                           LEDBR              .EQU                7
                                           FRAMEF             .EQU                3
                                           LUM2               .EQU                2
                                           LUM1               .EQU                1
                                           LUM0               .EQU                0
                                           _LEDBR             .EQU                7
                                           _FRAMEF            .EQU                3
                                           _LUM2              .EQU                2
                                           _LUM1              .EQU                1
                                           _LUM0              .EQU                0
                                           
                                           ;T4CTL Bits-----------------------------------
                                           T4REN              .EQU                7
                                           HSPEN              .EQU                6
                                           T4CKS1             .EQU                5
                                           T4CKS0             .EQU                4
                                           LSPEN              .EQU                3
                                           T4CS1              .EQU                2
                                           T4CS0              .EQU                1
                                           T4ON               .EQU                0
                                           _T4REN             .EQU                7
                                           _HSPEN             .EQU                6
                                           _T4CKS1            .EQU                5
                                           _T4CKS0            .EQU                4
                                           _LSPEN             .EQU                3
                                           _T4CS1             .EQU                2
                                           _T4CS0             .EQU                1
                                           _T4ON              .EQU                0
                                            
                                            
                                           ;--------------------------------------------------------
                                           ; external declarations
                                           ;--------------------------------------------------------
                                           	.extern	_PSW_bits
                                           	.extern	_P0_bits
                                           	.extern	_P2_bits
                                           	.extern	_P1_bits
                                           	.extern	_P3_bits
                                           	.extern	_INTCTL_bits
                                           	.extern	_EIF1_bits
                                           	.extern	_EIF2_bits
                                           	.extern	_T1CTL_bits
                                           	.extern	_PWMCTL_bits
                                           	.extern	_BANK_bits
                                           	.extern	_ADSCANCTL_bits
                                           	.extern	_ANSEH_bits
                                           	.extern	_ADCCTL0_bits
                                           	.extern	_OPTR_bits
                                           	.extern	_IP0_bits
                                           	.extern	_IP1_bits
                                           	.extern	_IP2_bits
                                           	.extern	_TR0_bits
                                           	.extern	_TR2_bits
                                           	.extern	_TR1_bits
                                           	.extern	_OSCSTA_bits
                                           	.extern	_IP3_bits
                                           	.extern	_VRECTL_bits
                                           	.extern	_EIE1_bits
                                           	.extern	_EIE2_bits
                                           	.extern	_PCTL_bits
                                           	.extern	_OSCCTL_bits
                                           	.extern	_ANSEL_bits
                                           	.extern	_PUR0_bits
                                           	.extern	_IOCL_bits
                                           	.extern	_ADCCTL1_bits
                                           	.extern	_P0LR_bits
                                           	.extern	_P2LR_bits
                                           	.extern	_P1LR_bits
                                           	.extern	_P3LR_bits
                                           	.extern	_TR3_bits
                                           	.extern	_EIE3_bits
                                           	.extern	_EIF3_bits
                                           	.extern	_CTCTL0_bits
                                           	.extern	_ADCINTCTL_bits
                                           	.extern	_PUR1_bits
                                           	.extern	_PUR2_bits
                                           	.extern	_CTCTL1_bits
                                           	.extern	_INTEDGCTL_bits
                                           	.extern	_VBIASCTL_bits
                                           	.extern	_VBIAS1EN_bits
                                           	.extern	_VBIAS2EN_bits
                                           	.extern	_VDAC_bits
                                           	.extern	_RSCTL_bits
                                           	.extern	_BRCTL_bits
                                           	.extern	_TSCTL_bits
                                           	.extern	_SSCICTL0_bits
                                           	.extern	_SSCICTL1_bits
                                           	.extern	_SSCISTA_bits
                                           	.extern	_SSCIMSK_bits
                                           	.extern	_WDTPS_bits
                                           	.extern	_MULCTL_bits
                                           	.extern	_DIVCTL_bits
                                           	.extern	_LEDCTL_bits
                                           	.extern	_LEDPRE_bits
                                           	.extern	_LEDDATA0_bits
                                           	.extern	_LEDDATA1_bits
                                           	.extern	_LEDDATA2_bits
                                           	.extern	_LEDDATA3_bits
                                           	.extern	_LEDDATA4_bits
                                           	.extern	_LEDDATA5_bits
                                           	.extern	_LEDDATA6_bits
                                           	.extern	_LEDDATA7_bits
                                           	.extern	_LEDOMS1_bits
                                           	.extern	_LEDODS0_bits
                                           	.extern	_LEDOMS0_bits
                                           	.extern	_LEDODS1_bits
                                           	.extern	_LEDLUM_bits
                                           	.extern	_T4CTL_bits
                                           	.extern	_T0
                                           	.extern	_PCL
                                           	.extern	_PSW
                                           	.extern	_P0
                                           	.extern	_P2
                                           	.extern	_P1
                                           	.extern	_P3
                                           	.extern	_PCH
                                           	.extern	_INTCTL
                                           	.extern	_EIF1
                                           	.extern	_EIF2
                                           	.extern	_T1L
                                           	.extern	_T1H
                                           	.extern	_T1CTL
                                           	.extern	_PWM1L
                                           	.extern	_PWM1H
                                           	.extern	_PWMCTL
                                           	.extern	_PP1
                                           	.extern	_BANK
                                           	.extern	_ADSCANCTL
                                           	.extern	_ANSEH
                                           	.extern	_ADCDATA0H
                                           	.extern	_ADCCTL0
                                           	.extern	_OPTR
                                           	.extern	_IP0
                                           	.extern	_IP1
                                           	.extern	_IP2
                                           	.extern	_TR0
                                           	.extern	_TR2
                                           	.extern	_TR1
                                           	.extern	_OSCSTA
                                           	.extern	_IP3
                                           	.extern	_VRECAL1
                                           	.extern	_VRECTL
                                           	.extern	_EIE1
                                           	.extern	_EIE2
                                           	.extern	_PCTL
                                           	.extern	_OSCCTL
                                           	.extern	_OSCCAL0
                                           	.extern	_ANSEL
                                           	.extern	_PP2
                                           	.extern	_PWM2L
                                           	.extern	_PWM2H
                                           	.extern	_PUR0
                                           	.extern	_IOCL
                                           	.extern	_OSCCAL1
                                           	.extern	_NVMDATAH
                                           	.extern	_NVMDATAL
                                           	.extern	_NVMADDRH
                                           	.extern	_NVMADDRL
                                           	.extern	_NVMCTL0
                                           	.extern	_NVMCTL1
                                           	.extern	_ADCDATA0L
                                           	.extern	_ADCCTL1
                                           	.extern	_P0LR
                                           	.extern	_P2LR
                                           	.extern	_P1LR
                                           	.extern	_P3LR
                                           	.extern	_TR3
                                           	.extern	_EIE3
                                           	.extern	_EIF3
                                           	.extern	_OSCCAL2
                                           	.extern	_OSCCAL3
                                           	.extern	_T3L
                                           	.extern	_ADCDATA1H
                                           	.extern	_ADCDATA1L
                                           	.extern	_CTCTL0
                                           	.extern	_ADCINTCTL
                                           	.extern	_ADCDATA2H
                                           	.extern	_ADCDATA2L
                                           	.extern	_ADCDATA3H
                                           	.extern	_T3H
                                           	.extern	_PUR1
                                           	.extern	_PUR2
                                           	.extern	_CTCTL1
                                           	.extern	_INTEDGCTL
                                           	.extern	_ADCDATA3L
                                           	.extern	_VBIASCTL
                                           	.extern	_VBIAS1EN
                                           	.extern	_VBIAS2EN
                                           	.extern	_VDAC
                                           	.extern	_RSCTL
                                           	.extern	_TXSDR
                                           	.extern	_RXSDR
                                           	.extern	_BRCTL
                                           	.extern	_TSCTL
                                           	.extern	_EUBRGL
                                           	.extern	_EUBRGH
                                           	.extern	_SSCICTL0
                                           	.extern	_SSCICTL1
                                           	.extern	_SSCISTA
                                           	.extern	_SSCIBUFR
                                           	.extern	_SSCIMSK
                                           	.extern	_WDTPS
                                           	.extern	_MULAH
                                           	.extern	_MULAL
                                           	.extern	_MULBH
                                           	.extern	_MULBL
                                           	.extern	_MULCTL
                                           	.extern	_MULRES3
                                           	.extern	_MULRES2
                                           	.extern	_MULRES1
                                           	.extern	_MULRES0
                                           	.extern	_DIVCTL
                                           	.extern	_DIVAH
                                           	.extern	_DIVAL
                                           	.extern	_DIVB
                                           	.extern	_DIVQH
                                           	.extern	_DIVQL
                                           	.extern	_DIVR
                                           	.extern	_LEDCTL
                                           	.extern	_LEDPRE
                                           	.extern	_LEDDATA0
                                           	.extern	_LEDDATA1
                                           	.extern	_LEDDATA2
                                           	.extern	_LEDDATA3
                                           	.extern	_LEDDATA4
                                           	.extern	_LEDDATA5
                                           	.extern	_LEDDATA6
                                           	.extern	_LEDDATA7
                                           	.extern	_LEDOMS1
                                           	.extern	_LEDODS0
                                           	.extern	_LEDOMS0
                                           	.extern	_LEDODS1
                                           	.extern	_VRECAL2
                                           	.extern	_VRECAL3
                                           	.extern	_LEDLUM
                                           	.extern	_T4L
                                           	.extern	_T4H
                                           	.extern	_T4REL
                                           	.extern	_T4REH
                                           	.extern	_T4CTL
                                           	.extern	_RC32KCAL
                                           	.extern	__R2PCL
                                           	.extern	_startup
                                           	.extern	__sdcc_gsinit_startup
                                           ;--------------------------------------------------------
                                           ; global declarations
                                           ;--------------------------------------------------------
                                           	.global	_delay_ms
                                           	.global	_init_mcu
                                           	.global	_init_led
                                           	.global	_display_LED
                                           	.global	_main
                                           	.global	_display_data
                                           	.global	_temp_data
                                           	.global	_unint
                                           	.global	_decade
                                           	.global	_hundred
                                           	.global	_thound
                                           	.global	_smg_arr
                                           	.global	_Led_Power_Code
                                           
                                           	.global I0R1
                                           	.global I0R7
                                           	.global I0PSW
                                           	.global I0PCH
                                           	.global I1R1
                                           	.global I1R7
                                           	.global I1PSW
                                           	.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
                                           I0R1		.res 1
                                           I0R7		.res 1
                                           I0PSW		.res 1
                                           I0PCH		.res 1
                                           I1R1		.res 1
                                           I1R7		.res 1
                                           I1PSW		.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
                                           _display_data	.res	2
                                           
                                           UD_main_1	.udata
                                           _temp_data	.res	2
                                           
                                           UD_main_2	.udata
                                           _unint	.res	1
                                           
                                           UD_main_3	.udata
                                           _decade	.res	1
                                           
                                           UD_main_4	.udata
                                           _hundred	.res	1
                                           
                                           UD_main_5	.udata
                                           _thound	.res	1
                                           
                                           ;--------------------------------------------------------
                                           ; absolute symbol definitions
                                           ;--------------------------------------------------------
                                           ;--------------------------------------------------------
                                           ; compiler-defined variables
                                           ;--------------------------------------------------------
                                           UDL_main_0	.udata
                                           r0x1009	.res	1
                                           UDL_main_1	.udata
                                           r0x1008	.res	1
                                           UDL_main_2	.udata
                                           r0x100A	.res	1
                                           UDL_main_3	.udata
                                           r0x100B	.res	1
                                           UDL_main_4	.udata
                                           r0x100C	.res	1
                                           UDL_main_5	.udata
                                           r0x100D	.res	1
                                           UDL_main_6	.udata
                                           r0x100E	.res	1
                                           UDL_main_7	.udata
                                           r0x100F	.res	1
                                           UDL_main_8	.udata
                                           r0x1010	.res	1
                                           UDL_main_9	.udata
                                           r0x1011	.res	1
                                           ;--------------------------------------------------------
                                           ; initialized data
                                           ;--------------------------------------------------------
                                           
                                           ID_main_0	.code
                                           _smg_arr
0011c5   b0a0     RRET	R0, #0xa0           	RRET R0, #0xa0
0011c6   b0be     RRET	R0, #0xbe           	RRET R0, #0xbe
0011c7   b062     RRET	R0, #0x62           	RRET R0, #0x62
0011c8   b02a     RRET	R0, #0x2a           	RRET R0, #0x2a
0011c9   b03c     RRET	R0, #0x3c           	RRET R0, #0x3c
0011ca   b029     RRET	R0, #0x29           	RRET R0, #0x29
0011cb   b021     RRET	R0, #0x21           	RRET R0, #0x21
0011cc   b0ba     RRET	R0, #0xba           	RRET R0, #0xba
0011cd   b020     RRET	R0, #0x20           	RRET R0, #0x20
0011ce   b028     RRET	R0, #0x28           	RRET R0, #0x28
0011cf   b0ff     RRET	R0, #0xff           	RRET R0, #0xff
0011d0   b0df     RRET	R0, #0xdf           	RRET R0, #0xdf
                                           
                                           
                                           ID_main_1	.code
                                           _Led_Power_Code
0011b5   b0c8     RRET	R0, #0xc8           	RRET R0, #0xc8
0011b6   b000     RRET	R0, #0              	RRET R0, #0x00
0011b7   b090     RRET	R0, #0x90           	RRET R0, #0x90
0011b8   b001     RRET	R0, #0x1            	RRET R0, #0x01
0011b9   b020     RRET	R0, #0x20           	RRET R0, #0x20
0011ba   b003     RRET	R0, #0x3            	RRET R0, #0x03
0011bb   b0e8     RRET	R0, #0xe8           	RRET R0, #0xe8
0011bc   b003     RRET	R0, #0x3            	RRET R0, #0x03
0011bd   b014     RRET	R0, #0x14           	RRET R0, #0x14
0011be   b005     RRET	R0, #0x5            	RRET R0, #0x05
0011bf   b040     RRET	R0, #0x40           	RRET R0, #0x40
0011c0   b006     RRET	R0, #0x6            	RRET R0, #0x06
0011c1   b008     RRET	R0, #0x8            	RRET R0, #0x08
0011c2   b007     RRET	R0, #0x7            	RRET R0, #0x07
0011c3   b034     RRET	R0, #0x34           	RRET R0, #0x34
0011c4   b008     RRET	R0, #0x8            	RRET R0, #0x08
                                           
                                           ;--------------------------------------------------------
                                           ; overlayable items in internal ram 
                                           ;--------------------------------------------------------
                                           ;	.udata_ovr
                                           ;--------------------------------------------------------
                                           ; reset vector 
                                           ;--------------------------------------------------------
                                           STARTUP	.code 0x0000
000000   0000     NOP                      	NOP
000001   e011     MOVP	0x11                	PAGESEL	init_imp
000002   c1dd     JMP	#0x1dd               	JMP		init_imp
                                           
                                           	.global	init_imp
                                           INIT_IMP	.code
                                           init_imp
0011dd   e011     MOVP	0x11                	PAGESEL	_startup
0011de   d14a     CALL	#0x14a              	CALL	_startup
0011df   e011     MOVP	0x11                	PAGESEL	__sdcc_gsinit_startup
0011e0   d1e3     CALL	#0x1e3              	CALL	__sdcc_gsinit_startup
0011e1   e010     MOVP	0x10                	PAGESEL	_main
0011e2   c0f2     JMP	#0xf2                	JMP		_main
                                           
                                           
                                           func._main	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = M
                                           ;***
                                           ;entry:  _main	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   _init_mcu
                                           ;   _init_led
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   _delay_ms
                                           ;   _display_LED
                                           ;   _init_mcu
                                           ;   _init_led
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   _delay_ms
                                           ;   _display_LED
                                           ;5 compiler assigned registers:
                                           ;   r0x100E
                                           ;   r0x100F
                                           ;   r0x1010
                                           ;   r0x1011
                                           ;   STK00
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _main	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	150; "../main.c"	int i=0;
0010f2   e107     MOVB	0x7                 	BANKSEL	r0x100E
0010f3   03a2     CLR	0xa2                 	CLR	r0x100E
                                           	BANKSEL	r0x100F
0010f4   03a3     CLR	0xa3                 	CLR	r0x100F
                                           ;	op : CALL
                                           ;	.line	151; "../main.c"	init_mcu();
0010f5   e011     MOVP	0x11                	PAGESEL	_init_mcu
0010f6   d1a4     CALL	#0x1a4              	CALL	_init_mcu
0010f7   e010     MOVP	0x10                	PAGESEL	$
                                           ;	op : CALL
                                           ;	.line	152; "../main.c"	init_led();
0010f8   e011     MOVP	0x11                	PAGESEL	_init_led
0010f9   d192     CALL	#0x192              	CALL	_init_led
0010fa   e010     MOVP	0x10                	PAGESEL	$
                                           ;	op : LABEL
                                           ;	op : <
                                           ;signed compare: left < lit(0x7=7), size=2, mask=ffff
                                           _00044_DS_
                                           ;	.line	155; "../main.c"	if(i<7)
0010fb   e107     MOVB	0x7                 	BANKSEL	r0x100F
0010fc   0ea3     MOVZ	R0, 0xa3            	MOVZ	R0, r0x100F
0010fd   8080     ADD	R0, #0x80            	ADD	R0,# 0x80
0010fe   8080     ADD	R0, #0x80            	ADD	R0,# 0x80
                                           ;comparing bytes at offset 1
0010ff   7a03     JB	0x3, 2                	JB	PSW, 2
001100   c103     JMP	#0x103               	JMP	_00050_DS_
001101   9807     MOV	R0, #0x7             	MOV	R0,# 0x07
                                           	BANKSEL	r0x100E
001102   38a2     SUB	R0, 0xa2             	SUB	R0, r0x100E
                                           _00050_DS_
001103   7003     JNB	0x3, 0               	JNB	PSW, 0
001104   c10a     JMP	#0x10a               	JMP	_00041_DS_
                                           ;	op : +
                                           ;	.line	157; "../main.c"	i++;
                                           	BANKSEL	r0x100E
001105   0ba2     INC	0xa2                 	INC	r0x100E
001106   7a03     JB	0x3, 2                	JB	PSW, 2
001107   c109     JMP	#0x109               	JMP	_00051_DS_
                                           	BANKSEL	r0x100F
001108   0ba3     INC	0xa3                 	INC	r0x100F
                                           ;	op : GOTO
                                           _00051_DS_
001109   c10c     JMP	#0x10c               	JMP	_00042_DS_
                                           ;	op : LABEL
                                           ;	op : =
                                           _00041_DS_
                                           ;	.line	161; "../main.c"	i=0;
                                           	BANKSEL	r0x100E
00110a   03a2     CLR	0xa2                 	CLR	r0x100E
                                           	BANKSEL	r0x100F
00110b   03a3     CLR	0xa3                 	CLR	r0x100F
                                           ;	op : LABEL
                                           ;	op : LEFT_OP
                                           _00042_DS_
                                           ;	.line	163; "../main.c"	display_data = Led_Power_Code[i];
00110c   6003     CLR	0x3, 0               	CLR	PSW, 0
                                           	BANKSEL	r0x100E
00110d   12a2     RLCR	0xa2                	RLCR	r0x100E
                                           	BANKSEL	r0x1010
00110e   51a4     MOV	0xa4, R0             	MOV	r0x1010, R0
                                           	BANKSEL	r0x100F
00110f   12a3     RLCR	0xa3                	RLCR	r0x100F
                                           	BANKSEL	r0x1011
001110   51a5     MOV	0xa5, R0             	MOV	r0x1011, R0
                                           ;	op : +
001111   98b5     MOV	R0, #0xb5            	MOV	R0,# (_Led_Power_Code + 0)
                                           	BANKSEL	r0x1010
001112   21a4     ADD	0xa4, R0             	ADD	r0x1010, R0
001113   9811     MOV	R0, #0x11            	MOV	R0,# high (_Led_Power_Code + 0)
001114   88ff     AND	R0, #0xff            	AND	R0,# 0xff
001115   7003     JNB	0x3, 0               	JNB	PSW, 0
001116   ff10     INC	R0                   	INC	R0
001117   7203     JNB	0x3, 2               	JNB	PSW, 2
001118   c11a     JMP	#0x11a               	JMP	_00052_DS_
                                           	BANKSEL	r0x1011
001119   21a5     ADD	0xa5, R0             	ADD	r0x1011, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00052_DS_
                                           	BANKSEL	r0x1011
00111a   52a5     MOV	R1, 0xa5             	MOV	R1, r0x1011
                                           	BANKSEL	r0x1010
00111b   50a4     MOV	R0, 0xa4             	MOV	R0, r0x1010
00111c   e011     MOVP	0x11                	PAGESEL	__R2PCL
00111d   d148     CALL	#0x148              	CALL	__R2PCL
00111e   e011     MOVP	0x11                	PAGESEL	$
00111f   e107     MOVB	0x7                 	BANKSEL	_display_data
001120   5194     MOV	0x94, R0             	MOV	_display_data, R0
                                           	BANKSEL	r0x1011
001121   52a5     MOV	R1, 0xa5             	MOV	R1, r0x1011
                                           	BANKSEL	r0x1010
001122   50a4     MOV	R0, 0xa4             	MOV	R0, r0x1010
001123   8001     ADD	R0, #0x1             	ADD	R0,# 0x01
001124   7003     JNB	0x3, 0               	JNB	PSW, 0
001125   ff11     INC	R1                   	INC	R1
001126   e011     MOVP	0x11                	PAGESEL	__R2PCL
001127   d148     CALL	#0x148              	CALL	__R2PCL
001128   e011     MOVP	0x11                	PAGESEL	$
001129   e107     MOVB	0x7                 	BANKSEL	_display_data
00112a   5195     MOV	0x95, R0             	MOV	(_display_data + 1), R0
                                           ;	op : SEND
                                           ;	op : CALL
                                           ;	.line	164; "../main.c"	delay_ms(2000);
00112b   98d0     MOV	R0, #0xd0            	MOV	R0,# 0xd0
                                           	BANKSEL	STK00
00112c   5193     MOV	0x93, R0             	MOV	STK00, R0
00112d   9807     MOV	R0, #0x7             	MOV	R0,# 0x07
00112e   e011     MOVP	0x11                	PAGESEL	_delay_ms
00112f   d16e     CALL	#0x16e              	CALL	_delay_ms
001130   e011     MOVP	0x11                	PAGESEL	$
                                           ;	op : CALL
                                           ;	.line	165; "../main.c"	display_LED();
001131   e010     MOVP	0x10                	PAGESEL	_display_LED
001132   d000     CALL	#0                  	CALL	_display_LED
001133   e011     MOVP	0x11                	PAGESEL	$
                                           ;	op : GOTO
001134   c0fb     JMP	#0xfb                	JMP	_00044_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
001135   0008     CRET                     	CRET	
                                           ; exit point of _main
                                           
                                           
                                           
                                           func._display_LED	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _display_LED	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;functions called:
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;   __R2PCL
                                           ;5 compiler assigned registers:
                                           ;   r0x1008
                                           ;   r0x1009
                                           ;   r0x100A
                                           ;   r0x100B
                                           ;   r0x100C
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _display_LED	;Function start
                                           ; 2 exit points
                                           ;	op : RIGHT_OP
                                           ;	.line	112; "../main.c"	DIVAH = display_data>>8;
001000   e107     MOVB	0x7                 	BANKSEL	_display_data
001001   0e95     MOVZ	R0, 0x95            	MOVZ	R0, (_display_data + 1)
                                           	BANKSEL	r0x1008
001002   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
                                           	BANKSEL	r0x1009
001003   039c     CLR	0x9c                 	CLR	r0x1009
                                           	BANKSEL	r0x1008
001004   7f9d     JB	0x9d, 7               	JB	r0x1008, 7
001005   c007     JMP	#0x7                 	JMP	_00053_DS_
                                           	BANKSEL	r0x1009
001006   079c     DEC	0x9c                 	DEC	r0x1009
                                           ;	op : CAST
                                           _00053_DS_
                                           	BANKSEL	r0x1008
001007   0e9d     MOVZ	R0, 0x9d            	MOVZ	R0, r0x1008
001008   e101     MOVB	0x1                 	BANKSEL	_DIVAH
001009   513a     MOV	0x3a, R0             	MOV	_DIVAH, R0
                                           ;	op : CAST
                                           ;	.line	113; "../main.c"	DIVAL = display_data;
00100a   e107     MOVB	0x7                 	BANKSEL	_display_data
00100b   0e94     MOVZ	R0, 0x94            	MOVZ	R0, _display_data
00100c   e101     MOVB	0x1                 	BANKSEL	_DIVAL
00100d   513b     MOV	0x3b, R0             	MOV	_DIVAL, R0
                                           ;	op : =
                                           ;	.line	114; "../main.c"	DIVB = 10;
00100e   980a     MOV	R0, #0xa             	MOV	R0,# 0x0a
                                           	BANKSEL	_DIVB
00100f   513c     MOV	0x3c, R0             	MOV	_DIVB, R0
                                           ;	op : =
                                           ;	.line	115; "../main.c"	DIVEN = 1;
                                           	BANKSEL	_DIVCTL_bits
001010   6839     SET	0x39, 0              	SET	_DIVCTL_bits, 0
                                           ;	op : LABEL
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00018_DS_
                                           ;	.line	116; "../main.c"	while(!DIVOEN);
                                           	BANKSEL	_DIVCTL_bits
001011   7939     JB	0x39, 1               	JB	_DIVCTL_bits, 1
001012   c011     JMP	#0x11                	JMP	_00018_DS_
                                           ;	op : =
                                           ;	.line	117; "../main.c"	unint = DIVR;   //	È¡ÓàÊý
                                           	BANKSEL	_DIVR
001013   0e3f     MOVZ	R0, 0x3f            	MOVZ	R0, _DIVR
001014   e107     MOVB	0x7                 	BANKSEL	_unint
001015   5198     MOV	0x98, R0             	MOV	_unint, R0
                                           ;	op : CAST
                                           ;	.line	118; "../main.c"	temp_data = DIVQH;
001016   e101     MOVB	0x1                 	BANKSEL	_DIVQH
001017   0e3d     MOVZ	R0, 0x3d            	MOVZ	R0, _DIVQH
001018   e107     MOVB	0x7                 	BANKSEL	_temp_data
001019   5196     MOV	0x96, R0             	MOV	_temp_data, R0
                                           	BANKSEL	_temp_data
00101a   0397     CLR	0x97                 	CLR	(_temp_data + 1)
                                           ;	op : LEFT_OP
                                           ;	.line	119; "../main.c"	temp_data = (temp_data<<8) + DIVQL;
                                           	BANKSEL	_temp_data
00101b   0e96     MOVZ	R0, 0x96            	MOVZ	R0, _temp_data
                                           	BANKSEL	r0x1009
00101c   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
                                           	BANKSEL	r0x1008
00101d   039d     CLR	0x9d                 	CLR	r0x1008
                                           ;	op : =
00101e   e101     MOVB	0x1                 	BANKSEL	_DIVQL
00101f   0e3e     MOVZ	R0, 0x3e            	MOVZ	R0, _DIVQL
001020   e107     MOVB	0x7                 	BANKSEL	r0x100A
001021   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           ;	op : CAST
                                           	BANKSEL	r0x100A
001022   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
                                           	BANKSEL	r0x100B
001023   519f     MOV	0x9f, R0             	MOV	r0x100B, R0
                                           	BANKSEL	r0x100C
001024   03a0     CLR	0xa0                 	CLR	r0x100C
                                           ;	op : +
                                           	BANKSEL	r0x1008
001025   509d     MOV	R0, 0x9d             	MOV	R0, r0x1008
                                           	BANKSEL	r0x100B
001026   209f     ADD	R0, 0x9f             	ADD	R0, r0x100B
                                           	BANKSEL	_temp_data
001027   5196     MOV	0x96, R0             	MOV	_temp_data, R0
                                           	BANKSEL	r0x1009
001028   509c     MOV	R0, 0x9c             	MOV	R0, r0x1009
                                           	BANKSEL	_temp_data
001029   5197     MOV	0x97, R0             	MOV	(_temp_data + 1), R0
00102a   9800     MOV	R0, #0               	MOV	R0,# 0x00
00102b   7003     JNB	0x3, 0               	JNB	PSW, 0
00102c   ff10     INC	R0                   	INC	R0
00102d   7203     JNB	0x3, 2               	JNB	PSW, 2
00102e   c030     JMP	#0x30                	JMP	_00054_DS_
                                           	BANKSEL	_temp_data
00102f   2197     ADD	0x97, R0             	ADD	(_temp_data + 1), R0
                                           ;	op : RIGHT_OP
                                           _00054_DS_
                                           ;	.line	120; "../main.c"	DIVAH = temp_data>>8;
                                           	BANKSEL	_temp_data
001030   0e97     MOVZ	R0, 0x97            	MOVZ	R0, (_temp_data + 1)
                                           	BANKSEL	r0x1008
001031   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
                                           	BANKSEL	r0x1009
001032   039c     CLR	0x9c                 	CLR	r0x1009
                                           ;	op : CAST
                                           	BANKSEL	r0x1008
001033   0e9d     MOVZ	R0, 0x9d            	MOVZ	R0, r0x1008
001034   e101     MOVB	0x1                 	BANKSEL	_DIVAH
001035   513a     MOV	0x3a, R0             	MOV	_DIVAH, R0
                                           ;	op : CAST
                                           ;	.line	121; "../main.c"	DIVAL = temp_data;
001036   e107     MOVB	0x7                 	BANKSEL	_temp_data
001037   0e96     MOVZ	R0, 0x96            	MOVZ	R0, _temp_data
001038   e101     MOVB	0x1                 	BANKSEL	_DIVAL
001039   513b     MOV	0x3b, R0             	MOV	_DIVAL, R0
                                           ;	op : =
                                           ;	.line	122; "../main.c"	DIVB = 10;
00103a   980a     MOV	R0, #0xa             	MOV	R0,# 0x0a
                                           	BANKSEL	_DIVB
00103b   513c     MOV	0x3c, R0             	MOV	_DIVB, R0
                                           ;	op : =
                                           ;	.line	123; "../main.c"	DIVEN = 1;
                                           	BANKSEL	_DIVCTL_bits
00103c   6839     SET	0x39, 0              	SET	_DIVCTL_bits, 0
                                           ;	op : LABEL
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00021_DS_
                                           ;	.line	124; "../main.c"	while(!DIVOEN);
                                           	BANKSEL	_DIVCTL_bits
00103d   7939     JB	0x39, 1               	JB	_DIVCTL_bits, 1
00103e   c03d     JMP	#0x3d                	JMP	_00021_DS_
                                           ;	op : =
                                           ;	.line	125; "../main.c"	decade = DIVR;   //	È¡ÓàÊý
                                           	BANKSEL	_DIVR
00103f   0e3f     MOVZ	R0, 0x3f            	MOVZ	R0, _DIVR
001040   e107     MOVB	0x7                 	BANKSEL	_decade
001041   5199     MOV	0x99, R0             	MOV	_decade, R0
                                           ;	op : CAST
                                           ;	.line	126; "../main.c"	temp_data = DIVQH;
001042   e101     MOVB	0x1                 	BANKSEL	_DIVQH
001043   0e3d     MOVZ	R0, 0x3d            	MOVZ	R0, _DIVQH
001044   e107     MOVB	0x7                 	BANKSEL	_temp_data
001045   5196     MOV	0x96, R0             	MOV	_temp_data, R0
                                           	BANKSEL	_temp_data
001046   0397     CLR	0x97                 	CLR	(_temp_data + 1)
                                           ;	op : LEFT_OP
                                           ;	.line	127; "../main.c"	temp_data = (temp_data<<8) + DIVQL;
                                           	BANKSEL	_temp_data
001047   0e96     MOVZ	R0, 0x96            	MOVZ	R0, _temp_data
                                           	BANKSEL	r0x1009
001048   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
                                           	BANKSEL	r0x1008
001049   039d     CLR	0x9d                 	CLR	r0x1008
                                           ;	op : =
00104a   e101     MOVB	0x1                 	BANKSEL	_DIVQL
00104b   0e3e     MOVZ	R0, 0x3e            	MOVZ	R0, _DIVQL
00104c   e107     MOVB	0x7                 	BANKSEL	r0x100A
00104d   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           ;	op : CAST
                                           	BANKSEL	r0x100A
00104e   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
                                           	BANKSEL	r0x100B
00104f   519f     MOV	0x9f, R0             	MOV	r0x100B, R0
                                           	BANKSEL	r0x100C
001050   03a0     CLR	0xa0                 	CLR	r0x100C
                                           ;	op : +
                                           	BANKSEL	r0x1008
001051   509d     MOV	R0, 0x9d             	MOV	R0, r0x1008
                                           	BANKSEL	r0x100B
001052   209f     ADD	R0, 0x9f             	ADD	R0, r0x100B
                                           	BANKSEL	_temp_data
001053   5196     MOV	0x96, R0             	MOV	_temp_data, R0
                                           	BANKSEL	r0x1009
001054   509c     MOV	R0, 0x9c             	MOV	R0, r0x1009
                                           	BANKSEL	_temp_data
001055   5197     MOV	0x97, R0             	MOV	(_temp_data + 1), R0
001056   9800     MOV	R0, #0               	MOV	R0,# 0x00
001057   7003     JNB	0x3, 0               	JNB	PSW, 0
001058   ff10     INC	R0                   	INC	R0
001059   7203     JNB	0x3, 2               	JNB	PSW, 2
00105a   c05c     JMP	#0x5c                	JMP	_00055_DS_
                                           	BANKSEL	_temp_data
00105b   2197     ADD	0x97, R0             	ADD	(_temp_data + 1), R0
                                           ;	op : RIGHT_OP
                                           _00055_DS_
                                           ;	.line	128; "../main.c"	DIVAH = temp_data>>8;
                                           	BANKSEL	_temp_data
00105c   0e97     MOVZ	R0, 0x97            	MOVZ	R0, (_temp_data + 1)
                                           	BANKSEL	r0x1008
00105d   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
                                           	BANKSEL	r0x1009
00105e   039c     CLR	0x9c                 	CLR	r0x1009
                                           ;	op : CAST
                                           	BANKSEL	r0x1008
00105f   0e9d     MOVZ	R0, 0x9d            	MOVZ	R0, r0x1008
001060   e101     MOVB	0x1                 	BANKSEL	_DIVAH
001061   513a     MOV	0x3a, R0             	MOV	_DIVAH, R0
                                           ;	op : CAST
                                           ;	.line	129; "../main.c"	DIVAL = temp_data;
001062   e107     MOVB	0x7                 	BANKSEL	_temp_data
001063   0e96     MOVZ	R0, 0x96            	MOVZ	R0, _temp_data
001064   e101     MOVB	0x1                 	BANKSEL	_DIVAL
001065   513b     MOV	0x3b, R0             	MOV	_DIVAL, R0
                                           ;	op : =
                                           ;	.line	130; "../main.c"	DIVB = 10;
001066   980a     MOV	R0, #0xa             	MOV	R0,# 0x0a
                                           	BANKSEL	_DIVB
001067   513c     MOV	0x3c, R0             	MOV	_DIVB, R0
                                           ;	op : =
                                           ;	.line	131; "../main.c"	DIVEN = 1;
                                           	BANKSEL	_DIVCTL_bits
001068   6839     SET	0x39, 0              	SET	_DIVCTL_bits, 0
                                           ;	op : LABEL
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00024_DS_
                                           ;	.line	132; "../main.c"	while(!DIVOEN);
                                           	BANKSEL	_DIVCTL_bits
001069   7939     JB	0x39, 1               	JB	_DIVCTL_bits, 1
00106a   c069     JMP	#0x69                	JMP	_00024_DS_
                                           ;	op : =
                                           ;	.line	133; "../main.c"	hundred = DIVR;
                                           	BANKSEL	_DIVR
00106b   0e3f     MOVZ	R0, 0x3f            	MOVZ	R0, _DIVR
00106c   e107     MOVB	0x7                 	BANKSEL	_hundred
00106d   519a     MOV	0x9a, R0             	MOV	_hundred, R0
                                           ;	op : CAST
                                           ;	.line	134; "../main.c"	temp_data = DIVQH;
00106e   e101     MOVB	0x1                 	BANKSEL	_DIVQH
00106f   0e3d     MOVZ	R0, 0x3d            	MOVZ	R0, _DIVQH
001070   e107     MOVB	0x7                 	BANKSEL	_temp_data
001071   5196     MOV	0x96, R0             	MOV	_temp_data, R0
                                           	BANKSEL	_temp_data
001072   0397     CLR	0x97                 	CLR	(_temp_data + 1)
                                           ;	op : LEFT_OP
                                           ;	.line	135; "../main.c"	temp_data = (temp_data<<8) + DIVQL;
                                           	BANKSEL	_temp_data
001073   0e96     MOVZ	R0, 0x96            	MOVZ	R0, _temp_data
                                           	BANKSEL	r0x1009
001074   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
                                           	BANKSEL	r0x1008
001075   039d     CLR	0x9d                 	CLR	r0x1008
                                           ;	op : =
001076   e101     MOVB	0x1                 	BANKSEL	_DIVQL
001077   0e3e     MOVZ	R0, 0x3e            	MOVZ	R0, _DIVQL
001078   e107     MOVB	0x7                 	BANKSEL	r0x100A
001079   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           ;	op : CAST
                                           	BANKSEL	r0x100A
00107a   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
                                           	BANKSEL	r0x100B
00107b   519f     MOV	0x9f, R0             	MOV	r0x100B, R0
                                           	BANKSEL	r0x100C
00107c   03a0     CLR	0xa0                 	CLR	r0x100C
                                           ;	op : +
                                           	BANKSEL	r0x1008
00107d   509d     MOV	R0, 0x9d             	MOV	R0, r0x1008
                                           	BANKSEL	r0x100B
00107e   209f     ADD	R0, 0x9f             	ADD	R0, r0x100B
                                           	BANKSEL	_temp_data
00107f   5196     MOV	0x96, R0             	MOV	_temp_data, R0
                                           	BANKSEL	r0x1009
001080   509c     MOV	R0, 0x9c             	MOV	R0, r0x1009
                                           	BANKSEL	_temp_data
001081   5197     MOV	0x97, R0             	MOV	(_temp_data + 1), R0
001082   9800     MOV	R0, #0               	MOV	R0,# 0x00
001083   7003     JNB	0x3, 0               	JNB	PSW, 0
001084   ff10     INC	R0                   	INC	R0
001085   7203     JNB	0x3, 2               	JNB	PSW, 2
001086   c088     JMP	#0x88                	JMP	_00056_DS_
                                           	BANKSEL	_temp_data
001087   2197     ADD	0x97, R0             	ADD	(_temp_data + 1), R0
                                           ;	op : RIGHT_OP
                                           _00056_DS_
                                           ;	.line	136; "../main.c"	DIVAH = temp_data>>8;
                                           	BANKSEL	_temp_data
001088   0e97     MOVZ	R0, 0x97            	MOVZ	R0, (_temp_data + 1)
                                           	BANKSEL	r0x1008
001089   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
                                           	BANKSEL	r0x1009
00108a   039c     CLR	0x9c                 	CLR	r0x1009
                                           ;	op : CAST
                                           	BANKSEL	r0x1008
00108b   0e9d     MOVZ	R0, 0x9d            	MOVZ	R0, r0x1008
00108c   e101     MOVB	0x1                 	BANKSEL	_DIVAH
00108d   513a     MOV	0x3a, R0             	MOV	_DIVAH, R0
                                           ;	op : CAST
                                           ;	.line	137; "../main.c"	DIVAL = temp_data;
00108e   e107     MOVB	0x7                 	BANKSEL	_temp_data
00108f   0e96     MOVZ	R0, 0x96            	MOVZ	R0, _temp_data
001090   e101     MOVB	0x1                 	BANKSEL	_DIVAL
001091   513b     MOV	0x3b, R0             	MOV	_DIVAL, R0
                                           ;	op : =
                                           ;	.line	138; "../main.c"	DIVB = 10;
001092   980a     MOV	R0, #0xa             	MOV	R0,# 0x0a
                                           	BANKSEL	_DIVB
001093   513c     MOV	0x3c, R0             	MOV	_DIVB, R0
                                           ;	op : =
                                           ;	.line	139; "../main.c"	DIVEN = 1;
                                           	BANKSEL	_DIVCTL_bits
001094   6839     SET	0x39, 0              	SET	_DIVCTL_bits, 0
                                           ;	op : LABEL
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00027_DS_
                                           ;	.line	140; "../main.c"	while(!DIVOEN);
                                           	BANKSEL	_DIVCTL_bits
001095   7939     JB	0x39, 1               	JB	_DIVCTL_bits, 1
001096   c095     JMP	#0x95                	JMP	_00027_DS_
                                           ;	op : =
                                           ;	.line	141; "../main.c"	thound = DIVR;
                                           	BANKSEL	_DIVR
001097   0e3f     MOVZ	R0, 0x3f            	MOVZ	R0, _DIVR
001098   e107     MOVB	0x7                 	BANKSEL	_thound
001099   519b     MOV	0x9b, R0             	MOV	_thound, R0
                                           ;	op : +
                                           ;	.line	142; "../main.c"	LEDDATA0 = smg_arr[thound];
00109a   98c5     MOV	R0, #0xc5            	MOV	R0,# (_smg_arr + 0)
                                           	BANKSEL	_thound
00109b   209b     ADD	R0, 0x9b             	ADD	R0, _thound
                                           	BANKSEL	r0x1008
00109c   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
00109d   9811     MOV	R0, #0x11            	MOV	R0,# high (_smg_arr + 0)
                                           	BANKSEL	r0x1009
00109e   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
00109f   0208     CLR	R0                   	CLR	R0
0010a0   7003     JNB	0x3, 0               	JNB	PSW, 0
0010a1   ff10     INC	R0                   	INC	R0
0010a2   7203     JNB	0x3, 2               	JNB	PSW, 2
0010a3   c0a5     JMP	#0xa5                	JMP	_00057_DS_
                                           	BANKSEL	r0x1009
0010a4   219c     ADD	0x9c, R0             	ADD	r0x1009, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00057_DS_
                                           	BANKSEL	r0x1009
0010a5   529c     MOV	R1, 0x9c             	MOV	R1, r0x1009
                                           	BANKSEL	r0x1008
0010a6   509d     MOV	R0, 0x9d             	MOV	R0, r0x1008
0010a7   e011     MOVP	0x11                	PAGESEL	__R2PCL
0010a8   d148     CALL	#0x148              	CALL	__R2PCL
0010a9   e010     MOVP	0x10                	PAGESEL	$
0010aa   e107     MOVB	0x7                 	BANKSEL	r0x100A
0010ab   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           ;	op : CAST
                                           	BANKSEL	r0x100A
0010ac   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
0010ad   e101     MOVB	0x1                 	BANKSEL	_LEDDATA0
0010ae   5142     MOV	0x42, R0             	MOV	_LEDDATA0, R0
                                           ;	op : +
                                           ;	.line	143; "../main.c"	LEDDATA2 = smg_arr[hundred];
0010af   98c5     MOV	R0, #0xc5            	MOV	R0,# (_smg_arr + 0)
0010b0   e107     MOVB	0x7                 	BANKSEL	_hundred
0010b1   209a     ADD	R0, 0x9a             	ADD	R0, _hundred
                                           	BANKSEL	r0x1008
0010b2   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
0010b3   9811     MOV	R0, #0x11            	MOV	R0,# high (_smg_arr + 0)
                                           	BANKSEL	r0x1009
0010b4   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
0010b5   0208     CLR	R0                   	CLR	R0
0010b6   7003     JNB	0x3, 0               	JNB	PSW, 0
0010b7   ff10     INC	R0                   	INC	R0
0010b8   7203     JNB	0x3, 2               	JNB	PSW, 2
0010b9   c0bb     JMP	#0xbb                	JMP	_00058_DS_
                                           	BANKSEL	r0x1009
0010ba   219c     ADD	0x9c, R0             	ADD	r0x1009, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00058_DS_
                                           	BANKSEL	r0x1009
0010bb   529c     MOV	R1, 0x9c             	MOV	R1, r0x1009
                                           	BANKSEL	r0x1008
0010bc   509d     MOV	R0, 0x9d             	MOV	R0, r0x1008
0010bd   e011     MOVP	0x11                	PAGESEL	__R2PCL
0010be   d148     CALL	#0x148              	CALL	__R2PCL
0010bf   e010     MOVP	0x10                	PAGESEL	$
0010c0   e107     MOVB	0x7                 	BANKSEL	r0x100A
0010c1   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           ;	op : CAST
                                           	BANKSEL	r0x100A
0010c2   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
0010c3   e101     MOVB	0x1                 	BANKSEL	_LEDDATA2
0010c4   5144     MOV	0x44, R0             	MOV	_LEDDATA2, R0
                                           ;	op : +
                                           ;	.line	144; "../main.c"	LEDDATA3 = smg_arr[decade];
0010c5   98c5     MOV	R0, #0xc5            	MOV	R0,# (_smg_arr + 0)
0010c6   e107     MOVB	0x7                 	BANKSEL	_decade
0010c7   2099     ADD	R0, 0x99             	ADD	R0, _decade
                                           	BANKSEL	r0x1008
0010c8   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
0010c9   9811     MOV	R0, #0x11            	MOV	R0,# high (_smg_arr + 0)
                                           	BANKSEL	r0x1009
0010ca   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
0010cb   0208     CLR	R0                   	CLR	R0
0010cc   7003     JNB	0x3, 0               	JNB	PSW, 0
0010cd   ff10     INC	R0                   	INC	R0
0010ce   7203     JNB	0x3, 2               	JNB	PSW, 2
0010cf   c0d1     JMP	#0xd1                	JMP	_00059_DS_
                                           	BANKSEL	r0x1009
0010d0   219c     ADD	0x9c, R0             	ADD	r0x1009, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00059_DS_
                                           	BANKSEL	r0x1009
0010d1   529c     MOV	R1, 0x9c             	MOV	R1, r0x1009
                                           	BANKSEL	r0x1008
0010d2   509d     MOV	R0, 0x9d             	MOV	R0, r0x1008
0010d3   e011     MOVP	0x11                	PAGESEL	__R2PCL
0010d4   d148     CALL	#0x148              	CALL	__R2PCL
0010d5   e010     MOVP	0x10                	PAGESEL	$
0010d6   e107     MOVB	0x7                 	BANKSEL	r0x100A
0010d7   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           ;	op : CAST
                                           	BANKSEL	r0x100A
0010d8   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
0010d9   e101     MOVB	0x1                 	BANKSEL	_LEDDATA3
0010da   5145     MOV	0x45, R0             	MOV	_LEDDATA3, R0
                                           ;	op : +
                                           ;	.line	145; "../main.c"	LEDDATA4 = smg_arr[unint];
0010db   98c5     MOV	R0, #0xc5            	MOV	R0,# (_smg_arr + 0)
0010dc   e107     MOVB	0x7                 	BANKSEL	_unint
0010dd   2098     ADD	R0, 0x98             	ADD	R0, _unint
                                           	BANKSEL	r0x1008
0010de   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
0010df   9811     MOV	R0, #0x11            	MOV	R0,# high (_smg_arr + 0)
                                           	BANKSEL	r0x1009
0010e0   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
0010e1   0208     CLR	R0                   	CLR	R0
0010e2   7003     JNB	0x3, 0               	JNB	PSW, 0
0010e3   ff10     INC	R0                   	INC	R0
0010e4   7203     JNB	0x3, 2               	JNB	PSW, 2
0010e5   c0e7     JMP	#0xe7                	JMP	_00060_DS_
                                           	BANKSEL	r0x1009
0010e6   219c     ADD	0x9c, R0             	ADD	r0x1009, R0
                                           ;	op : GET_VALUE_AT_ADDRESS
                                           _00060_DS_
                                           	BANKSEL	r0x1009
0010e7   529c     MOV	R1, 0x9c             	MOV	R1, r0x1009
                                           	BANKSEL	r0x1008
0010e8   509d     MOV	R0, 0x9d             	MOV	R0, r0x1008
0010e9   e011     MOVP	0x11                	PAGESEL	__R2PCL
0010ea   d148     CALL	#0x148              	CALL	__R2PCL
0010eb   e010     MOVP	0x10                	PAGESEL	$
0010ec   e107     MOVB	0x7                 	BANKSEL	r0x100A
0010ed   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           ;	op : CAST
                                           	BANKSEL	r0x100A
0010ee   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
0010ef   e101     MOVB	0x1                 	BANKSEL	_LEDDATA4
0010f0   5146     MOV	0x46, R0             	MOV	_LEDDATA4, R0
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
0010f1   0008     CRET                     	CRET	
                                           ; exit point of _display_LED
                                           
                                           
                                           
                                           func._init_led	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _init_led	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _init_led	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	92; "../main.c"	LEDOMS0 = 0x00;    //ÍÆÍìÊä³ö
001192   e101     MOVB	0x1                 	BANKSEL	_LEDOMS0
001193   0357     CLR	0x57                 	CLR	_LEDOMS0
                                           ;	op : =
                                           ;	.line	93; "../main.c"	LEDOMS1 = 0x00;    //ÍÆÍìÊä³ö
                                           	BANKSEL	_LEDOMS1
001194   0350     CLR	0x50                 	CLR	_LEDOMS1
                                           ;	op : =
                                           ;	.line	95; "../main.c"	LEDPRE = 0x60;     //LEDÊ±ÖÓÔ´Ñ¡Ôñ1:64·ÖÆµ£»LEDÔ¤·ÖÆµ±ÈÑ¡Ôñ1:1 500hz
001195   9860     MOV	R0, #0x60            	MOV	R0,# 0x60
                                           	BANKSEL	_LEDPRE
001196   5141     MOV	0x41, R0             	MOV	_LEDPRE, R0
                                           ;	op : =
                                           ;	.line	96; "../main.c"	LEDDATA0 = 0XFF;
001197   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	_LEDDATA0
001198   5142     MOV	0x42, R0             	MOV	_LEDDATA0, R0
                                           ;	op : =
                                           ;	.line	97; "../main.c"	LEDDATA2 = 0XFF;
001199   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	_LEDDATA2
00119a   5144     MOV	0x44, R0             	MOV	_LEDDATA2, R0
                                           ;	op : =
                                           ;	.line	98; "../main.c"	LEDDATA3 = 0XFF;
00119b   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	_LEDDATA3
00119c   5145     MOV	0x45, R0             	MOV	_LEDDATA3, R0
                                           ;	op : =
                                           ;	.line	99; "../main.c"	LEDDATA4 = 0XFF;
00119d   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	_LEDDATA4
00119e   5146     MOV	0x46, R0             	MOV	_LEDDATA4, R0
                                           ;	op : =
                                           ;	.line	101; "../main.c"	LEDLUM = 0x05;	 //ÉèÖÃ»Ô¶È6:16
00119f   9805     MOV	R0, #0x5             	MOV	R0,# 0x05
                                           	BANKSEL	_LEDLUM
0011a0   515c     MOV	0x5c, R0             	MOV	_LEDLUM, R0
                                           ;	op : =
                                           ;	.line	102; "../main.c"	LEDCTL = 0x90;   //´ò¿ªLEDÄ£¿é£¬¿ªÍ¨LEDDAT0--LEDDAT4;Ñ¡Ôñ¹²ÒõÊýÂë¹Ü
0011a1   9890     MOV	R0, #0x90            	MOV	R0,# 0x90
                                           	BANKSEL	_LEDCTL
0011a2   5140     MOV	0x40, R0             	MOV	_LEDCTL, R0
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
0011a3   0008     CRET                     	CRET	
                                           ; exit point of _init_led
                                           
                                           
                                           
                                           func._init_mcu	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _init_mcu	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _init_mcu	;Function start
                                           ; 2 exit points
                                           ;	op : =
                                           ;	.line	67; "../main.c"	OSCCTL = 0x60;          //ÉèÖÃÎª8M
0011a4   9860     MOV	R0, #0x60            	MOV	R0,# 0x60
0011a5   e100     MOVB	0                   	BANKSEL	_OSCCTL
0011a6   512f     MOV	0x2f, R0             	MOV	_OSCCTL, R0
                                           ;	op : =
                                           ;	.line	69; "../main.c"	TR0 = 0X04;            //P02ÉèÖÃÎªÊäÈë£¬ÆäÓà¿ÚÎªÊä³ö
0011a7   9804     MOV	R0, #0x4             	MOV	R0,# 0x04
                                           	BANKSEL	_TR0
0011a8   5125     MOV	0x25, R0             	MOV	_TR0, R0
                                           ;	op : =
                                           ;	.line	70; "../main.c"	TR1 = 0x00;            //P1ÉèÖÃÎªÊä³ö
                                           	BANKSEL	_TR1
0011a9   0327     CLR	0x27                 	CLR	_TR1
                                           ;	op : =
                                           ;	.line	71; "../main.c"	TR2 = 0X00;            //P2ÉèÖÃÎªÊä³ö
                                           	BANKSEL	_TR2
0011aa   0326     CLR	0x26                 	CLR	_TR2
                                           ;	op : =
                                           ;	.line	72; "../main.c"	TR3 = 0X00;            //P3ÉèÖÃÎªÊä³ö
                                           	BANKSEL	_TR3
0011ab   0349     CLR	0x49                 	CLR	_TR3
                                           ;	op : =
                                           ;	.line	74; "../main.c"	P0LR=0x00;				//P0Êä³öµÍ
                                           	BANKSEL	_P0LR
0011ac   0345     CLR	0x45                 	CLR	_P0LR
                                           ;	op : =
                                           ;	.line	75; "../main.c"	P1LR=0x00;              //P1Êä³öµÍ
                                           	BANKSEL	_P1LR
0011ad   0347     CLR	0x47                 	CLR	_P1LR
                                           ;	op : =
                                           ;	.line	76; "../main.c"	P2LR=0x00;				//P2Êä³öµÍ
                                           	BANKSEL	_P2LR
0011ae   0346     CLR	0x46                 	CLR	_P2LR
                                           ;	op : =
                                           ;	.line	77; "../main.c"	P3LR=0x00;				//P3Êä³öµÍ
                                           	BANKSEL	_P3LR
0011af   0348     CLR	0x48                 	CLR	_P3LR
                                           ;	op : =
                                           ;	.line	79; "../main.c"	P0=0x00;
                                           	BANKSEL	_P0
0011b0   0305     CLR	0x5                  	CLR	_P0
                                           ;	op : =
                                           ;	.line	80; "../main.c"	P1=0x00;
                                           	BANKSEL	_P1
0011b1   0307     CLR	0x7                  	CLR	_P1
                                           ;	op : =
                                           ;	.line	81; "../main.c"	P2=0x00;
                                           	BANKSEL	_P2
0011b2   0306     CLR	0x6                  	CLR	_P2
                                           ;	op : =
                                           ;	.line	82; "../main.c"	P3=0x00;
                                           	BANKSEL	_P3
0011b3   0308     CLR	0x8                  	CLR	_P3
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
0011b4   0008     CRET                     	CRET	
                                           ; exit point of _init_mcu
                                           
                                           
                                           
                                           func._delay_ms	.code
                                           ;***
                                           ;  PostBlock Stats: dbName = C
                                           ;***
                                           ;entry:  _delay_ms	;Function start
                                           ; 2 exit points
                                           ;has an exit
                                           ;7 compiler assigned registers:
                                           ;   r0x1008
                                           ;   STK00
                                           ;   r0x1009
                                           ;   r0x100A
                                           ;   r0x100B
                                           ;   r0x100C
                                           ;   r0x100D
                                           ;; Starting PostCode block
                                           ;	op : LABEL
                                           ;	op : FUNCTION
                                           _delay_ms	;Function start
                                           ; 2 exit points
                                           ;	op : RECEIVE
                                           ;	.line	48; "../main.c"	void delay_ms(int ms_data)
00116e   e107     MOVB	0x7                 	BANKSEL	r0x1008
00116f   519d     MOV	0x9d, R0             	MOV	r0x1008, R0
                                           	BANKSEL	STK00
001170   0e93     MOVZ	R0, 0x93            	MOVZ	R0, STK00
                                           	BANKSEL	r0x1009
001171   519c     MOV	0x9c, R0             	MOV	r0x1009, R0
                                           ;	op : =
                                           ;	op : LABEL
                                           ;	op : =
                                           _00004_DS_
                                           ;	.line	51; "../main.c"	while(ms_data--)
                                           	BANKSEL	r0x1009
001172   0e9c     MOVZ	R0, 0x9c            	MOVZ	R0, r0x1009
                                           	BANKSEL	r0x100A
001173   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           	BANKSEL	r0x1008
001174   0e9d     MOVZ	R0, 0x9d            	MOVZ	R0, r0x1008
                                           	BANKSEL	r0x100B
001175   519f     MOV	0x9f, R0             	MOV	r0x100B, R0
                                           ;	op : -
001176   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	r0x1009
001177   219c     ADD	0x9c, R0             	ADD	r0x1009, R0
001178   7003     JNB	0x3, 0               	JNB	PSW, 0
001179   c17b     JMP	#0x17b               	JMP	_00061_DS_
                                           	BANKSEL	r0x1008
00117a   079d     DEC	0x9d                 	DEC	r0x1008
                                           ;	op : IFX
                                           _00061_DS_
                                           	BANKSEL	r0x100A
00117b   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
                                           	BANKSEL	r0x100B
00117c   309f     ORL	R0, 0x9f             	ORL	R0, r0x100B
00117d   7203     JNB	0x3, 2               	JNB	PSW, 2
00117e   c191     JMP	#0x191               	JMP	_00007_DS_
                                           ;	op : INLINEASM
00117f   0064     CWDT                     	CWDT 
                                           ;	op : =
                                           ;	.line	55; "../main.c"	while(j--);
001180   9864     MOV	R0, #0x64            	MOV	R0,# 0x64
                                           	BANKSEL	r0x100A
001181   519e     MOV	0x9e, R0             	MOV	r0x100A, R0
                                           	BANKSEL	r0x100B
001182   039f     CLR	0x9f                 	CLR	r0x100B
                                           ;	op : LABEL
                                           ;	op : =
                                           _00001_DS_
                                           	BANKSEL	r0x100A
001183   0e9e     MOVZ	R0, 0x9e            	MOVZ	R0, r0x100A
                                           	BANKSEL	r0x100C
001184   51a0     MOV	0xa0, R0             	MOV	r0x100C, R0
                                           	BANKSEL	r0x100B
001185   0e9f     MOVZ	R0, 0x9f            	MOVZ	R0, r0x100B
                                           	BANKSEL	r0x100D
001186   51a1     MOV	0xa1, R0             	MOV	r0x100D, R0
                                           ;	op : -
001187   98ff     MOV	R0, #0xff            	MOV	R0,# 0xff
                                           	BANKSEL	r0x100A
001188   219e     ADD	0x9e, R0             	ADD	r0x100A, R0
001189   7003     JNB	0x3, 0               	JNB	PSW, 0
00118a   c18c     JMP	#0x18c               	JMP	_00062_DS_
                                           	BANKSEL	r0x100B
00118b   079f     DEC	0x9f                 	DEC	r0x100B
                                           ;	op : IFX
                                           _00062_DS_
                                           	BANKSEL	r0x100C
00118c   0ea0     MOVZ	R0, 0xa0            	MOVZ	R0, r0x100C
                                           	BANKSEL	r0x100D
00118d   30a1     ORL	R0, 0xa1             	ORL	R0, r0x100D
00118e   7203     JNB	0x3, 2               	JNB	PSW, 2
00118f   c172     JMP	#0x172               	JMP	_00004_DS_
                                           ;	op : GOTO
001190   c183     JMP	#0x183               	JMP	_00001_DS_
                                           ;	op : LABEL
                                           ;	op : ENDFUNCTION
                                           _00007_DS_
001191   0008     CRET                     	CRET	
                                           ; exit point of _delay_ms
                                           
                                           
                                           ;	code size estimation:
                                           ;	  333+  201 =   534 instructions ( 1470 byte)
                                           
                                           
                                           	.end
                                           .config
002007   0594     CPL	0x94                
002008   ffff     NOPZ                    
                                           .code
001136   a800     XOR	R0, #0              
001137   7203     JNB	0x3, 2              
001138   c13d     JMP	#0x13d              
001139   a880     XOR	R0, #0x80           
00113a   7203     JNB	0x3, 2              
00113b   c143     JMP	#0x143              
00113c   c147     JMP	#0x147              
00113d   e107     MOVB	0x7                
00113e   5292     MOV	R1, 0x92            
00113f   5e93     MOV	R7, 0x93            
001140   5f17     MOV	0x17, R7            
001141   f708     LD	R0, [R1]             
001142   c147     JMP	#0x147              
001143   e107     MOVB	0x7                
001144   5293     MOV	R1, 0x93            
001145   5092     MOV	R0, 0x92            
001146   d148     CALL	#0x148             
001147   0008     CRET                    
001148   530a     MOV	0xa, R1             
001149   5102     MOV	0x2, R0             
00114a   e01f     MOVP	0x1f               
00114b   e100     MOVB	0                  
00114c   dfff     CALL	#0xfff             
00114d   5130     MOV	0x30, R0            
00114e   ffff     NOPZ                    
00114f   ffff     NOPZ                    
001150   dffe     CALL	#0xffe             
001151   5137     MOV	0x37, R0            
001152   ffff     NOPZ                    
001153   ffff     NOPZ                    
001154   dffd     CALL	#0xffd             
001155   514c     MOV	0x4c, R0            
001156   ffff     NOPZ                    
001157   ffff     NOPZ                    
001158   dffc     CALL	#0xffc             
001159   514d     MOV	0x4d, R0            
00115a   ffff     NOPZ                    
00115b   ffff     NOPZ                    
00115c   dffb     CALL	#0xffb             
00115d   512a     MOV	0x2a, R0            
00115e   ffff     NOPZ                    
00115f   ffff     NOPZ                    
001160   e101     MOVB	0x1                
001161   dffa     CALL	#0xffa             
001162   5159     MOV	0x59, R0            
001163   ffff     NOPZ                    
001164   ffff     NOPZ                    
001165   dff9     CALL	#0xff9             
001166   515a     MOV	0x5a, R0            
001167   ffff     NOPZ                    
001168   ffff     NOPZ                    
001169   dff8     CALL	#0xff8             
00116a   5165     MOV	0x65, R0            
00116b   ffff     NOPZ                    
00116c   ffff     NOPZ                    
00116d   0008     CRET                    
                                           func.__sdcc_gsinit_startup
0011e3   e011     MOVP	0x11               
0011e4   d1d1     CALL	#0x1d1             
0011e5   e011     MOVP	0x11               
0011e6   0008     CRET                    
                                           .cinit
0011d1   e107     MOVB	0x7                
0011d2   9880     MOV	R0, #0x80           
0011d3   9926     MOV	R1, #0x26           
0011d4   e011     MOVP	0x11               
0011d5   d1d7     CALL	#0x1d7             
0011d6   0008     CRET                    
0011d7   020a     CLR	R2                  
0011d8   f750     ST	[R0], R2             
0011d9   ff10     INC	R0                  
0011da   ff59     DECJZ	R1                
0011db   c1d8     JMP	#0x1d8              
0011dc   0008     CRET                    
