Archelon msp430 Assembler     Version 1.55 2004/01/08      File E:\mmcrfio\poll.asm      Page 1

                     1 ; Archelon URCC C 3.17 2004/01/12
                     2 ; MSP430 CIF 2003/10/23
                     3 ; Compiled "E:\mmcrfio\poll.c" Fri Mar 12 11:09:16 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 00000034       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 void (*eventHandler)(void);
                   185 ; eventHandler size 2
                   186 ; int eventqInit(void);
                   187 ; void eventqPut(int);
                   188 ; void eventqUrgentPut(int);
                   189 ; int eventqGet(void);
                   190 ; int eventqRegisterHandler(int evType, eventHandler handler);
                   191 ; int eventqGetHandler(int evType, eventHandler *pHandler);
                   192 ; void eventqProcessEvents(void);
                   193 ; typedef struct Timer {
                   194 ;   struct Timer *next;
                   195 ;   unsigned char flags;
                   196 ;   int period; 
                   197 ;   int delay; 
                   198 ;   int evType;
                   199 ;   } Timer, *pTimer;
                   200 ; Timer size 10
                   201 ; pTimer size 2
                   202 ; int timerInit(void);
                   203 ; pTimer timerCreate(unsigned char flags, int period, int evType);
                   204 ; void timerModify(pTimer modTimer, unsigned char flags, int period);
                   205 ; void timerCancel(pTimer cancelTimer);
                   206 ; int timerGetPeriodMs(void);
                   207 ; void timerShow(void);
                   208 ; void clearString(char *s, int len);
                   209 ; void eatWhiteSpace(char **s);
                   210 ; int grabArgument(char **srcStr, char *dstStr, int dstLen);
                   211 ; typedef int (*commandHandler)(char *);
                   212 ; commandHandler size 2
                   213 ; int cmdparseInit(void);
                   214 ; void cmdparseShow(void);
                   215 ; int cmdparseAddCommand(char * pCmdStr, char * pSubCmdStr, commandHandler handler);
                   216 ; int cmdparseDoCommand(char * pCmdStr);
                   217 ; int pollInit(void);
                   218 ; void pollPeriodicTick(void);
                   219 ; static int period = 10;
                   220     .iseg poll_idata
0000               221     .align 0x2
                   222 poll_V1:
0000               223     .align 0x2
0000               224     .align 0x2
0000 0a00          225     .data 0xa
                   226     .dseg   poll_data
0000               227     .align 0x2
                   228 poll_V2:
0000               229     .align 0x2
                   230 _period:
0000               231     .bss 0x2
                   232 ; period size 2
                   233 ; static pTimer pollTimer;
                   234 ; int getPeriodHandler(char *cmdStr);
                   235 ; int setPeriodHandler(char *);
                   236 ; int pollHandler(char *);
                   237 ; int pollInit(void)
                   238     .dbgseg dbg_syms
                   239 DBG3:
0028 6c6c6f70      240     .long 0x6c6c6f70
002c 74696e49      241     .long 0x74696e49
0030 00000000      242     .long _pollInit
0034 00000044      243     .long 0x44
0038 01020001      244     .long 0x1020001
003c 00000050      245     .long DBG1
0040 00000042      246     .long DBG7-DBG8
0044 00000000      247     .long DBG9
0048 000000dc      248     .long DBG6
004c 00000000      249     .long 0x0
                   250     .pseg poll_code
                   251 DBG8:
                   252     .dbgseg dbg_syms
                   253 DBG1:
0050 0066622e      254     .long 0x66622e
0054 00000000      255     .long 0x0
0058 00000000      256     .long DBG8
005c 00000000      257     .long 0x0
0060 01650001      258     .long 0x1650001
0064 00000000      259     .long 0x0
0068 00000016      260     .long 0x16
006c 00000000      261     .long 0x0
0070 00000104      262     .long DBG10
0074 00000000      263     .long 0x0
                   264     .dbgseg dbg_line
0000               265     .align 0x2
                   266 DBG9:
0000 00000028      267     .long DBG3
0004 00000000      268     .long 0x0
0008 00000000      269     .long _pollInit
000c 00000001      270     .long 0x1
0010 00000000      271     .long DBG12
0014 00000002      272     .long 0x2
0018 00000000      273     .long DBG13
001c 00000007      274     .long 0x7
0020 00000010      275     .long DBG14
0024 00000009      276     .long 0x9
0028 00000020      277     .long DBG15
002c 0000000a      278     .long 0xa
0030 00000030      279     .long DBG16
0034 0000000b      280     .long 0xb
0038 0000003e      281     .long DBG17
003c 0000000c      282     .long 0xc
0040 00000040      283     .long DBG18
0044 0000000d      284     .long 0xd
                   285     .pseg poll_code
                   286     .global _pollInit
                   287 _pollInit:
                   288 ; ENTRY
                   289 DBG11:
                   290 ; {
                   291 DBG12:
                   292 ;   pollTimer = timerCreate( (0x01) ,
                   293 ;                           period,
                   294 DBG13:
0000 422e          295     mov #0x4,r14
0002 421d0000      296     mov &_period,r13
0006 435c          297     mov.b   #0x1,r12
0008 12b00000      298     call    #_timerCreate
000c 4c820000      299     mov r12,&_pollTimer
                   300 DBG14:
                   301 ;             (4) );
                   302 ;   cmdparseAddCommand("set", "period", setPeriodHandler);
0010 403e0046      303     mov #_setPeriodHandler,r14
0014 403d0004      304     mov #poll_V5,r13
0018 403c000e      305     mov #poll_V4,r12
001c 12b00000      306     call    #_cmdparseAddCommand
                   307 DBG15:
                   308 ;   cmdparseAddCommand("get", "period", getPeriodHandler);
0020 403e0042      309     mov #_getPeriodHandler,r14
0024 403d0004      310     mov #poll_V5,r13
0028 403c0000      311     mov #poll_V6,r12
002c 12b00000      312     call    #_cmdparseAddCommand
                   313 DBG16:
                   314 ;   cmdparseAddCommand("poll", ((void *) 0) , pollHandler);  
0030 403e0094      315     mov #_pollHandler,r14
0034 430d          316     mov #0x0,r13
0036 403c0012      317     mov #poll_V7,r12
003a 12b00000      318     call    #_cmdparseAddCommand
                   319 DBG17:
                   320 ;   return 0;
003e 430c          321     mov #0x0,r12
                   322 DBG19:
                   323 DBG18:
                   324 ; EXIT
0040 4130          325     ret
                   326     .dbgseg dbg_syms
0078 00000000      327     .long 0x0
007c 00000028      328     .long DBG20
0080 00000000      329     .long 0x0
0084 00000000      330     .long 0x0
0088 00010002      331     .long 0x10002
008c 00000000      332     .long 0x0
0090 00000084      333     .long DBG21
0094 00000002      334     .long 0x2
0098 00000000      335     .long 0x0
009c 00010002      336     .long 0x10002
00a0 0066652e      337     .long 0x66652e
00a4 00000000      338     .long 0x0
00a8 00000040      339     .long DBG19
00ac 00000000      340     .long 0x0
00b0 01650001      341     .long 0x1650001
00b4 00000000      342     .long 0x0
00b8 00000022      343     .long 0x22
00bc 00000000      344     .long 0x0
00c0 00000000      345     .long 0x0
00c4 00000000      346     .long 0x0
                   347     .pseg poll_code
                   348 DBG7:
                   349     .dbgseg dbg_syms
00c8 6c6c6f70      350     .long 0x6c6c6f70
00cc 74696e49      351     .long 0x74696e49
00d0 00000042      352     .long DBG7
00d4 00000000      353     .long 0x0
00d8 00ff0001      354     .long 0xff0001
                   355 ; }
                   356 ; static int getPeriodHandler(char *cmdStr)
                   357 DBG6:
00dc 00000000      358     .long 0x0
00e0 00000014      359     .long DBG26
00e4 00000042      360     .long _getPeriodHandler
00e8 00000044      361     .long 0x44
00ec 01030001      362     .long 0x1030001
00f0 00000104      363     .long DBG10
00f4 00000004      364     .long DBG23-DBG24
00f8 00000048      365     .long DBG25
00fc 00000190      366     .long DBG22
0100 00000000      367     .long 0x0
                   368     .pseg poll_code
                   369 DBG24:
                   370     .dbgseg dbg_syms
                   371 DBG10:
0104 0066622e      372     .long 0x66622e
0108 00000000      373     .long 0x0
010c 00000042      374     .long DBG24
0110 00000000      375     .long 0x0
0114 01650001      376     .long 0x1650001
0118 00000000      377     .long 0x0
011c 00000024      378     .long 0x24
0120 00000000      379     .long 0x0
0124 000001b8      380     .long DBG27
0128 00000000      381     .long 0x0
                   382     .dbgseg dbg_line
                   383 DBG25:
0048 000000dc      384     .long DBG6
004c 00000000      385     .long 0x0
0050 00000042      386     .long _getPeriodHandler
0054 00000001      387     .long 0x1
0058 00000042      388     .long DBG29
005c 00000002      389     .long 0x2
0060 00000042      390     .long DBG30
0064 00000004      391     .long 0x4
0068 00000044      392     .long DBG31
006c 00000005      393     .long 0x5
                   394     .pseg poll_code
                   395 _getPeriodHandler:
                   396 ; ENTRY
                   397 DBG28:
                   398 ; {
                   399 DBG29:
                   400 ;   return 0;
                   401 DBG30:
0042 430c          402     mov #0x0,r12
                   403 DBG32:
                   404 DBG31:
                   405 ; EXIT
0044 4130          406     ret
                   407     .dbgseg dbg_syms
012c 00000000      408     .long 0x0
0130 00000028      409     .long DBG20
0134 00000000      410     .long 0x0
0138 00000000      411     .long 0x0
013c 00010002      412     .long 0x10002
0140 00000000      413     .long 0x0
0144 00000084      414     .long DBG21
0148 00000002      415     .long 0x2
014c 00000000      416     .long 0x0
0150 00010002      417     .long 0x10002
0154 0066652e      418     .long 0x66652e
0158 00000000      419     .long 0x0
015c 00000044      420     .long DBG32
0160 00000000      421     .long 0x0
0164 01650001      422     .long 0x1650001
0168 00000000      423     .long 0x0
016c 00000028      424     .long 0x28
0170 00000000      425     .long 0x0
0174 00000000      426     .long 0x0
0178 00000000      427     .long 0x0
                   428     .pseg poll_code
                   429 DBG23:
                   430     .dbgseg dbg_syms
017c 00000000      431     .long 0x0
0180 00000014      432     .long DBG26
0184 00000046      433     .long DBG23
0188 00000000      434     .long 0x0
018c 00ff0001      435     .long 0xff0001
                   436 ; }
                   437 ; ****** Warning: Symbol ``cmdStr'' (function getPeriodHandler) was defined, but not used
                   438 ; static int setPeriodHandler(char *cmdStr)
                   439 DBG22:
0190 00000000      440     .long 0x0
0194 00000058      441     .long DBG37
0198 00000046      442     .long _setPeriodHandler
019c 00000044      443     .long 0x44
01a0 01030001      444     .long 0x1030001
01a4 000001b8      445     .long DBG27
01a8 0000004e      446     .long DBG34-DBG35
01ac 00000070      447     .long DBG36
01b0 00000334      448     .long DBG33
01b4 00000000      449     .long 0x0
                   450     .pseg poll_code
                   451 DBG35:
                   452     .dbgseg dbg_syms
                   453 DBG27:
01b8 0066622e      454     .long 0x66622e
01bc 00000000      455     .long 0x0
01c0 00000046      456     .long DBG35
01c4 00000000      457     .long 0x0
01c8 01650001      458     .long 0x1650001
01cc 00000000      459     .long 0x0
01d0 0000002a      460     .long 0x2a
01d4 00000000      461     .long 0x0
01d8 0000035c      462     .long DBG38
01dc 00000000      463     .long 0x0
                   464     .dbgseg dbg_line
                   465 DBG36:
0070 00000190      466     .long DBG22
0074 00000000      467     .long 0x0
0078 00000046      468     .long _setPeriodHandler
007c 00000001      469     .long 0x1
0080 0000004c      470     .long DBG40
0084 00000002      471     .long 0x2
0088 0000004c      472     .long DBG41
008c 00000005      473     .long 0x5
0090 00000052      474     .long DBG42
0094 00000006      475     .long 0x6
0098 0000006a      476     .long DBG43
009c 00000008      477     .long 0x8
00a0 0000006e      478     .long DBG44
00a4 00000009      479     .long 0x9
00a8 00000072      480     .long DBG45
00ac 0000000d      481     .long 0xd
00b0 0000007a      482     .long DBG47
00b4 0000000e      483     .long 0xe
00b8 0000007e      484     .long DBG48
00bc 0000000f      485     .long 0xf
00c0 0000007e      486     .long DBG49
00c4 00000010      487     .long 0x10
00c8 00000082      488     .long DBG51
00cc 00000013      489     .long 0x13
00d0 00000082      490     .long DBG52
00d4 00000014      491     .long 0x14
00d8 00000084      492     .long DBG54
00dc 00000016      493     .long 0x16
00e0 0000008e      494     .long DBG55
00e4 00000018      495     .long 0x18
00e8 0000008e      496     .long DBG56
00ec 0000001a      497     .long 0x1a
00f0 00000090      498     .long DBG57
00f4 0000001b      499     .long 0x1b
                   500     .pseg poll_code
                   501 _setPeriodHandler:
0046 8221          502     sub #0x4,sp
                   503 DBG39:
                   504 ; ENTRY
0048 4c810000      505     mov r12,0(sp)
                   506 DBG41:
                   507 DBG40:
                   508 ; cmdStr at stkloc 0 (0x0) size 2
                   509 ; retVal in reg  size 2
                   510 ; setPeriod at stkloc 2 (0x2) size 2
                   511 ; {
                   512 ;   int retVal, setPeriod;
                   513 ;   eatWhiteSpace(&cmdStr);
004c 410c          514     mov sp,r12
004e 12b00000      515     call    #_eatWhiteSpace
                   516 DBG42:
                   517 ;   retVal = sscanf(cmdStr, "%d", &setPeriod);
0052 410c          518     mov sp,r12
0054 532c          519     add #0x2,r12
0056 120c          520     push    r12
0058 1230000b      521     push    #poll_V8
005c 410c          522     mov sp,r12
005e 522c          523     add #0x4,r12
0060 122c          524     push    @r12
                   525 DBG58:
0062 12b00000      526     call    #_sscanf
                   527 DBG59:
0066 50310006      528     add #0x6,sp
                   529 DBG43:
                   530 ;   if (retVal != 1)
006a 931c          531     cmp #0x1,r12
006c 2402          532     jeq setPeriodHandler_L1
                   533 DBG44:
                   534 ;     return (2) ;
006e 432c          535     mov #0x2,r12
0070 3c0f          536     jmp setPeriodHandler_LL2
                   537 DBG45:
                   538 setPeriodHandler_L1:
                   539 ;   if (setPeriod < 0) {
0072 411e0002      540     mov 0x2(sp),r14
0076 930e          541     cmp #0x0,r14
0078 3402          542     jge setPeriodHandler_L2
                   543 DBG47:
                   544 DBG46:
                   545 ;     return (2) ;
007a 432c          546     mov #0x2,r12
007c 3c09          547     jmp setPeriodHandler_LL2
                   548 DBG49:
                   549 DBG48:
                   550 ;     }
                   551 setPeriodHandler_L2:
                   552 ;   else if (setPeriod == 0) {
007e 930e          553     cmp #0x0,r14
0080 2001          554     jne setPeriodHandler_L3
                   555 DBG52:
                   556 DBG51:
                   557 DBG50:
                   558 ;     }
0082 3c05          559     jmp setPeriodHandler_L4
                   560 setPeriodHandler_L3:
                   561 ;   else {
                   562 DBG53:
                   563 ;     timerModify(pollTimer, (0x01) , setPeriod);
                   564 DBG54:
0084 435d          565     mov.b   #0x1,r13
0086 421c0000      566     mov &_pollTimer,r12
008a 12b00000      567     call    #_timerModify
                   568 DBG55:
                   569 setPeriodHandler_L4:
                   570 ;   }
                   571 ;   return 0;
                   572 DBG56:
008e 430c          573     mov #0x0,r12
                   574 DBG57:
                   575 setPeriodHandler_LL2:
                   576 ; EXIT
                   577 DBG60:
0090 5221          578     add #0x4,sp
0092 4130          579     ret
                   580     .dbgseg dbg_syms
01e0 00000000      581     .long 0x0
01e4 00000028      582     .long DBG20
01e8 00000004      583     .long 0x4
01ec 00000000      584     .long 0x0
01f0 00010002      585     .long 0x10002
01f4 00000000      586     .long 0x0
01f8 00000084      587     .long DBG21
01fc 00000002      588     .long 0x2
0200 00000000      589     .long 0x0
0204 00010002      590     .long 0x10002
0208 00000000      591     .long 0x0
020c 0000006c      592     .long DBG61
0210 00000002      593     .long 0x2
0214 00000004      594     .long 0x4
0218 00010002      595     .long 0x10002
021c 53646d63      596     .long 0x53646d63
0220 00007274      597     .long 0x7274
0224 00000000      598     .long 0x0
0228 00000022      599     .long 0x22
022c 00010002      600     .long 0x10002
                   601 DBG2:
0230 0062622e      602     .long 0x62622e
0234 00000000      603     .long 0x0
0238 00000062      604     .long DBG58
023c 00000000      605     .long 0x0
0240 01640001      606     .long 0x1640001
0244 00000000      607     .long 0x0
0248 00000008      608     .long 0x8
024c 00000000      609     .long 0x0
0250 00000294      610     .long DBG62
0254 00000000      611     .long 0x0
0258 00000000      612     .long 0x0
025c 00000048      613     .long DBG63
0260 00000006      614     .long 0x6
0264 00000000      615     .long 0x0
0268 00010002      616     .long 0x10002
026c 0062652e      617     .long 0x62652e
0270 00000000      618     .long 0x0
0274 00000066      619     .long DBG59
0278 00000000      620     .long 0x0
027c 01640001      621     .long 0x1640001
0280 00000000      622     .long 0x0
0284 00000008      623     .long 0x8
0288 00000000      624     .long 0x0
028c 00000000      625     .long 0x0
0290 00000000      626     .long 0x0
                   627 DBG62:
0294 0062622e      628     .long 0x62622e
0298 00000000      629     .long 0x0
029c 0000006a      630     .long DBG43
02a0 00000000      631     .long 0x0
02a4 01640001      632     .long 0x1640001
02a8 00000000      633     .long 0x0
02ac 00000008      634     .long 0x8
02b0 00000000      635     .long 0x0
02b4 000005a0      636     .long DBG64
02b8 00000000      637     .long 0x0
02bc 56746572      638     .long 0x56746572
02c0 00006c61      639     .long 0x6c61
02c4 000c0102      640     .long 0xc0102
02c8 00000004      641     .long 0x4
02cc 0004ffff      642     .long 0x4ffff
02d0 0062652e      643     .long 0x62652e
02d4 00000000      644     .long 0x0
02d8 00000072      645     .long DBG45
02dc 00000000      646     .long 0x0
02e0 01640001      647     .long 0x1640001
02e4 00000000      648     .long 0x0
02e8 0000000d      649     .long 0xd
02ec 00000000      650     .long 0x0
02f0 00000000      651     .long 0x0
02f4 00000000      652     .long 0x0
02f8 0066652e      653     .long 0x66652e
02fc 00000000      654     .long 0x0
0300 00000090      655     .long DBG60
0304 00000000      656     .long 0x0
0308 01650001      657     .long 0x1650001
030c 00000000      658     .long 0x0
0310 00000044      659     .long 0x44
0314 00000000      660     .long 0x0
0318 00000000      661     .long 0x0
031c 00000000      662     .long 0x0
                   663     .pseg poll_code
                   664 DBG34:
                   665     .dbgseg dbg_syms
0320 00000000      666     .long 0x0
0324 00000058      667     .long DBG37
0328 00000094      668     .long DBG34
032c 00000000      669     .long 0x0
0330 00ff0001      670     .long 0xff0001
                   671 ; }
                   672 ; static int pollHandler(char * cmdStr)
                   673 DBG33:
0334 00000000      674     .long 0x0
0338 00000078      675     .long DBG69
033c 00000094      676     .long _pollHandler
0340 00000044      677     .long 0x44
0344 01030001      678     .long 0x1030001
0348 0000035c      679     .long DBG38
034c 0000000a      680     .long DBG66-DBG67
0350 000000f8      681     .long DBG68
0354 000005a0      682     .long DBG65
0358 00000000      683     .long 0x0
                   684     .pseg poll_code
                   685 DBG67:
                   686     .dbgseg dbg_syms
                   687 DBG38:
035c 0066622e      688     .long 0x66622e
0360 00000000      689     .long 0x0
0364 00000094      690     .long DBG67
0368 00000000      691     .long 0x0
036c 01650001      692     .long 0x1650001
0370 00000000      693     .long 0x0
0374 00000046      694     .long 0x46
0378 00000000      695     .long 0x0
037c 000005a0      696     .long DBG70
0380 00000000      697     .long 0x0
                   698     .dbgseg dbg_line
                   699 DBG68:
00f8 00000334      700     .long DBG33
00fc 00000000      701     .long 0x0
0100 00000094      702     .long _pollHandler
0104 00000001      703     .long 0x1
0108 00000094      704     .long DBG72
010c 00000002      705     .long 0x2
0110 00000094      706     .long DBG73
0114 00000003      707     .long 0x3
0118 0000009a      708     .long DBG74
011c 00000004      709     .long 0x4
0120 0000009c      710     .long DBG75
0124 00000005      711     .long 0x5
                   712     .pseg poll_code
                   713 _pollHandler:
                   714 ; ENTRY
                   715 DBG71:
                   716 ; {
                   717 DBG72:
                   718 ;   eventqPut( (4) );
                   719 DBG73:
0094 422c          720     mov #0x4,r12
0096 12b00000      721     call    #_eventqPut
                   722 DBG74:
                   723 ;   return 0;
009a 430c          724     mov #0x0,r12
                   725 DBG76:
                   726 DBG75:
                   727 ; EXIT
009c 4130          728     ret
                   729     .dbgseg dbg_syms
0384 00000000      730     .long 0x0
0388 00000028      731     .long DBG20
038c 00000000      732     .long 0x0
0390 00000000      733     .long 0x0
0394 00010002      734     .long 0x10002
0398 00000000      735     .long 0x0
039c 00000084      736     .long DBG21
03a0 00000002      737     .long 0x2
03a4 00000000      738     .long 0x0
03a8 00010002      739     .long 0x10002
03ac 0066652e      740     .long 0x66652e
03b0 00000000      741     .long 0x0
03b4 0000009c      742     .long DBG76
03b8 00000000      743     .long 0x0
03bc 01650001      744     .long 0x1650001
03c0 00000000      745     .long 0x0
03c4 0000004a      746     .long 0x4a
03c8 00000000      747     .long 0x0
03cc 00000000      748     .long 0x0
03d0 00000000      749     .long 0x0
                   750     .pseg poll_code
                   751 DBG66:
                   752     .dbgseg dbg_syms
03d4 00000000      753     .long 0x0
03d8 00000078      754     .long DBG69
03dc 0000009e      755     .long DBG66
03e0 00000000      756     .long 0x0
03e4 00ff0001      757     .long 0xff0001
                   758 ; }
                   759 ; ****** Warning: Symbol ``cmdStr'' (function pollHandler) was defined, but not used
                   760     .dseg   poll_bss
0000               761     .align 0x2
                   762 poll_V9:
0000               763     .align 0x2
                   764 _pollTimer:
0000               765     .bss 0x2
                   766 ; pollTimer size 2
                   767     .extern _eatWhiteSpace
                   768     .extern _timerModify
                   769     .extern _eventqPut
                   770     .extern _timerCreate
                   771     .extern _cmdparseAddCommand
                   772     .extern _sscanf
                   773     .dbgseg dbg_syms
                   774 .0fake_1:
                   775 DBG4:
03e8 6166302e      776     .long 0x6166302e
03ec 315f656b      777     .long 0x315f656b
03f0 00000000      778     .long 0x0
03f4 00000008      779     .long 0x8
03f8 010afffe      780     .long 0x10afffe
03fc 00000000      781     .long 0x0
0400 00100000      782     .long 0x100000
0404 00000000      783     .long 0x0
0408 000004d8      784     .long DBG77
040c 00000000      785     .long 0x0
0410 7361625f      786     .long 0x7361625f
0414 00000065      787     .long 0x65
0418 00000000      788     .long 0x0
041c 0000002c      789     .long 0x2c
0420 0008ffff      790     .long 0x8ffff
0424 646e655f      791     .long 0x646e655f
0428 00000000      792     .long 0x0
042c 00000002      793     .long 0x2
0430 0000002c      794     .long 0x2c
0434 0008ffff      795     .long 0x8ffff
0438 7274705f      796     .long 0x7274705f
043c 00000000      797     .long 0x0
0440 00000004      798     .long 0x4
0444 0000002c      799     .long 0x2c
0448 0008ffff      800     .long 0x8ffff
044c 6565735f      801     .long 0x6565735f
0450 0000006b      802     .long 0x6b
0454 00000006      803     .long 0x6
0458 00000005      804     .long 0x5
045c 0008ffff      805     .long 0x8ffff
0460 746e635f      806     .long 0x746e635f
0464 00000000      807     .long 0x0
0468 0000000a      808     .long 0xa
046c 00000004      809     .long 0x4
0470 0008ffff      810     .long 0x8ffff
0474 616c665f      811     .long 0x616c665f
0478 00000067      812     .long 0x67
047c 0000000c      813     .long 0xc
0480 00000003      814     .long 0x3
0484 0008ffff      815     .long 0x8ffff
0488 6c69665f      816     .long 0x6c69665f
048c 00000065      817     .long 0x65
0490 0000000e      818     .long 0xe
0494 00000002      819     .long 0x2
0498 0008ffff      820     .long 0x8ffff
049c 66626e5f      821     .long 0x66626e5f
04a0 00000000      822     .long 0x0
04a4 0000000f      823     .long 0xf
04a8 0000000c      824     .long 0xc
04ac 0008ffff      825     .long 0x8ffff
04b0 736f652e      826     .long 0x736f652e
04b4 00000000      827     .long 0x0
04b8 00000010      828     .long 0x10
04bc 00000000      829     .long 0x0
04c0 0166ffff      830     .long 0x166ffff
04c4 000003e8      831     .long DBG4
04c8 00100000      832     .long 0x100000
04cc 00000000      833     .long 0x0
04d0 00000000      834     .long 0x0
04d4 00000000      835     .long 0x0
                   836 Timer_2:
                   837 DBG77:
04d8 656d6954      838     .long 0x656d6954
04dc 00325f72      839     .long 0x325f72
04e0 00000000      840     .long 0x0
04e4 00000008      841     .long 0x8
04e8 010afffe      842     .long 0x10afffe
04ec 00000000      843     .long 0x0
04f0 000a0000      844     .long 0xa0000
04f4 00000000      845     .long 0x0
04f8 000005a0      846     .long DBG78
04fc 00000000      847     .long 0x0
0500 7478656e      848     .long 0x7478656e
0504 00000000      849     .long 0x0
0508 00000000      850     .long 0x0
050c 00000028      851     .long 0x28
0510 0108ffff      852     .long 0x108ffff
0514 000004d8      853     .long Timer_2
0518 0000000a      854     .long 0xa
051c 00000000      855     .long 0x0
0520 00000000      856     .long 0x0
0524 00000000      857     .long 0x0
0528 67616c66      858     .long 0x67616c66
052c 00000073      859     .long 0x73
0530 00000002      860     .long 0x2
0534 0000000c      861     .long 0xc
0538 0008ffff      862     .long 0x8ffff
053c 69726570      863     .long 0x69726570
0540 0000646f      864     .long 0x646f
0544 00000004      865     .long 0x4
0548 00000004      866     .long 0x4
054c 0008ffff      867     .long 0x8ffff
0550 616c6564      868     .long 0x616c6564
0554 00000079      869     .long 0x79
0558 00000006      870     .long 0x6
055c 00000004      871     .long 0x4
0560 0008ffff      872     .long 0x8ffff
0564 79547665      873     .long 0x79547665
0568 00006570      874     .long 0x6570
056c 00000008      875     .long 0x8
0570 00000004      876     .long 0x4
0574 0008ffff      877     .long 0x8ffff
0578 736f652e      878     .long 0x736f652e
057c 00000000      879     .long 0x0
0580 0000000a      880     .long 0xa
0584 00000000      881     .long 0x0
0588 0166ffff      882     .long 0x166ffff
058c 000004d8      883     .long DBG77
0590 000a0000      884     .long 0xa0000
0594 00000000      885     .long 0x0
0598 00000000      886     .long 0x0
059c 00000000      887     .long 0x0
                   888 DBG70:
                   889 DBG64:
                   890 DBG65:
                   891 DBG78:
05a0 00007073      892     .long 0x7073
05a4 00000000      893     .long 0x0
05a8 00000001      894     .long 0x1
05ac 00000000      895     .long 0x0
05b0 016cfffe      896     .long 0x16cfffe
05b4 00000000      897     .long 0x0
05b8 00100001      898     .long 0x100001
05bc 00000000      899     .long 0x0
05c0 00000000      900     .long 0x0
05c4 00000000      901     .long 0x0
05c8 00000052      902     .long 0x52
05cc 00000000      903     .long 0x0
05d0 00000002      904     .long 0x2
05d4 00000000      905     .long 0x0
05d8 016cfffe      906     .long 0x16cfffe
05dc 00000000      907     .long 0x0
05e0 00100010      908     .long 0x100010
05e4 00000000      909     .long 0x0
05e8 00000000      910     .long 0x0
05ec 00000000      911     .long 0x0
05f0 69726570      912     .long 0x69726570
05f4 0000646f      913     .long 0x646f
05f8 00000000      914     .long _period
05fc 00000004      915     .long 0x4
0600 00030002      916     .long 0x30002
0604 00000000      917     .long 0x0
0608 00000098      918     .long DBG79
060c 00000000      919     .long _pollTimer
0610 00000028      920     .long 0x28
0614 01030002      921     .long 0x1030002
0618 000004d8      922     .long Timer_2
061c 0000000a      923     .long 0xa
0620 00000000      924     .long 0x0
0624 00000000      925     .long 0x0
0628 00000000      926     .long 0x0
062c 00000000      927     .long 0x0
0630 00000004      928     .long DBG80
0634 00000000      929     .long 0x0
0638 000002a0      930     .long 0x2a0
063c 000dfffe      931     .long 0xdfffe
0640 6c6f6f62      932     .long 0x6c6f6f62
0644 006e6165      933     .long 0x6e6165
0648 00000000      934     .long 0x0
064c 00000004      935     .long 0x4
0650 000dfffe      936     .long 0xdfffe
0654 454c4946      937     .long 0x454c4946
0658 00000000      938     .long 0x0
065c 00000000      939     .long 0x0
0660 00000008      940     .long 0x8
0664 010dfffe      941     .long 0x10dfffe
0668 000003e8      942     .long .0fake_1
066c 00000010      943     .long 0x10
0670 00000000      944     .long 0x0
0674 00000000      945     .long 0x0
0678 00000000      946     .long 0x0
067c 656d6954      947     .long 0x656d6954
0680 00000072      948     .long 0x72
0684 00000000      949     .long 0x0
0688 00000008      950     .long 0x8
068c 010dfffe      951     .long 0x10dfffe
0690 000004d8      952     .long Timer_2
0694 0000000a      953     .long 0xa
0698 00000000      954     .long 0x0
069c 00000000      955     .long 0x0
06a0 00000000      956     .long 0x0
06a4 657a6973      957     .long 0x657a6973
06a8 0000745f      958     .long 0x745f
06ac 00000000      959     .long 0x0
06b0 0000000e      960     .long 0xe
06b4 000dfffe      961     .long 0xdfffe
06b8 6d695470      962     .long 0x6d695470
06bc 00007265      963     .long 0x7265
06c0 00000000      964     .long 0x0
06c4 00000028      965     .long 0x28
06c8 010dfffe      966     .long 0x10dfffe
06cc 000004d8      967     .long Timer_2
06d0 0000000a      968     .long 0xa
06d4 00000000      969     .long 0x0
06d8 00000000      970     .long 0x0
06dc 00000000      971     .long 0x0
06e0 6c5f6176      972     .long 0x6c5f6176
06e4 00747369      973     .long 0x747369
06e8 00000000      974     .long 0x0
06ec 00000020      975     .long 0x20
06f0 000dfffe      976     .long 0xdfffe
06f4 00000000      977     .long 0x0
06f8 000000a4      978     .long DBG81
06fc 00000000      979     .long 0x0
0700 000002a4      980     .long 0x2a4
0704 000dfffe      981     .long 0xdfffe
                   982     .iseg poll_istrings_const
                   983 poll_V6:
0000 67            984     .byte 0x67
0001 65            985     .byte 0x65
0002 74            986     .byte 0x74
0003 00            987     .byte 0x0
                   988 poll_V5:
0004 70            989     .byte 0x70
0005 65            990     .byte 0x65
0006 72            991     .byte 0x72
0007 69            992     .byte 0x69
0008 6f            993     .byte 0x6f
0009 64            994     .byte 0x64
000a 00            995     .byte 0x0
                   996 poll_V8:
000b 25            997     .byte 0x25
000c 64            998     .byte 0x64
000d 00            999     .byte 0x0
                  1000 poll_V4:
000e 73           1001     .byte 0x73
000f 65           1002     .byte 0x65
0010 74           1003     .byte 0x74
0011 00           1004     .byte 0x0
                  1005 poll_V7:
0012 70           1006     .byte 0x70
0013 6f           1007     .byte 0x6f
0014 6c           1008     .byte 0x6c
0015 6c           1009     .byte 0x6c
0016 00           1010     .byte 0x0
                  1011     .dbgseg dbg_syms
0708 666f652e     1012     .long 0x666f652e
070c 00000000     1013     .long 0x0
0710 00000000     1014     .long 0x0
0714 00000000     1015     .long 0x0
0718 0067fffe     1016     .long 0x67fffe
                  1017     .dbgseg dbg_strs
0000              1018     .align 0x2
0000 000000b4     1019     .long 0xb4
                  1020 DBG80:
0004 6576656e     1021     .long 0x6576656e
0008 7448616e     1022     .long 0x7448616e
000c 646c6572     1023     .long 0x646c6572
0010 00000000     1024     .long 0x0
                  1025 DBG26:
0014 67657450     1026     .long 0x67657450
0018 6572696f     1027     .long 0x6572696f
001c 6448616e     1028     .long 0x6448616e
0020 646c6572     1029     .long 0x646c6572
0024 00000000     1030     .long 0x0
                  1031 DBG20:
0028 5f5f4652     1032     .long 0x5f5f4652
002c 414d4553     1033     .long 0x414d4553
0030 495a4500     1034     .long 0x495a4500
                  1035 DBG5:
0034 453a5c6d     1036     .long 0x453a5c6d
0038 6d637266     1037     .long 0x6d637266
003c 696f5c70     1038     .long 0x696f5c70
0040 6f6c6c2e     1039     .long 0x6f6c6c2e
0044 63000000     1040     .long 0x63000000
                  1041 DBG63:
0048 5f5f5641     1042     .long 0x5f5f5641
004c 525f4152     1043     .long 0x525f4152
0050 47535f53     1044     .long 0x47535f53
0054 495a4500     1045     .long 0x495a4500
                  1046 DBG37:
0058 73657450     1047     .long 0x73657450
005c 6572696f     1048     .long 0x6572696f
0060 6448616e     1049     .long 0x6448616e
0064 646c6572     1050     .long 0x646c6572
0068 00000000     1051     .long 0x0
                  1052 DBG61:
006c 73657450     1053     .long 0x73657450
0070 6572696f     1054     .long 0x6572696f
0074 64000000     1055     .long 0x64000000
                  1056 DBG69:
0078 706f6c6c     1057     .long 0x706f6c6c
007c 48616e64     1058     .long 0x48616e64
0080 6c657200     1059     .long 0x6c657200
                  1060 DBG21:
0084 5f5f5341     1061     .long 0x5f5f5341
0088 5645445f     1062     .long 0x5645445f
008c 41524753     1063     .long 0x41524753
0090 5f53495a     1064     .long 0x5f53495a
0094 45000000     1065     .long 0x45000000
                  1066 DBG79:
0098 706f6c6c     1067     .long 0x706f6c6c
009c 54696d65     1068     .long 0x54696d65
00a0 72000000     1069     .long 0x72000000
                  1070 DBG81:
00a4 636f6d6d     1071     .long 0x636f6d6d
00a8 616e6448     1072     .long 0x616e6448
00ac 616e646c     1073     .long 0x616e646c
00b0 65720000     1074     .long 0x65720000
                  1075     .iseg _idesc
0000              1076     .align 0x2
0000 0000         1077     .data poll_V1
0002 0000         1078     .data poll_V2
0004 0200         1079     .data 0x2
0006 0000         1080     .data 0x0
0008 0000         1081     .data poll_V9
000a 0200         1082     .data 0x2
