Archelon msp430 Assembler     Version 1.55 2004/01/08      File E:\mmcrfio\rtc.asm      Page 1

                     1 ; Archelon URCC C 3.17 2004/01/12
                     2 ; MSP430 CIF 2003/10/23
                     3 ; Compiled "E:\mmcrfio\rtc.c" Fri Feb 20 18:03:38 2004
                     4 ; 
                     5     .dbgseg dbg_syms
0000                 6     .align 0x2
0000 6c69662e        7     .long 0x6c69662e
0004 00000065        8     .long 0x65
0008 00000001        9     .long 0x1
000c 00000000       10     .long 0x0
0010 0167fffe       11     .long 0x167fffe
0014 00000000       12     .long 0x0
0018 0000005c       13     .long DBG5
001c 00000000       14     .long 0x0
0020 00000000       15     .long 0x0
0024 00000000       16     .long 0x0
                    17 ; __builtin__ unsigned short _BIS_SR(unsigned short);
                    18 ; __builtin__ unsigned short _BIC_SR(unsigned short);
                    19 ; __builtin__ unsigned short _BIS_SR_IRQ(unsigned short);
                    20 ; __builtin__ unsigned short _BIC_SR_IRQ(unsigned short);
                    21 ;  __builtin__ void _DINT(void);
                    22 ; __builtin__ void _EINT(void);
                    23 ; __builtin__ void _NOP(void);
                    24 ; __builtin__ void _OPC(const unsigned short op);
                    25 ; __builtin__ short _SWPB(short);  
                    26 ; __builtin__ long _SWPB_LONG(long);  
                    27 ; __builtin__ float _SWPB_FLOAT(float);  
                    28 ; sfrb    IE1               = (0x0000) ;
                    29 ; sfrb    IFG1              = (0x0002) ;
                    30 ; sfrb    ME1               = (0x0004) ;
                    31 ; sfrb    IE2               = (0x0001) ;
                    32 ; sfrb    IFG2              = (0x0003) ;
                    33 ; sfrb    ME2               = (0x0005) ;
                    34 ; sfrw    WDTCTL            = (0x0120) ;
                    35 ; sfrw    MPY               = (0x0130) ;
                    36 ; sfrw    MPYS              = (0x0132) ;
                    37 ; sfrw    MAC               = (0x0134) ;
                    38 ; sfrw    MACS              = (0x0136) ;
                    39 ; sfrw    OP2               = (0x0138) ;
                    40 ; sfrw    RESLO             = (0x013A) ;
                    41 ; sfrw    RESHI             = (0x013C) ;
                    42 ; const sfrw SUMEXT         = (0x013E) ;
                    43 ; const sfrb P1IN           = (0x0020) ;
                    44 ; sfrb    P1OUT             = (0x0021) ;
                    45 ; sfrb    P1DIR             = (0x0022) ;
                    46 ; sfrb    P1IFG             = (0x0023) ;
                    47 ; sfrb    P1IES             = (0x0024) ;
                    48 ; sfrb    P1IE              = (0x0025) ;
                    49 ; sfrb    P1SEL             = (0x0026) ;
                    50 ; const sfrb P2IN           = (0x0028) ;
                    51 ; sfrb    P2OUT             = (0x0029) ;
                    52 ; sfrb    P2DIR             = (0x002A) ;
                    53 ; sfrb    P2IFG             = (0x002B) ;
                    54 ; sfrb    P2IES             = (0x002C) ;
                    55 ; sfrb    P2IE              = (0x002D) ;
                    56 ; sfrb    P2SEL             = (0x002E) ;
                    57 ; const sfrb P3IN           = (0x0018) ;
                    58 ; sfrb    P3OUT             = (0x0019) ;
                    59 ; sfrb    P3DIR             = (0x001A) ;
                    60 ; sfrb    P3SEL             = (0x001B) ;
                    61 ; const sfrb P4IN           = (0x001C) ;
                    62 ; sfrb    P4OUT             = (0x001D) ;
                    63 ; sfrb    P4DIR             = (0x001E) ;
                    64 ; sfrb    P4SEL             = (0x001F) ;
                    65 ; const sfrb P5IN           = (0x0030) ;
                    66 ; sfrb    P5OUT             = (0x0031) ;
                    67 ; sfrb    P5DIR             = (0x0032) ;
                    68 ; sfrb    P5SEL             = (0x0033) ;
                    69 ; const sfrb P6IN           = (0x0034) ;
                    70 ; sfrb    P6OUT             = (0x0035) ;
                    71 ; sfrb    P6DIR             = (0x0036) ;
                    72 ; sfrb    P6SEL             = (0x0037) ;
                    73 ; sfrb    U0CTL             = (0x0070) ;
                    74 ; sfrb    U0TCTL            = (0x0071) ;
                    75 ; sfrb    U0RCTL            = (0x0072) ;
                    76 ; sfrb    U0MCTL            = (0x0073) ;
                    77 ; sfrb    U0BR0             = (0x0074) ;
                    78 ; sfrb    U0BR1             = (0x0075) ;
                    79 ; const sfrb U0RXBUF        = (0x0076) ;
                    80 ; sfrb    U0TXBUF           = (0x0077) ;
                    81 ; sfrb    U1CTL             = (0x0078) ;
                    82 ; sfrb    U1TCTL            = (0x0079) ;
                    83 ; sfrb    U1RCTL            = (0x007A) ;
                    84 ; sfrb    U1MCTL            = (0x007B) ;
                    85 ; sfrb    U1BR0             = (0x007C) ;
                    86 ; sfrb    U1BR1             = (0x007D) ;
                    87 ; const sfrb U1RXBUF        = (0x007E) ;
                    88 ; sfrb    U1TXBUF           = (0x007F) ;
                    89 ; const sfrw TAIV           = (0x012E) ;
                    90 ; sfrw    TACTL             = (0x0160) ;
                    91 ; sfrw    TACCTL0           = (0x0162) ;
                    92 ; sfrw    TACCTL1           = (0x0164) ;
                    93 ; sfrw    TACCTL2           = (0x0166) ;
                    94 ; sfrw    TAR               = (0x0170) ;
                    95 ; sfrw    TACCR0            = (0x0172) ;
                    96 ; sfrw    TACCR1            = (0x0174) ;
                    97 ; sfrw    TACCR2            = (0x0176) ;
                    98 ; const sfrw TBIV           = (0x011E) ;
                    99 ; sfrw    TBCTL             = (0x0180) ;
                   100 ; sfrw    TBCCTL0           = (0x0182) ;
                   101 ; sfrw    TBCCTL1           = (0x0184) ;
                   102 ; sfrw    TBCCTL2           = (0x0186) ;
                   103 ; sfrw    TBCCTL3           = (0x0188) ;
                   104 ; sfrw    TBCCTL4           = (0x018A) ;
                   105 ; sfrw    TBCCTL5           = (0x018C) ;
                   106 ; sfrw    TBCCTL6           = (0x018E) ;
                   107 ; sfrw    TBR               = (0x0190) ;
                   108 ; sfrw    TBCCR0            = (0x0192) ;
                   109 ; sfrw    TBCCR1            = (0x0194) ;
                   110 ; sfrw    TBCCR2            = (0x0196) ;
                   111 ; sfrw    TBCCR3            = (0x0198) ;
                   112 ; sfrw    TBCCR4            = (0x019A) ;
                   113 ; sfrw    TBCCR5            = (0x019C) ;
                   114 ; sfrw    TBCCR6            = (0x019E) ;
                   115 ; sfrb    DCOCTL            = (0x0056) ;
                   116 ; sfrb    BCSCTL1           = (0x0057) ;
                   117 ; sfrb    BCSCTL2           = (0x0058) ;
                   118 ; sfrw    FCTL1             = (0x0128) ;
                   119 ; sfrw    FCTL2             = (0x012A) ;
                   120 ; sfrw    FCTL3             = (0x012C) ;
                   121 ; sfrb    CACTL1            = (0x0059) ;
                   122 ; sfrb    CACTL2            = (0x005A) ;
                   123 ; sfrb    CAPD              = (0x005B) ;
                   124 ; sfrw    ADC12CTL0         = (0x01A0) ;
                   125 ; sfrw    ADC12CTL1         = (0x01A2) ;
                   126 ; sfrw    ADC12IFG          = (0x01A4) ;
                   127 ; sfrw    ADC12IE           = (0x01A6) ;
                   128 ; sfrw    ADC12IV           = (0x01A8) ;
                   129 ; sfrw    ADC12MEM0         = (0x0140) ;
                   130 ; sfrw    ADC12MEM1         = (0x0142) ;
                   131 ; sfrw    ADC12MEM2         = (0x0144) ;
                   132 ; sfrw    ADC12MEM3         = (0x0146) ;
                   133 ; sfrw    ADC12MEM4         = (0x0148) ;
                   134 ; sfrw    ADC12MEM5         = (0x014A) ;
                   135 ; sfrw    ADC12MEM6         = (0x014C) ;
                   136 ; sfrw    ADC12MEM7         = (0x014E) ;
                   137 ; sfrw    ADC12MEM8         = (0x0150) ;
                   138 ; sfrw    ADC12MEM9         = (0x0152) ;
                   139 ; sfrw    ADC12MEM10        = (0x0154) ;
                   140 ; sfrw    ADC12MEM11        = (0x0156) ;
                   141 ; sfrw    ADC12MEM12        = (0x0158) ;
                   142 ; sfrw    ADC12MEM13        = (0x015A) ;
                   143 ; sfrw    ADC12MEM14        = (0x015C) ;
                   144 ; sfrw    ADC12MEM15        = (0x015E) ;
                   145 ; sfrb    ADC12MCTL0        = (0x0080) ;
                   146 ; sfrb    ADC12MCTL1        = (0x0081) ;
                   147 ; sfrb    ADC12MCTL2        = (0x0082) ;
                   148 ; sfrb    ADC12MCTL3        = (0x0083) ;
                   149 ; sfrb    ADC12MCTL4        = (0x0084) ;
                   150 ; sfrb    ADC12MCTL5        = (0x0085) ;
                   151 ; sfrb    ADC12MCTL6        = (0x0086) ;
                   152 ; sfrb    ADC12MCTL7        = (0x0087) ;
                   153 ; sfrb    ADC12MCTL8        = (0x0088) ;
                   154 ; sfrb    ADC12MCTL9        = (0x0089) ;
                   155 ; sfrb    ADC12MCTL10       = (0x008A) ;
                   156 ; sfrb    ADC12MCTL11       = (0x008B) ;
                   157 ; sfrb    ADC12MCTL12       = (0x008C) ;
                   158 ; sfrb    ADC12MCTL13       = (0x008D) ;
                   159 ; sfrb    ADC12MCTL14       = (0x008E) ;
                   160 ; sfrb    ADC12MCTL15       = (0x008F) ;
                   161 ; typedef unsigned int size_t;
                   162 ; size_t size 2
                   163 ; typedef void *va_list;
                   164 ; va_list size 2
                   165 ; typedef struct {
                   166 ;   unsigned char *_base;
                   167 ;   unsigned char *_end;
                   168 ;   unsigned char *_ptr;
                   169 ;   long int       _seek;
                   170 ;   int            _cnt;
                   171 ;   short          _flag;
                   172 ;   char           _file;
                   173 ;   unsigned char  _nbf;
                   174 ; } FILE;
                   175 ; FILE size 16
                   176 ; int    sprintf( char *, const char *, ... );
                   177 ; int    sscanf( const char *, const char *, ... );
                   178 ; int    vsprintf( char *, const char *, va_list );
                   179 ; typedef int boolean;
                   180 ; boolean size 2
                   181 ; enum {false = 0, true = 1};
                   182 ; enum {error = -1, success = 0};
                   183 ; char * errnumGetDesc(int errNum);
                   184 ; typedef int (*commandHandler)(char *);
                   185 ; commandHandler size 2
                   186 ; int cmdparseInit(void);
                   187 ; void cmdparseShow(void);
                   188 ; int cmdparseAddCommand(char * pCmdStr, char * pSubCmdStr, commandHandler handler);
                   189 ; int cmdparseDoCommand(char * pCmdStr);
                   190 ; typedef void (*eventHandler)(void);
                   191 ; eventHandler size 2
                   192 ; int eventqInit(void);
                   193 ; void eventqPut(int);
                   194 ; void eventqUrgentPut(int);
                   195 ; int eventqGet(void);
                   196 ; int eventqRegisterHandler(int evType, eventHandler handler);
                   197 ; int eventqGetHandler(int evType, eventHandler *pHandler);
                   198 ; void eventqProcessEvents(void);
                   199 ; void clearString(char *s, int len);
                   200 ; void eatWhiteSpace(char **s);
                   201 ; int grabArgument(char **srcStr, char *dstStr, int dstLen);
                   202 ; int outfmtInit(void);
                   203 ; void outfmtSendAlarmInfo(int type, unsigned char alarms);
                   204 ; void outfmtSendPrompt(void);
                   205 ; void outfmtSendCrLf(void);
                   206 ; void outfmtSendVersion(char *);
                   207 ; void outfmtSendData(void);
                   208 ; void outfmtSendLevels(void);
                   209 ; void outfmtSendTime(int, int, int);
                   210 ; void outfmtSendDate(int, int, int);
                   211 ; void outfmtSendError(int);
                   212 ; int outfmtGetBuffer(char **, int *);
                   213 ; int outfmtSendBuffer(void);
                   214 ; typedef int (*sensorSampleMethod)(float *);
                   215 ; sensorSampleMethod size 2
                   216 ; typedef struct {
                   217 ;   unsigned char curState;
                   218 ;   unsigned char prevState;
                   219 ;   unsigned char flags;
                   220 ;   float levelHi;
                   221 ;   float levelLo;
                   222 ;   float lastValue;
                   223 ;   sensorSampleMethod method;
                   224 ; } sensorState;
                   225 ; sensorState size 18
                   226 ; int sensorInit(void);
                   227 ; int sensorRegisterSampleMethod(int sensorId, unsigned char flags, sensorSampleMethod method);
                   228 ; int sensorGetData(int sensorId, float * pValue);
                   229 ; int sensorGetLevel(int levelId, float * pLevel);
                   230 ; int sensorSetLevel(int levelId, float level);
                   231 ; int sensorTriggerAlarm(int sensorId);
                   232 ; void gpioInit(void);
                   233 ; void gpioSetLed(boolean);
                   234 ; void gpioSetAttn(boolean);
                   235 ; void gpioSetHiSide(boolean);
                   236 ; void gpioSetGfTest(boolean);
                   237 ; void gpioSetKvhPower(boolean);
                   238 .0fake_1:
                   239 DBG4:
0028 6166302e      240     .long 0x6166302e
002c 315f656b      241     .long 0x315f656b
0030 00000000      242     .long 0x0
0034 00000008      243     .long 0x8
0038 010afffe      244     .long 0x10afffe
003c 00000000      245     .long 0x0
0040 00100000      246     .long 0x100000
0044 00000000      247     .long 0x0
0048 00000118      248     .long DBG6
004c 00000000      249     .long 0x0
0050 7361625f      250     .long 0x7361625f
0054 00000065      251     .long 0x65
0058 00000000      252     .long 0x0
005c 0000002c      253     .long 0x2c
0060 0008ffff      254     .long 0x8ffff
0064 646e655f      255     .long 0x646e655f
0068 00000000      256     .long 0x0
006c 00000002      257     .long 0x2
0070 0000002c      258     .long 0x2c
0074 0008ffff      259     .long 0x8ffff
0078 7274705f      260     .long 0x7274705f
007c 00000000      261     .long 0x0
0080 00000004      262     .long 0x4
0084 0000002c      263     .long 0x2c
0088 0008ffff      264     .long 0x8ffff
008c 6565735f      265     .long 0x6565735f
0090 0000006b      266     .long 0x6b
0094 00000006      267     .long 0x6
0098 00000005      268     .long 0x5
009c 0008ffff      269     .long 0x8ffff
00a0 746e635f      270     .long 0x746e635f
00a4 00000000      271     .long 0x0
00a8 0000000a      272     .long 0xa
00ac 00000004      273     .long 0x4
00b0 0008ffff      274     .long 0x8ffff
00b4 616c665f      275     .long 0x616c665f
00b8 00000067      276     .long 0x67
00bc 0000000c      277     .long 0xc
00c0 00000003      278     .long 0x3
00c4 0008ffff      279     .long 0x8ffff
00c8 6c69665f      280     .long 0x6c69665f
00cc 00000065      281     .long 0x65
00d0 0000000e      282     .long 0xe
00d4 00000002      283     .long 0x2
00d8 0008ffff      284     .long 0x8ffff
00dc 66626e5f      285     .long 0x66626e5f
00e0 00000000      286     .long 0x0
00e4 0000000f      287     .long 0xf
00e8 0000000c      288     .long 0xc
00ec 0008ffff      289     .long 0x8ffff
00f0 736f652e      290     .long 0x736f652e
00f4 00000000      291     .long 0x0
00f8 00000010      292     .long 0x10
00fc 00000000      293     .long 0x0
0100 0166ffff      294     .long 0x166ffff
0104 00000028      295     .long DBG4
0108 00100000      296     .long 0x100000
010c 00000000      297     .long 0x0
0110 00000000      298     .long 0x0
0114 00000000      299     .long 0x0
                   300 .3fake_2:
                   301 DBG6:
0118 6166332e      302     .long 0x6166332e
011c 325f656b      303     .long 0x325f656b
0120 00000000      304     .long 0x0
0124 00000008      305     .long 0x8
0128 010afffe      306     .long 0x10afffe
012c 00000000      307     .long 0x0
0130 00120000      308     .long 0x120000
0134 00000000      309     .long 0x0
0138 000001f4      310     .long DBG7
013c 00000000      311     .long 0x0
0140 53727563      312     .long 0x53727563
0144 65746174      313     .long 0x65746174
0148 00000000      314     .long 0x0
014c 0000000c      315     .long 0xc
0150 0008ffff      316     .long 0x8ffff
0154 00000000      317     .long 0x0
0158 00000050      318     .long DBG8
015c 00000001      319     .long 0x1
0160 0000000c      320     .long 0xc
0164 0008ffff      321     .long 0x8ffff
0168 67616c66      322     .long 0x67616c66
016c 00000073      323     .long 0x73
0170 00000002      324     .long 0x2
0174 0000000c      325     .long 0xc
0178 0008ffff      326     .long 0x8ffff
017c 6576656c      327     .long 0x6576656c
0180 0069486c      328     .long 0x69486c
0184 00000004      329     .long 0x4
0188 00000006      330     .long 0x6
018c 0008ffff      331     .long 0x8ffff
0190 6576656c      332     .long 0x6576656c
0194 006f4c6c      333     .long 0x6f4c6c
0198 00000008      334     .long 0x8
019c 00000006      335     .long 0x6
01a0 0008ffff      336     .long 0x8ffff
01a4 00000000      337     .long 0x0
01a8 00000014      338     .long DBG9
01ac 0000000c      339     .long 0xc
01b0 00000006      340     .long 0x6
01b4 0008ffff      341     .long 0x8ffff
01b8 6874656d      342     .long 0x6874656d
01bc 0000646f      343     .long 0x646f
01c0 00000010      344     .long 0x10
01c4 000002a4      345     .long 0x2a4
01c8 0008ffff      346     .long 0x8ffff
01cc 736f652e      347     .long 0x736f652e
01d0 00000000      348     .long 0x0
01d4 00000012      349     .long 0x12
01d8 00000000      350     .long 0x0
01dc 0166ffff      351     .long 0x166ffff
01e0 00000118      352     .long DBG6
01e4 00120000      353     .long 0x120000
01e8 00000000      354     .long 0x0
01ec 00000000      355     .long 0x0
01f0 00000000      356     .long 0x0
                   357 DBG1:
                   358 DBG2:
                   359 DBG3:
                   360 DBG7:
01f4 00007073      361     .long 0x7073
01f8 00000000      362     .long 0x0
01fc 00000001      363     .long 0x1
0200 00000000      364     .long 0x0
0204 016cfffe      365     .long 0x16cfffe
0208 00000000      366     .long 0x0
020c 00100001      367     .long 0x100001
0210 00000000      368     .long 0x0
0214 00000000      369     .long 0x0
0218 00000000      370     .long 0x0
021c 00000052      371     .long 0x52
0220 00000000      372     .long 0x0
0224 00000002      373     .long 0x2
0228 00000000      374     .long 0x0
022c 016cfffe      375     .long 0x16cfffe
0230 00000000      376     .long 0x0
0234 00100010      377     .long 0x100010
0238 00000000      378     .long 0x0
023c 00000000      379     .long 0x0
0240 00000000      380     .long 0x0
0244 00000000      381     .long 0x0
0248 00000004      382     .long DBG10
024c 00000000      383     .long 0x0
0250 000002a0      384     .long 0x2a0
0254 000dfffe      385     .long 0xdfffe
0258 6c6f6f62      386     .long 0x6c6f6f62
025c 006e6165      387     .long 0x6e6165
0260 00000000      388     .long 0x0
0264 00000004      389     .long 0x4
0268 000dfffe      390     .long 0xdfffe
026c 454c4946      391     .long 0x454c4946
0270 00000000      392     .long 0x0
0274 00000000      393     .long 0x0
0278 00000008      394     .long 0x8
027c 010dfffe      395     .long 0x10dfffe
0280 00000028      396     .long .0fake_1
0284 00000010      397     .long 0x10
0288 00000000      398     .long 0x0
028c 00000000      399     .long 0x0
0290 00000000      400     .long 0x0
0294 657a6973      401     .long 0x657a6973
0298 0000745f      402     .long 0x745f
029c 00000000      403     .long 0x0
02a0 0000000e      404     .long 0xe
02a4 000dfffe      405     .long 0xdfffe
02a8 6c5f6176      406     .long 0x6c5f6176
02ac 00747369      407     .long 0x747369
02b0 00000000      408     .long 0x0
02b4 00000020      409     .long 0x20
02b8 000dfffe      410     .long 0xdfffe
02bc 00000000      411     .long 0x0
02c0 00000020      412     .long DBG11
02c4 00000000      413     .long 0x0
02c8 00000008      414     .long 0x8
02cc 010dfffe      415     .long 0x10dfffe
02d0 00000118      416     .long .3fake_2
02d4 00000012      417     .long 0x12
02d8 00000000      418     .long 0x0
02dc 00000000      419     .long 0x0
02e0 00000000      420     .long 0x0
02e4 00000000      421     .long 0x0
02e8 0000003c      422     .long DBG12
02ec 00000000      423     .long 0x0
02f0 000002a4      424     .long 0x2a4
02f4 000dfffe      425     .long 0xdfffe
02f8 00000000      426     .long 0x0
02fc 0000002c      427     .long DBG13
0300 00000000      428     .long 0x0
0304 000002a4      429     .long 0x2a4
0308 000dfffe      430     .long 0xdfffe
030c 666f652e      431     .long 0x666f652e
0310 00000000      432     .long 0x0
0314 00000000      433     .long 0x0
0318 00000000      434     .long 0x0
031c 0067fffe      435     .long 0x67fffe
                   436     .dbgseg dbg_strs
0000               437     .align 0x2
0000 00000070      438     .long 0x70
                   439 DBG10:
0004 6576656e      440     .long 0x6576656e
0008 7448616e      441     .long 0x7448616e
000c 646c6572      442     .long 0x646c6572
0010 00000000      443     .long 0x0
                   444 DBG9:
0014 6c617374      445     .long 0x6c617374
0018 56616c75      446     .long 0x56616c75
001c 65000000      447     .long 0x65000000
                   448 DBG11:
0020 73656e73      449     .long 0x73656e73
0024 6f725374      450     .long 0x6f725374
0028 61746500      451     .long 0x61746500
                   452 DBG13:
002c 636f6d6d      453     .long 0x636f6d6d
0030 616e6448      454     .long 0x616e6448
0034 616e646c      455     .long 0x616e646c
0038 65720000      456     .long 0x65720000
                   457 DBG12:
003c 73656e73      458     .long 0x73656e73
0040 6f725361      459     .long 0x6f725361
0044 6d706c65      460     .long 0x6d706c65
0048 4d657468      461     .long 0x4d657468
004c 6f640000      462     .long 0x6f640000
                   463 DBG8:
0050 70726576      464     .long 0x70726576
0054 53746174      465     .long 0x53746174
0058 65000000      466     .long 0x65000000
                   467 DBG5:
005c 453a5c6d      468     .long 0x453a5c6d
0060 6d637266      469     .long 0x6d637266
0064 696f5c72      470     .long 0x696f5c72
0068 74632e63      471     .long 0x74632e63
006c 00000000      472     .long 0x0
