Archelon msp430 Assembler     Version 1.60 2005/02/09      File C:\svn\MOOS\MSP430\Quadravox\mmcrfio\eventq.asm      Page 1

                     1 ; Archelon URCC C 3.20 2005/02/20
                     2 ; MSP430 CIF 2005/01/21
                     3 ; Compiled "C:\svn\MOOS\MSP430\Quadravox\mmcrfio\eventq.c" Thu Apr 07 21:34:31 2005
                     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 000000e0       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 void (*__appendfunc_ptr) (char, void *);
                   166 ; __appendfunc_ptr size 2
                   167 ; typedef struct {
                   168 ;   unsigned char *_base;
                   169 ;   unsigned char *_end;
                   170 ;   unsigned char *_ptr;
                   171 ;   long int       _seek;
                   172 ;   int            _cnt;
                   173 ;   short          _flag;
                   174 ;   char           _file;
                   175 ;   unsigned char  _nbf;
                   176 ; } FILE;
                   177 ; FILE size 16
                   178 ; int    sprintf( char *, const char *, ... );
                   179 ; int    snprintf( char *, size_t, const char *, ... );
                   180 ; int    sscanf( const char *, const char *, ... );
                   181 ; int    vsprintf( char *, const char *, va_list );
                   182 ; int    vsnprintf( char *, size_t, const char *, va_list );
                   183 ; int    __vpprintf( __appendfunc_ptr, void *, const char *, va_list );
                   184 ; int    __pprintf( __appendfunc_ptr, void *, const char *, ... );
                   185 ; typedef int boolean;
                   186 ; boolean size 2
                   187 ; enum {false = 0, true = 1};
                   188 ; enum {error = -1, success = 0};
                   189 ; typedef int (*commandHandler)(char *);
                   190 ; commandHandler size 2
                   191 ; int cmdparseInit(void);
                   192 ; void cmdparseShow(void);
                   193 ; int cmdparseAddCommand(char * pCmdStr, char * pSubCmdStr, commandHandler handler);
                   194 ; int cmdparseDoCommand(char * pCmdStr);
                   195 ; typedef void (*eventHandler)(void);
                   196 ; eventHandler size 2
                   197 ; int eventqInit(void);
                   198 ; void eventqPut(int);
                   199 ; void eventqUrgentPut(int);
                   200 ; int eventqGet(void);
                   201 ; int eventqRegisterHandler(int evType, eventHandler handler);
                   202 ; int eventqGetHandler(int evType, eventHandler *pHandler);
                   203 ; void eventqProcessEvents(void);
                   204 ; void gpioInit(void);
                   205 ; void gpioSetLed(boolean);
                   206 ; void gpioSetAttn(boolean);
                   207 ; void gpioSetHiSide(boolean);
                   208 ; void gpioSetGfTest(boolean);
                   209 ; void gpioSetKvhPower(boolean);
                   210 ; static unsigned int maxEvents = 0;
                   211     .iseg eventq_idata
0000               212     .align 0x2
                   213 eventq_V1:
0000               214     .align 0x2
0000               215     .align 0x2
0000 0000          216     .data 0x0
                   217     .dseg   eventq_data
0000               218     .align 0x2
                   219 eventq_V2:
0000               220     .align 0x2
                   221 _maxEvents:
0000               222     .bss 0x2
                   223 ; maxEvents size 2
                   224 ; static unsigned int maxUrgentEvents = 0;
                   225     .iseg eventq_idata
0002               226     .align 0x2
0002               227     .align 0x2
0002 0000          228     .data 0x0
                   229     .dseg   eventq_data
0002               230     .align 0x2
                   231 _maxUrgentEvents:
0002               232     .bss 0x2
                   233 ; maxUrgentEvents size 2
                   234 ; static unsigned int eventsDropped = 0;
                   235     .iseg eventq_idata
0004               236     .align 0x2
0004               237     .align 0x2
0004 0000          238     .data 0x0
                   239     .dseg   eventq_data
0004               240     .align 0x2
                   241 _eventsDropped:
0004               242     .bss 0x2
                   243 ; eventsDropped size 2
                   244 ; static unsigned int urgentEventsDropped = 0;
                   245     .iseg eventq_idata
0006               246     .align 0x2
0006               247     .align 0x2
0006 0000          248     .data 0x0
                   249     .dseg   eventq_data
0006               250     .align 0x2
                   251 _urgentEventsDropped:
0006               252     .bss 0x2
                   253 ; urgentEventsDropped size 2
                   254 ; static unsigned int bogusEvents = 0;
                   255     .iseg eventq_idata
0008               256     .align 0x2
0008               257     .align 0x2
0008 0000          258     .data 0x0
                   259     .dseg   eventq_data
0008               260     .align 0x2
                   261 _bogusEvents:
0008               262     .bss 0x2
                   263 ; bogusEvents size 2
                   264 ; static unsigned char eventQueue[ (32) ];
                   265 ; static unsigned char urgentEventQueue[ (1) ];
                   266 ; static eventHandler eventFuncs[ (12) ];
                   267 ; static int qHead = 0;
                   268     .iseg eventq_idata
000a               269     .align 0x2
000a               270     .align 0x2
000a 0000          271     .data 0x0
                   272     .dseg   eventq_data
000a               273     .align 0x2
                   274 _qHead:
000a               275     .bss 0x2
                   276 ; qHead size 2
                   277 ; static int qTail = 0;
                   278     .iseg eventq_idata
000c               279     .align 0x2
000c               280     .align 0x2
000c 0000          281     .data 0x0
                   282     .dseg   eventq_data
000c               283     .align 0x2
                   284 _qTail:
000c               285     .bss 0x2
                   286 ; qTail size 2
                   287 ; static int qSize = 0;
                   288     .iseg eventq_idata
000e               289     .align 0x2
000e               290     .align 0x2
000e 0000          291     .data 0x0
                   292     .dseg   eventq_data
000e               293     .align 0x2
                   294 _qSize:
000e               295     .bss 0x2
                   296 ; qSize size 2
                   297 ; static int qUrgentHead = 0; 
                   298     .iseg eventq_idata
0010               299     .align 0x2
0010               300     .align 0x2
0010 0000          301     .data 0x0
                   302     .dseg   eventq_data
0010               303     .align 0x2
                   304 _qUrgentHead:
0010               305     .bss 0x2
                   306 ; qUrgentHead size 2
                   307 ; static int qUrgentTail = 0;
                   308     .iseg eventq_idata
0012               309     .align 0x2
0012               310     .align 0x2
0012 0000          311     .data 0x0
                   312     .dseg   eventq_data
0012               313     .align 0x2
                   314 _qUrgentTail:
0012               315     .bss 0x2
                   316 ; qUrgentTail size 2
                   317 ; static int qUrgentSize = 0;
                   318     .iseg eventq_idata
0014               319     .align 0x2
0014               320     .align 0x2
0014 0000          321     .data 0x0
                   322     .dseg   eventq_data
0014               323     .align 0x2
                   324 _qUrgentSize:
0014               325     .bss 0x2
                   326 ; qUrgentSize size 2
                   327 ; int maxEventHandler(char *cmdStr)
                   328     .dbgseg dbg_syms
                   329 DBG3:
0028 00000000      330     .long 0x0
002c 00000078      331     .long DBG10
0030 00000000      332     .long _maxEventHandler
0034 00000044      333     .long 0x44
0038 01020001      334     .long 0x1020001
003c 00000050      335     .long DBG1
0040 00000004      336     .long DBG7-DBG8
0044 00000000      337     .long DBG9
0048 000000f0      338     .long DBG6
004c 00000000      339     .long 0x0
                   340     .pseg eventq_code
                   341 DBG8:
                   342     .dbgseg dbg_syms
                   343 DBG1:
0050 0066622e      344     .long 0x66622e
0054 00000000      345     .long 0x0
0058 00000000      346     .long DBG8
005c 00000000      347     .long 0x0
0060 01650001      348     .long 0x1650001
0064 00000000      349     .long 0x0
0068 00000027      350     .long 0x27
006c 00000000      351     .long 0x0
0070 00000118      352     .long DBG11
0074 00000000      353     .long 0x0
                   354     .dbgseg dbg_line
0000               355     .align 0x2
                   356 DBG9:
0000 00000028      357     .long DBG3
0004 00000000      358     .long 0x0
0008 00000000      359     .long _maxEventHandler
000c 00000001      360     .long 0x1
0010 00000000      361     .long DBG13
0014 00000002      362     .long 0x2
0018 00000000      363     .long DBG14
001c 00000009      364     .long 0x9
0020 00000002      365     .long DBG15
0024 0000000a      366     .long 0xa
                   367     .pseg eventq_code
                   368     .global _maxEventHandler
                   369 _maxEventHandler:
                   370 ; ENTRY
                   371 DBG12:
                   372 ; {
                   373 DBG13:
                   374 ;   return 0;
                   375 DBG14:
0000 0c43          376     mov #0x0,r12
                   377 DBG16:
                   378 DBG15:
                   379 ; EXIT
0002 3041          380     ret
                   381     .dbgseg dbg_syms
0078 00000000      382     .long 0x0
007c 0000005c      383     .long DBG17
0080 00000000      384     .long 0x0
0084 00000000      385     .long 0x0
0088 00010002      386     .long 0x10002
008c 00000000      387     .long 0x0
0090 0000019c      388     .long DBG18
0094 00000002      389     .long 0x2
0098 00000000      390     .long 0x0
009c 00010002      391     .long 0x10002
00a0 504e5f5f      392     .long 0x504e5f5f
00a4 534d5241      393     .long 0x534d5241
00a8 00000000      394     .long 0x0
00ac 00000000      395     .long 0x0
00b0 00010002      396     .long 0x10002
00b4 0066652e      397     .long 0x66652e
00b8 00000000      398     .long 0x0
00bc 00000002      399     .long DBG16
00c0 00000000      400     .long 0x0
00c4 01650001      401     .long 0x1650001
00c8 00000000      402     .long 0x0
00cc 00000030      403     .long 0x30
00d0 00000000      404     .long 0x0
00d4 00000000      405     .long 0x0
00d8 00000000      406     .long 0x0
                   407     .pseg eventq_code
                   408 DBG7:
                   409     .dbgseg dbg_syms
00dc 00000000      410     .long 0x0
00e0 00000078      411     .long DBG10
00e4 00000004      412     .long DBG7
00e8 00000000      413     .long 0x0
00ec 00ff0001      414     .long 0xff0001
                   415 ; }
                   416 ; ****** Warning: Symbol ``cmdStr'' (function maxEventHandler) was defined, but not used
                   417 ; int eventqInit(void) 
                   418 DBG6:
00f0 00000000      419     .long 0x0
00f4 000000a8      420     .long DBG23
00f8 00000004      421     .long _eventqInit
00fc 00000044      422     .long 0x44
0100 01020001      423     .long 0x1020001
0104 00000118      424     .long DBG11
0108 00000050      425     .long DBG20-DBG21
010c 00000028      426     .long DBG22
0110 0000021c      427     .long DBG19
0114 00000000      428     .long 0x0
                   429     .pseg eventq_code
                   430 DBG21:
                   431     .dbgseg dbg_syms
                   432 DBG11:
0118 0066622e      433     .long 0x66622e
011c 00000000      434     .long 0x0
0120 00000004      435     .long DBG21
0124 00000000      436     .long 0x0
0128 01650001      437     .long 0x1650001
012c 00000000      438     .long 0x0
0130 00000032      439     .long 0x32
0134 00000000      440     .long 0x0
0138 00000244      441     .long DBG24
013c 00000000      442     .long 0x0
                   443     .dbgseg dbg_line
                   444 DBG22:
0028 000000f0      445     .long DBG6
002c 00000000      446     .long 0x0
0030 00000004      447     .long _eventqInit
0034 00000001      448     .long 0x1
0038 00000004      449     .long DBG26
003c 00000002      450     .long 0x2
0040 00000004      451     .long DBG27
0044 00000005      452     .long 0x5
0048 00000006      453     .long DBG28
004c 00000006      454     .long 0x6
0050 0000001a      455     .long DBG29
0054 00000008      456     .long 0x8
0058 0000001c      457     .long DBG30
005c 00000009      458     .long 0x9
0060 0000002e      459     .long DBG31
0064 0000000b      460     .long 0xb
0068 00000030      461     .long DBG32
006c 0000000c      462     .long 0xc
0070 00000040      463     .long DBG33
0074 0000000e      464     .long 0xe
0078 00000050      465     .long DBG34
007c 0000000f      466     .long 0xf
0080 00000052      467     .long DBG35
0084 00000010      468     .long 0x10
                   469     .pseg eventq_code
                   470     .global _eventqInit
                   471 _eventqInit:
                   472 ; ENTRY
                   473 DBG25:
                   474 ; i in reg  size 2
                   475 ; {
                   476 DBG26:
                   477 ;   int i;
                   478 ;   for (i=0; i< (12) ; i++)
                   479 DBG27:
0004 0c43          480     mov #0x0,r12
                   481 eventqInit_L1:
                   482 ;     eventFuncs[i] = ((void *) 0) ;
                   483 DBG28:
0006 0d4c          484     mov r12,r13
0008 0d5d          485     rla r13
000a 3d502200      486     add #_eventFuncs,r13
000e 8d430000      487     mov #0x0,0(r13)
0012 1c53          488     add #0x1,r12
0014 3c900c00      489     cmp #0xc,r12
0018 f63b          490     jl  eventqInit_L1
                   491 DBG29:
                   492 ;   for (i=0; i< (32) ; i++)
001a 0c43          493     mov #0x0,r12
                   494 eventqInit_L2:
                   495 ;     eventQueue[i] = 0;
                   496 DBG30:
001c 0d4c          497     mov r12,r13
001e 3d500000      498     add #_eventQueue,r13
0022 cd430000      499     mov.b   #0x0,0(r13)
0026 1c53          500     add #0x1,r12
0028 3c902000      501     cmp #0x20,r12
002c f73b          502     jl  eventqInit_L2
                   503 DBG31:
                   504 ;   for (i=0; i< (1) ; i++)
002e 0c43          505     mov #0x0,r12
                   506 eventqInit_L3:
                   507 ;     urgentEventQueue[i] = 0;
                   508 DBG32:
0030 0d4c          509     mov r12,r13
0032 3d502000      510     add #_urgentEventQueue,r13
0036 cd430000      511     mov.b   #0x0,0(r13)
003a 1c53          512     add #0x1,r12
003c 1c93          513     cmp #0x1,r12
003e f83b          514     jl  eventqInit_L3
                   515 DBG33:
                   516 ;   cmdparseAddCommand("show","eventq",maxEventHandler);
0040 3e400000      517     mov #_maxEventHandler,r14
0044 3d400500      518     mov #eventq_V7,r13
0048 3c400000      519     mov #eventq_V6,r12
004c b0120000      520     call    #_cmdparseAddCommand
                   521 DBG34:
                   522 ;   return 0;
0050 0c43          523     mov #0x0,r12
                   524 DBG36:
                   525 DBG35:
                   526 ; EXIT
0052 3041          527     ret
                   528     .dbgseg dbg_syms
0140 00000000      529     .long 0x0
0144 0000005c      530     .long DBG17
0148 00000000      531     .long 0x0
014c 00000000      532     .long 0x0
0150 00010002      533     .long 0x10002
0154 00000000      534     .long 0x0
0158 0000019c      535     .long DBG18
015c 00000002      536     .long 0x2
0160 00000000      537     .long 0x0
0164 00010002      538     .long 0x10002
0168 504e5f5f      539     .long 0x504e5f5f
016c 534d5241      540     .long 0x534d5241
0170 00000000      541     .long 0x0
0174 00000000      542     .long 0x0
0178 00010002      543     .long 0x10002
                   544 DBG2:
017c 0062622e      545     .long 0x62622e
0180 00000000      546     .long 0x0
0184 00000006      547     .long DBG28
0188 00000000      548     .long 0x0
018c 01640001      549     .long 0x1640001
0190 00000000      550     .long 0x0
0194 00000006      551     .long 0x6
0198 00000000      552     .long 0x0
019c 000003ac      553     .long DBG37
01a0 00000000      554     .long 0x0
01a4 00000069      555     .long 0x69
01a8 00000000      556     .long 0x0
01ac 000c0102      557     .long 0xc0102
01b0 00000004      558     .long 0x4
01b4 0004ffff      559     .long 0x4ffff
01b8 0062652e      560     .long 0x62652e
01bc 00000000      561     .long 0x0
01c0 00000050      562     .long DBG34
01c4 00000000      563     .long 0x0
01c8 01640001      564     .long 0x1640001
01cc 00000000      565     .long 0x0
01d0 0000000f      566     .long 0xf
01d4 00000000      567     .long 0x0
01d8 00000000      568     .long 0x0
01dc 00000000      569     .long 0x0
01e0 0066652e      570     .long 0x66652e
01e4 00000000      571     .long 0x0
01e8 00000052      572     .long DBG36
01ec 00000000      573     .long 0x0
01f0 01650001      574     .long 0x1650001
01f4 00000000      575     .long 0x0
01f8 00000041      576     .long 0x41
01fc 00000000      577     .long 0x0
0200 00000000      578     .long 0x0
0204 00000000      579     .long 0x0
                   580     .pseg eventq_code
                   581 DBG20:
                   582     .dbgseg dbg_syms
0208 00000000      583     .long 0x0
020c 000000a8      584     .long DBG23
0210 00000054      585     .long DBG20
0214 00000000      586     .long 0x0
0218 00ff0001      587     .long 0xff0001
                   588 ; }
                   589 ; void eventqPut(int addEvent)
                   590 DBG19:
021c 00000000      591     .long 0x0
0220 000000d4      592     .long DBG42
0224 00000054      593     .long _eventqPut
0228 00000040      594     .long 0x40
022c 01020001      595     .long 0x1020001
0230 00000244      596     .long DBG24
0234 00000046      597     .long DBG39-DBG40
0238 00000088      598     .long DBG41
023c 0000030c      599     .long DBG38
0240 00000000      600     .long 0x0
                   601     .pseg eventq_code
                   602 DBG40:
                   603     .dbgseg dbg_syms
                   604 DBG24:
0244 0066622e      605     .long 0x66622e
0248 00000000      606     .long 0x0
024c 00000054      607     .long DBG40
0250 00000000      608     .long 0x0
0254 01650001      609     .long 0x1650001
0258 00000000      610     .long 0x0
025c 00000043      611     .long 0x43
0260 00000000      612     .long 0x0
0264 00000334      613     .long DBG43
0268 00000000      614     .long 0x0
                   615     .dbgseg dbg_line
                   616 DBG41:
0088 0000021c      617     .long DBG19
008c 00000000      618     .long 0x0
0090 00000054      619     .long _eventqPut
0094 00000001      620     .long 0x1
0098 00000054      621     .long DBG45
009c 00000002      622     .long 0x2
00a0 00000054      623     .long DBG46
00a4 00000003      624     .long 0x3
00a8 0000005c      625     .long DBG48
00ac 00000004      626     .long 0x4
00b0 00000060      627     .long DBG49
00b4 00000005      628     .long 0x5
00b8 00000062      629     .long DBG50
00bc 00000006      630     .long 0x6
00c0 00000062      631     .long DBG51
00c4 00000008      632     .long 0x8
00c8 00000064      633     .long DBG52
00cc 00000009      634     .long 0x9
00d0 00000072      635     .long DBG53
00d4 0000000a      636     .long 0xa
00d8 00000082      637     .long DBG54
00dc 0000000b      638     .long 0xb
00e0 0000008a      639     .long DBG55
00e4 0000000c      640     .long 0xc
00e8 0000008c      641     .long DBG56
00ec 0000000d      642     .long 0xd
00f0 00000092      643     .long DBG58
00f4 0000000e      644     .long 0xe
00f8 00000098      645     .long DBG59
00fc 0000000f      646     .long 0xf
0100 00000098      647     .long DBG60
0104 00000010      648     .long 0x10
                   649     .pseg eventq_code
                   650     .global _eventqPut
                   651 _eventqPut:
                   652 ; ENTRY
                   653 DBG44:
                   654 ; addEvent at argloc 0 (0x0) in reg  size 2
                   655 ; {
                   656 DBG45:
                   657 ;   if (qSize == (32) ) {
                   658 DBG46:
0054 b29020000e00  659     cmp #0x20,&_qSize
005a 0320          660     jne eventqPut_L1
                   661 DBG48:
                   662 DBG47:
                   663 ;     eventsDropped++;
005c 92530400      664     add #0x1,&_eventsDropped
                   665 DBG49:
                   666 ;     return;
0060 1b3c          667     jmp eventqPut_LL2
                   668 DBG51:
                   669 DBG50:
                   670 ;     }
                   671 eventqPut_L1:
                   672 ;   _DINT();
0062 32c2          673     dint
                   674 DBG52:
                   675 ;   eventQueue[qHead] = (unsigned char)addEvent;
0064 1e420a00      676     mov &_qHead,r14
0068 0d4e          677     mov r14,r13
006a 3d500000      678     add #_eventQueue,r13
006e cd4c0000      679     mov.b   r12,0(r13)
                   680 DBG53:
                   681 ;   ((qHead ==  ( (32) -1)) ? qHead= 0 : qHead++ ) ;
0072 3e901f00      682     cmp #0x1f,r14
0076 0320          683     jne eventqPut_LL3
0078 82430a00      684     mov #0x0,&_qHead
007c 023c          685     jmp eventqPut_LL4
                   686 eventqPut_LL3:
007e 92530a00      687     add #0x1,&_qHead
                   688 eventqPut_LL4:
                   689 ;   qSize++;
                   690 DBG54:
0082 92530e00      691     add #0x1,&_qSize
0086 1c420e00      692     mov &_qSize,r12
                   693 DBG55:
                   694 ;   _EINT();
008a 32d2          695     eint
                   696 DBG56:
                   697 ;   if (qSize > maxEvents) {
008c 829c0000      698     cmp r12,&_maxEvents
0090 032c          699     jc  eventqPut_L2
                   700 DBG58:
                   701 DBG57:
                   702 ;     maxEvents = qSize;
0092 92420e000000  703     mov &_qSize,&_maxEvents
                   704 DBG60:
                   705 DBG59:
                   706 ;     }
                   707 eventqPut_L2:
                   708 DBG61:
                   709 eventqPut_LL2:
                   710 ; EXIT
                   711 DBG62:
0098 3041          712     ret
                   713     .dbgseg dbg_syms
026c 00000000      714     .long 0x0
0270 0000005c      715     .long DBG17
0274 00000000      716     .long 0x0
0278 00000000      717     .long 0x0
027c 00010002      718     .long 0x10002
0280 00000000      719     .long 0x0
0284 0000019c      720     .long DBG18
0288 00000002      721     .long 0x2
028c 00000000      722     .long 0x0
0290 00010002      723     .long 0x10002
0294 504e5f5f      724     .long 0x504e5f5f
0298 534d5241      725     .long 0x534d5241
029c 00000001      726     .long 0x1
02a0 00000000      727     .long 0x0
02a4 00010002      728     .long 0x10002
02a8 00000000      729     .long 0x0
02ac 000001d0      730     .long DBG63
02b0 00000000      731     .long 0x0
02b4 00000000      732     .long 0x0
02b8 00010002      733     .long 0x10002
02bc 45646461      734     .long 0x45646461
02c0 746e6576      735     .long 0x746e6576
02c4 000c0102      736     .long 0xc0102
02c8 00000004      737     .long 0x4
02cc 0011ffff      738     .long 0x11ffff
02d0 0066652e      739     .long 0x66652e
02d4 00000000      740     .long 0x0
02d8 00000098      741     .long DBG62
02dc 00000000      742     .long 0x0
02e0 01650001      743     .long 0x1650001
02e4 00000000      744     .long 0x0
02e8 00000052      745     .long 0x52
02ec 00000000      746     .long 0x0
02f0 00000000      747     .long 0x0
02f4 00000000      748     .long 0x0
                   749     .pseg eventq_code
                   750 DBG39:
                   751     .dbgseg dbg_syms
02f8 00000000      752     .long 0x0
02fc 000000d4      753     .long DBG42
0300 0000009a      754     .long DBG39
0304 00000000      755     .long 0x0
0308 00ff0001      756     .long 0xff0001
                   757 ; }
                   758 ; void eventqUrgentPut(int addUrgentEvent)
                   759 DBG38:
030c 00000000      760     .long 0x0
0310 0000003c      761     .long DBG68
0314 0000009a      762     .long _eventqUrgentPut
0318 00000040      763     .long 0x40
031c 01020001      764     .long 0x1020001
0320 00000334      765     .long DBG43
0324 00000046      766     .long DBG65-DBG66
0328 00000108      767     .long DBG67
032c 000004b0      768     .long DBG64
0330 00000000      769     .long 0x0
                   770     .pseg eventq_code
                   771 DBG66:
                   772     .dbgseg dbg_syms
                   773 DBG43:
0334 0066622e      774     .long 0x66622e
0338 00000000      775     .long 0x0
033c 0000009a      776     .long DBG66
0340 00000000      777     .long 0x0
0344 01650001      778     .long 0x1650001
0348 00000000      779     .long 0x0
034c 00000054      780     .long 0x54
0350 00000000      781     .long 0x0
0354 000004d8      782     .long DBG69
0358 00000000      783     .long 0x0
                   784     .dbgseg dbg_line
                   785 DBG67:
0108 0000030c      786     .long DBG38
010c 00000000      787     .long 0x0
0110 0000009a      788     .long _eventqUrgentPut
0114 00000001      789     .long 0x1
0118 0000009a      790     .long DBG71
011c 00000002      791     .long 0x2
0120 0000009a      792     .long DBG72
0124 00000003      793     .long 0x3
0128 000000a0      794     .long DBG74
012c 00000004      795     .long 0x4
0130 000000a4      796     .long DBG75
0134 00000005      797     .long 0x5
0138 000000a8      798     .long DBG76
013c 00000006      799     .long 0x6
0140 000000aa      800     .long DBG77
0144 00000007      801     .long 0x7
0148 000000aa      802     .long DBG78
014c 00000009      803     .long 0x9
0150 000000ac      804     .long DBG79
0154 0000000a      805     .long 0xa
0158 000000ba      806     .long DBG80
015c 0000000b      807     .long 0xb
0160 000000c8      808     .long DBG81
0164 0000000c      809     .long 0xc
0168 000000d0      810     .long DBG82
016c 0000000d      811     .long 0xd
0170 000000d2      812     .long DBG83
0174 0000000e      813     .long 0xe
0178 000000d8      814     .long DBG85
017c 0000000f      815     .long 0xf
0180 000000de      816     .long DBG86
0184 00000010      817     .long 0x10
0188 000000de      818     .long DBG87
018c 00000011      819     .long 0x11
                   820     .pseg eventq_code
                   821     .global _eventqUrgentPut
                   822 _eventqUrgentPut:
                   823 ; ENTRY
                   824 DBG70:
                   825 ; addUrgentEvent at argloc 0 (0x0) in reg  size 2
                   826 ; {
                   827 DBG71:
                   828 ;   if (qUrgentSize == (1) ) {
                   829 DBG72:
009a 92931400      830     cmp #0x1,&_qUrgentSize
009e 0520          831     jne eventqUrgentPut_L1
                   832 DBG74:
                   833 DBG73:
                   834 ;     eventqPut(addUrgentEvent); 
00a0 b0125400      835     call    #_eventqPut
                   836 DBG75:
                   837 ;     urgentEventsDropped++;
00a4 92530600      838     add #0x1,&_urgentEventsDropped
                   839 DBG76:
                   840 ;     return;
00a8 1a3c          841     jmp eventqUrgentPut_LL2
                   842 DBG78:
                   843 DBG77:
                   844 ;     }
                   845 eventqUrgentPut_L1:
                   846 ;   _DINT();
00aa 32c2          847     dint
                   848 DBG79:
                   849 ;   urgentEventQueue[qUrgentHead] = (unsigned char)addUrgentEvent;
00ac 1e421000      850     mov &_qUrgentHead,r14
00b0 0d4e          851     mov r14,r13
00b2 3d502000      852     add #_urgentEventQueue,r13
00b6 cd4c0000      853     mov.b   r12,0(r13)
                   854 DBG80:
                   855 ;   ((qUrgentHead ==  ( (1) -1)) ? qUrgentHead= 0 : qUrgentHead++ ) ;
00ba 0e93          856     cmp #0x0,r14
00bc 0320          857     jne eventqUrgentPut_LL3
00be 82431000      858     mov #0x0,&_qUrgentHead
00c2 023c          859     jmp eventqUrgentPut_LL4
                   860 eventqUrgentPut_LL3:
00c4 92531000      861     add #0x1,&_qUrgentHead
                   862 eventqUrgentPut_LL4:
                   863 ;   qUrgentSize++;
                   864 DBG81:
00c8 92531400      865     add #0x1,&_qUrgentSize
00cc 1c421400      866     mov &_qUrgentSize,r12
                   867 DBG82:
                   868 ;   _EINT();
00d0 32d2          869     eint
                   870 DBG83:
                   871 ;   if (qUrgentSize > maxUrgentEvents) {
00d2 829c0200      872     cmp r12,&_maxUrgentEvents
00d6 032c          873     jc  eventqUrgentPut_L2
                   874 DBG85:
                   875 DBG84:
                   876 ;     maxUrgentEvents = qUrgentSize;
00d8 924214000200  877     mov &_qUrgentSize,&_maxUrgentEvents
                   878 DBG87:
                   879 DBG86:
                   880 ;     }    
                   881 eventqUrgentPut_L2:
                   882 DBG88:
                   883 eventqUrgentPut_LL2:
                   884 ; EXIT
                   885 DBG89:
00de 3041          886     ret
                   887     .dbgseg dbg_syms
035c 00000000      888     .long 0x0
0360 0000005c      889     .long DBG17
0364 00000000      890     .long 0x0
0368 00000000      891     .long 0x0
036c 00010002      892     .long 0x10002
0370 00000000      893     .long 0x0
0374 0000019c      894     .long DBG18
0378 00000002      895     .long 0x2
037c 00000000      896     .long 0x0
0380 00010002      897     .long 0x10002
0384 504e5f5f      898     .long 0x504e5f5f
0388 534d5241      899     .long 0x534d5241
038c 00000001      900     .long 0x1
0390 00000000      901     .long 0x0
0394 00010002      902     .long 0x10002
0398 00000000      903     .long 0x0
039c 00000110      904     .long DBG90
03a0 00000000      905     .long 0x0
03a4 00000000      906     .long 0x0
03a8 00010002      907     .long 0x10002
                   908 DBG37:
03ac 0062622e      909     .long 0x62622e
03b0 00000000      910     .long 0x0
03b4 0000009a      911     .long DBG70
03b8 00000000      912     .long 0x0
03bc 01640001      913     .long 0x1640001
03c0 00000000      914     .long 0x0
03c4 00000001      915     .long 0x1
03c8 00000000      916     .long 0x0
03cc 00000410      917     .long DBG91
03d0 00000000      918     .long 0x0
03d4 00000000      919     .long 0x0
03d8 00000014      920     .long DBG92
03dc 000c0102      921     .long 0xc0102
03e0 00000004      922     .long 0x4
03e4 0011ffff      923     .long 0x11ffff
03e8 0062652e      924     .long 0x62652e
03ec 00000000      925     .long 0x0
03f0 000000a4      926     .long DBG75
03f4 00000000      927     .long 0x0
03f8 01640001      928     .long 0x1640001
03fc 00000000      929     .long 0x0
0400 00000005      930     .long 0x5
0404 00000000      931     .long 0x0
0408 00000000      932     .long 0x0
040c 00000000      933     .long 0x0
                   934 DBG91:
0410 0062622e      935     .long 0x62622e
0414 00000000      936     .long 0x0
0418 000000ba      937     .long DBG80
041c 00000000      938     .long 0x0
0420 01640001      939     .long 0x1640001
0424 00000000      940     .long 0x0
0428 0000000b      941     .long 0xb
042c 00000000      942     .long 0x0
0430 0000053c      943     .long DBG93
0434 00000000      944     .long 0x0
0438 00000000      945     .long 0x0
043c 00000014      946     .long DBG92
0440 000c0102      947     .long 0xc0102
0444 00000004      948     .long 0x4
0448 0011ffff      949     .long 0x11ffff
044c 0062652e      950     .long 0x62652e
0450 00000000      951     .long 0x0
0454 000000d0      952     .long DBG82
0458 00000000      953     .long 0x0
045c 01640001      954     .long 0x1640001
0460 00000000      955     .long 0x0
0464 0000000d      956     .long 0xd
0468 00000000      957     .long 0x0
046c 00000000      958     .long 0x0
0470 00000000      959     .long 0x0
0474 0066652e      960     .long 0x66652e
0478 00000000      961     .long 0x0
047c 000000de      962     .long DBG89
0480 00000000      963     .long 0x0
0484 01650001      964     .long 0x1650001
0488 00000000      965     .long 0x0
048c 00000064      966     .long 0x64
0490 00000000      967     .long 0x0
0494 00000000      968     .long 0x0
0498 00000000      969     .long 0x0
                   970     .pseg eventq_code
                   971 DBG65:
                   972     .dbgseg dbg_syms
049c 00000000      973     .long 0x0
04a0 0000003c      974     .long DBG68
04a4 000000e0      975     .long DBG65
04a8 00000000      976     .long 0x0
04ac 00ff0001      977     .long 0xff0001
                   978 ; }
                   979 ; #pragma  inline
                   980 ; int eventqGet(void)
                   981 DBG64:
04b0 00000000      982     .long 0x0
04b4 00000158      983     .long DBG98
04b8 000000e0      984     .long _eventqGet
04bc 00000044      985     .long 0x44
04c0 01020001      986     .long 0x1020001
04c4 000004d8      987     .long DBG69
04c8 0000005a      988     .long DBG95-DBG96
04cc 00000190      989     .long DBG97
04d0 00000708      990     .long DBG94
04d4 00000000      991     .long 0x0
                   992     .pseg eventq_code
                   993 DBG96:
                   994     .dbgseg dbg_syms
                   995 DBG69:
04d8 0066622e      996     .long 0x66622e
04dc 00000000      997     .long 0x0
04e0 000000e0      998     .long DBG96
04e4 00000000      999     .long 0x0
04e8 01650001     1000     .long 0x1650001
04ec 00000000     1001     .long 0x0
04f0 00000067     1002     .long 0x67
04f4 00000000     1003     .long 0x0
04f8 00000730     1004     .long DBG99
04fc 00000000     1005     .long 0x0
                  1006     .dbgseg dbg_line
                  1007 DBG97:
0190 000004b0     1008     .long DBG64
0194 00000000     1009     .long 0x0
0198 000000e0     1010     .long _eventqGet
019c 00000001     1011     .long 0x1
01a0 000000e0     1012     .long DBG101
01a4 00000002     1013     .long 0x2
01a8 000000e0     1014     .long DBG102
01ac 00000003     1015     .long 0x3
01b0 000000e2     1016     .long DBG103
01b4 00000005     1017     .long 0x5
01b8 000000ea     1018     .long DBG105
01bc 00000006     1019     .long 0x6
01c0 000000f2     1020     .long DBG106
01c4 00000007     1021     .long 0x7
01c8 00000100     1022     .long DBG107
01cc 00000008     1023     .long 0x8
01d0 00000102     1024     .long DBG108
01d4 00000009     1025     .long 0x9
01d8 00000106     1026     .long DBG109
01dc 0000000a     1027     .long 0xa
01e0 00000108     1028     .long DBG110
01e4 0000000b     1029     .long 0xb
01e8 00000108     1030     .long DBG111
01ec 0000000c     1031     .long 0xc
01f0 00000112     1032     .long DBG113
01f4 0000000d     1033     .long 0xd
01f8 0000011a     1034     .long DBG114
01fc 0000000e     1035     .long 0xe
0200 0000012a     1036     .long DBG115
0204 0000000f     1037     .long 0xf
0208 0000012c     1038     .long DBG116
020c 00000010     1039     .long 0x10
0210 00000130     1040     .long DBG117
0214 00000011     1041     .long 0x11
0218 00000132     1042     .long DBG118
021c 00000012     1043     .long 0x12
0220 00000132     1044     .long DBG119
0224 00000013     1045     .long 0x13
0228 00000134     1046     .long DBG121
022c 00000014     1047     .long 0x14
0230 00000138     1048     .long DBG122
0234 00000015     1049     .long 0x15
0238 00000138     1050     .long DBG123
023c 00000017     1051     .long 0x17
0240 00000138     1052     .long DBG124
0244 00000018     1053     .long 0x18
                  1054     .pseg eventq_code
                  1055     .global _eventqGet
                  1056 _eventqGet:
                  1057 ; ENTRY
                  1058 DBG100:
                  1059 ; retVal in reg  size 2
                  1060 ; {
                  1061 DBG101:
                  1062 ;   int retVal = -1;
                  1063 DBG102:
00e0 3d43         1064     mov #-0x1,r13
                  1065 DBG103:
                  1066 ;   if (qUrgentSize > 0) {
00e2 0c43         1067     mov #0x0,r12
00e4 1c921400     1068     cmp &_qUrgentSize,r12
00e8 1034         1069     jge eventqGet_L1
                  1070 DBG105:
                  1071 DBG104:
                  1072 ;     retVal = (int)urgentEventQueue[qUrgentTail];
00ea 1d421200     1073     mov &_qUrgentTail,r13
00ee 5c4d2000     1074     mov.b   _urgentEventQueue(r13),r12
                  1075 DBG106:
                  1076 ;     ((qUrgentTail ==  ( (1) -1)) ? qUrgentTail= 0 : qUrgentTail++ ) ;
00f2 0d93         1077     cmp #0x0,r13
00f4 0320         1078     jne eventqGet_LL2
00f6 82431200     1079     mov #0x0,&_qUrgentTail
00fa 023c         1080     jmp eventqGet_LL3
                  1081 eventqGet_LL2:
00fc 92531200     1082     add #0x1,&_qUrgentTail
                  1083 eventqGet_LL3:
                  1084 ;     _DINT();
                  1085 DBG107:
0100 32c2         1086     dint
                  1087 DBG108:
                  1088 ;     qUrgentSize--;
0102 92831400     1089     sub #0x1,&_qUrgentSize
                  1090 DBG109:
                  1091 ;     _EINT();
0106 32d2         1092     eint
                  1093 DBG111:
                  1094 DBG110:
                  1095 ;     }
0108 173c         1096     jmp eventqGet_L2
                  1097 eventqGet_L1:
                  1098 ;   else if (qSize > 0) {
010a 0c43         1099     mov #0x0,r12
010c 1c920e00     1100     cmp &_qSize,r12
0110 1134         1101     jge eventqGet_L3
                  1102 DBG113:
                  1103 DBG112:
                  1104 ;     retVal = (int)eventQueue[qTail];
0112 1d420c00     1105     mov &_qTail,r13
0116 5c4d0000     1106     mov.b   _eventQueue(r13),r12
                  1107 DBG114:
                  1108 ;     ((qTail ==  ( (32) -1)) ? qTail= 0 : qTail++ ) ;
011a 3d901f00     1109     cmp #0x1f,r13
011e 0320         1110     jne eventqGet_LL4
0120 82430c00     1111     mov #0x0,&_qTail
0124 023c         1112     jmp eventqGet_LL5
                  1113 eventqGet_LL4:
0126 92530c00     1114     add #0x1,&_qTail
                  1115 eventqGet_LL5:
                  1116 ;     _DINT();
                  1117 DBG115:
012a 32c2         1118     dint
                  1119 DBG116:
                  1120 ;     qSize--;
012c 92830e00     1121     sub #0x1,&_qSize
                  1122 DBG117:
                  1123 ;     _EINT();
0130 32d2         1124     eint
                  1125 DBG119:
                  1126 DBG118:
                  1127 ;     }
0132 023c         1128     jmp eventqGet_L4
                  1129 eventqGet_L3:
                  1130 ;   else {
                  1131 DBG120:
                  1132 ;     return retVal;
                  1133 DBG121:
0134 0c4d         1134     mov r13,r12
0136 003c         1135     jmp eventqGet_LL6
                  1136 DBG122:
                  1137 eventqGet_L4:
                  1138 eventqGet_L2:
                  1139 ;     }
                  1140 ;   return retVal;
                  1141 DBG123:
                  1142 DBG124:
                  1143 eventqGet_LL6:
                  1144 ; EXIT
                  1145 DBG125:
0138 3041         1146     ret
                  1147     .dbgseg dbg_syms
0500 00000000     1148     .long 0x0
0504 0000005c     1149     .long DBG17
0508 00000000     1150     .long 0x0
050c 00000000     1151     .long 0x0
0510 00010002     1152     .long 0x10002
0514 00000000     1153     .long 0x0
0518 0000019c     1154     .long DBG18
051c 00000002     1155     .long 0x2
0520 00000000     1156     .long 0x0
0524 00010002     1157     .long 0x10002
0528 504e5f5f     1158     .long 0x504e5f5f
052c 534d5241     1159     .long 0x534d5241
0530 00000000     1160     .long 0x0
0534 00000000     1161     .long 0x0
0538 00010002     1162     .long 0x10002
                  1163 DBG93:
053c 0062622e     1164     .long 0x62622e
0540 00000000     1165     .long 0x0
0544 000000e2     1166     .long DBG103
0548 00000000     1167     .long 0x0
054c 01640001     1168     .long 0x1640001
0550 00000000     1169     .long 0x0
0554 00000005     1170     .long 0x5
0558 00000000     1171     .long 0x0
055c 000005a0     1172     .long DBG126
0560 00000000     1173     .long 0x0
0564 56746572     1174     .long 0x56746572
0568 00006c61     1175     .long 0x6c61
056c 000d0102     1176     .long 0xd0102
0570 00000004     1177     .long 0x4
0574 0004ffff     1178     .long 0x4ffff
0578 0062652e     1179     .long 0x62652e
057c 00000000     1180     .long 0x0
0580 000000f2     1181     .long DBG106
0584 00000000     1182     .long 0x0
0588 01640001     1183     .long 0x1640001
058c 00000000     1184     .long 0x0
0590 00000007     1185     .long 0x7
0594 00000000     1186     .long 0x0
0598 00000000     1187     .long 0x0
059c 00000000     1188     .long 0x0
                  1189 DBG126:
05a0 0062622e     1190     .long 0x62622e
05a4 00000000     1191     .long 0x0
05a8 000000f2     1192     .long DBG106
05ac 00000000     1193     .long 0x0
05b0 01640001     1194     .long 0x1640001
05b4 00000000     1195     .long 0x0
05b8 00000007     1196     .long 0x7
05bc 00000000     1197     .long 0x0
05c0 00000604     1198     .long DBG127
05c4 00000000     1199     .long 0x0
05c8 56746572     1200     .long 0x56746572
05cc 00006c61     1201     .long 0x6c61
05d0 000c0102     1202     .long 0xc0102
05d4 00000004     1203     .long 0x4
05d8 0004ffff     1204     .long 0x4ffff
05dc 0062652e     1205     .long 0x62652e
05e0 00000000     1206     .long 0x0
05e4 00000112     1207     .long DBG112
05e8 00000000     1208     .long 0x0
05ec 01640001     1209     .long 0x1640001
05f0 00000000     1210     .long 0x0
05f4 0000000c     1211     .long 0xc
05f8 00000000     1212     .long 0x0
05fc 00000000     1213     .long 0x0
0600 00000000     1214     .long 0x0
                  1215 DBG127:
0604 0062622e     1216     .long 0x62622e
0608 00000000     1217     .long 0x0
060c 0000011a     1218     .long DBG114
0610 00000000     1219     .long 0x0
0614 01640001     1220     .long 0x1640001
0618 00000000     1221     .long 0x0
061c 0000000e     1222     .long 0xe
0620 00000000     1223     .long 0x0
0624 00000668     1224     .long DBG128
0628 00000000     1225     .long 0x0
062c 56746572     1226     .long 0x56746572
0630 00006c61     1227     .long 0x6c61
0634 000c0102     1228     .long 0xc0102
0638 00000004     1229     .long 0x4
063c 0004ffff     1230     .long 0x4ffff
0640 0062652e     1231     .long 0x62652e
0644 00000000     1232     .long 0x0
0648 00000138     1233     .long DBG122
064c 00000000     1234     .long 0x0
0650 01640001     1235     .long 0x1640001
0654 00000000     1236     .long 0x0
0658 00000015     1237     .long 0x15
065c 00000000     1238     .long 0x0
0660 00000000     1239     .long 0x0
0664 00000000     1240     .long 0x0
                  1241 DBG128:
0668 0062622e     1242     .long 0x62622e
066c 00000000     1243     .long 0x0
0670 00000138     1244     .long DBG122
0674 00000000     1245     .long 0x0
0678 01640001     1246     .long 0x1640001
067c 00000000     1247     .long 0x0
0680 00000015     1248     .long 0x15
0684 00000000     1249     .long 0x0
0688 000007d0     1250     .long DBG129
068c 00000000     1251     .long 0x0
0690 56746572     1252     .long 0x56746572
0694 00006c61     1253     .long 0x6c61
0698 000c0102     1254     .long 0xc0102
069c 00000004     1255     .long 0x4
06a0 0004ffff     1256     .long 0x4ffff
06a4 0062652e     1257     .long 0x62652e
06a8 00000000     1258     .long 0x0
06ac 00000138     1259     .long DBG124
06b0 00000000     1260     .long 0x0
06b4 01640001     1261     .long 0x1640001
06b8 00000000     1262     .long 0x0
06bc 00000018     1263     .long 0x18
06c0 00000000     1264     .long 0x0
06c4 00000000     1265     .long 0x0
06c8 00000000     1266     .long 0x0
06cc 0066652e     1267     .long 0x66652e
06d0 00000000     1268     .long 0x0
06d4 00000138     1269     .long DBG125
06d8 00000000     1270     .long 0x0
06dc 01650001     1271     .long 0x1650001
06e0 00000000     1272     .long 0x0
06e4 0000007e     1273     .long 0x7e
06e8 00000000     1274     .long 0x0
06ec 00000000     1275     .long 0x0
06f0 00000000     1276     .long 0x0
                  1277     .pseg eventq_code
                  1278 DBG95:
                  1279     .dbgseg dbg_syms
06f4 00000000     1280     .long 0x0
06f8 00000158     1281     .long DBG98
06fc 0000013a     1282     .long DBG95
0700 00000000     1283     .long 0x0
0704 00ff0001     1284     .long 0xff0001
                  1285 ; }
                  1286 ; int eventqRegisterHandler(int evType, eventHandler handler)
                  1287 DBG94:
0708 00000000     1288     .long 0x0
070c 00000170     1289     .long DBG134
0710 0000013a     1290     .long _eventqRegisterHandler
0714 00000044     1291     .long 0x44
0718 01020001     1292     .long 0x1020001
071c 00000730     1293     .long DBG99
0720 0000001c     1294     .long DBG131-DBG132
0724 00000248     1295     .long DBG133
0728 00000870     1296     .long DBG130
072c 00000000     1297     .long 0x0
                  1298     .pseg eventq_code
                  1299 DBG132:
                  1300     .dbgseg dbg_syms
                  1301 DBG99:
0730 0066622e     1302     .long 0x66622e
0734 00000000     1303     .long 0x0
0738 0000013a     1304     .long DBG132
073c 00000000     1305     .long 0x0
0740 01650001     1306     .long 0x1650001
0744 00000000     1307     .long 0x0
0748 00000080     1308     .long 0x80
074c 00000000     1309     .long 0x0
0750 00000898     1310     .long DBG135
0754 00000000     1311     .long 0x0
                  1312     .dbgseg dbg_line
                  1313 DBG133:
0248 00000708     1314     .long DBG94
024c 00000000     1315     .long 0x0
0250 0000013a     1316     .long _eventqRegisterHandler
0254 00000001     1317     .long 0x1
0258 0000013a     1318     .long DBG137
025c 00000002     1319     .long 0x2
0260 0000013a     1320     .long DBG138
0264 00000003     1321     .long 0x3
0268 00000144     1322     .long DBG139
026c 00000004     1323     .long 0x4
0270 00000148     1324     .long DBG140
0274 00000006     1325     .long 0x6
0278 00000152     1326     .long DBG141
027c 00000008     1327     .long 0x8
0280 00000154     1328     .long DBG142
0284 00000009     1329     .long 0x9
                  1330     .pseg eventq_code
                  1331     .global _eventqRegisterHandler
                  1332 _eventqRegisterHandler:
                  1333 ; ENTRY
                  1334 DBG136:
                  1335 ; evType at argloc 0 (0x0) in reg  size 2
                  1336 ; handler at argloc 0 (0x0) in reg  size 2
                  1337 ; {
                  1338 DBG137:
                  1339 ;   if ((evType < 0) || (evType >= (12) ))
                  1340 DBG138:
013a 0c93         1341     cmp #0x0,r12
013c 0338         1342     jl  eventqRegisterHandler_L2
013e 3c900c00     1343     cmp #0xc,r12
0142 0238         1344     jl  eventqRegisterHandler_L1
                  1345 eventqRegisterHandler_L2:
                  1346 ;     return -1;
                  1347 DBG139:
0144 3c43         1348     mov #-0x1,r12
0146 063c         1349     jmp eventqRegisterHandler_LL2
                  1350 DBG140:
                  1351 eventqRegisterHandler_L1:
                  1352 ;   eventFuncs[evType] = handler;
0148 0c5c         1353     rla r12
014a 3c502200     1354     add #_eventFuncs,r12
014e 8c4d0000     1355     mov r13,0(r12)
                  1356 DBG141:
                  1357 ;   return 0;
0152 0c43         1358     mov #0x0,r12
                  1359 DBG142:
                  1360 eventqRegisterHandler_LL2:
                  1361 ; EXIT
                  1362 DBG143:
0154 3041         1363     ret
                  1364     .dbgseg dbg_syms
0758 00000000     1365     .long 0x0
075c 0000005c     1366     .long DBG17
0760 00000000     1367     .long 0x0
0764 00000000     1368     .long 0x0
0768 00010002     1369     .long 0x10002
076c 00000000     1370     .long 0x0
0770 0000019c     1371     .long DBG18
0774 00000002     1372     .long 0x2
0778 00000000     1373     .long 0x0
077c 00010002     1374     .long 0x10002
0780 504e5f5f     1375     .long 0x504e5f5f
0784 534d5241     1376     .long 0x534d5241
0788 00000002     1377     .long 0x2
078c 00000000     1378     .long 0x0
0790 00010002     1379     .long 0x10002
0794 00000000     1380     .long 0x0
0798 000000b4     1381     .long DBG144
079c 00000000     1382     .long 0x0
07a0 00000000     1383     .long 0x0
07a4 00010002     1384     .long 0x10002
07a8 00000000     1385     .long 0x0
07ac 000000c4     1386     .long DBG145
07b0 00000000     1387     .long 0x0
07b4 00000000     1388     .long 0x0
07b8 00010002     1389     .long 0x10002
07bc 646e6168     1390     .long 0x646e6168
07c0 0072656c     1391     .long 0x72656c
07c4 000d0102     1392     .long 0xd0102
07c8 000002a0     1393     .long 0x2a0
07cc 0011ffff     1394     .long 0x11ffff
                  1395 DBG129:
07d0 0062622e     1396     .long 0x62622e
07d4 00000000     1397     .long 0x0
07d8 0000013a     1398     .long DBG136
07dc 00000000     1399     .long 0x0
07e0 01640001     1400     .long 0x1640001
07e4 00000000     1401     .long 0x0
07e8 00000001     1402     .long 0x1
07ec 00000000     1403     .long 0x0
07f0 00000938     1404     .long DBG146
07f4 00000000     1405     .long 0x0
07f8 79547665     1406     .long 0x79547665
07fc 00006570     1407     .long 0x6570
0800 000c0102     1408     .long 0xc0102
0804 00000004     1409     .long 0x4
0808 0011ffff     1410     .long 0x11ffff
080c 0062652e     1411     .long 0x62652e
0810 00000000     1412     .long 0x0
0814 00000148     1413     .long DBG140
0818 00000000     1414     .long 0x0
081c 01640001     1415     .long 0x1640001
0820 00000000     1416     .long 0x0
0824 00000006     1417     .long 0x6
0828 00000000     1418     .long 0x0
082c 00000000     1419     .long 0x0
0830 00000000     1420     .long 0x0
0834 0066652e     1421     .long 0x66652e
0838 00000000     1422     .long 0x0
083c 00000154     1423     .long DBG143
0840 00000000     1424     .long 0x0
0844 01650001     1425     .long 0x1650001
0848 00000000     1426     .long 0x0
084c 00000088     1427     .long 0x88
0850 00000000     1428     .long 0x0
0854 00000000     1429     .long 0x0
0858 00000000     1430     .long 0x0
                  1431     .pseg eventq_code
                  1432 DBG131:
                  1433     .dbgseg dbg_syms
085c 00000000     1434     .long 0x0
0860 00000170     1435     .long DBG134
0864 00000156     1436     .long DBG131
0868 00000000     1437     .long 0x0
086c 00ff0001     1438     .long 0xff0001
                  1439 ; }
                  1440 ; int eventqGetHandler(int evType, eventHandler *pHandler)
                  1441 DBG130:
0870 00000000     1442     .long 0x0
0874 00000144     1443     .long DBG151
0878 00000156     1444     .long _eventqGetHandler
087c 00000044     1445     .long 0x44
0880 01020001     1446     .long 0x1020001
0884 00000898     1447     .long DBG135
0888 00000022     1448     .long DBG148-DBG149
088c 00000288     1449     .long DBG150
0890 000009d8     1450     .long DBG147
0894 00000000     1451     .long 0x0
                  1452     .pseg eventq_code
                  1453 DBG149:
                  1454     .dbgseg dbg_syms
                  1455 DBG135:
0898 0066622e     1456     .long 0x66622e
089c 00000000     1457     .long 0x0
08a0 00000156     1458     .long DBG149
08a4 00000000     1459     .long 0x0
08a8 01650001     1460     .long 0x1650001
08ac 00000000     1461     .long 0x0
08b0 0000008a     1462     .long 0x8a
08b4 00000000     1463     .long 0x0
08b8 00000a00     1464     .long DBG152
08bc 00000000     1465     .long 0x0
                  1466     .dbgseg dbg_line
                  1467 DBG150:
0288 00000870     1468     .long DBG130
028c 00000000     1469     .long 0x0
0290 00000156     1470     .long _eventqGetHandler
0294 00000001     1471     .long 0x1
0298 00000156     1472     .long DBG154
029c 00000002     1473     .long 0x2
02a0 00000156     1474     .long DBG155
02a4 00000003     1475     .long 0x3
02a8 00000160     1476     .long DBG156
02ac 00000004     1477     .long 0x4
02b0 00000164     1478     .long DBG157
02b4 00000006     1479     .long 0x6
02b8 00000168     1480     .long DBG158
02bc 00000007     1481     .long 0x7
02c0 0000016c     1482     .long DBG159
02c4 00000009     1483     .long 0x9
02c8 00000174     1484     .long DBG160
02cc 0000000b     1485     .long 0xb
02d0 00000176     1486     .long DBG161
02d4 0000000c     1487     .long 0xc
                  1488     .pseg eventq_code
                  1489     .global _eventqGetHandler
                  1490 _eventqGetHandler:
                  1491 ; ENTRY
                  1492 DBG153:
                  1493 ; evType at argloc 0 (0x0) in reg  size 2
                  1494 ; pHandler at argloc 0 (0x0) in reg  size 2
                  1495 ; {
                  1496 DBG154:
                  1497 ;   if ((evType < 0) || (evType >= (12) ))
                  1498 DBG155:
0156 0c93         1499     cmp #0x0,r12
0158 0338         1500     jl  eventqGetHandler_L2
015a 3c900c00     1501     cmp #0xc,r12
015e 0238         1502     jl  eventqGetHandler_L1
                  1503 eventqGetHandler_L2:
                  1504 ;     return -1;
                  1505 DBG156:
0160 3c43         1506     mov #-0x1,r12
0162 093c         1507     jmp eventqGetHandler_LL2
                  1508 DBG157:
                  1509 eventqGetHandler_L1:
                  1510 ;   if (pHandler == ((void *) 0) )
0164 0d93         1511     cmp #0x0,r13
0166 0220         1512     jne eventqGetHandler_L3
                  1513 DBG158:
                  1514 ;     return -1;
0168 3c43         1515     mov #-0x1,r12
016a 053c         1516     jmp eventqGetHandler_LL2
                  1517 DBG159:
                  1518 eventqGetHandler_L3:
                  1519 ;   *pHandler = eventFuncs[evType];
016c 0c5c         1520     rla r12
016e 9d4c22000000 1521     mov _eventFuncs(r12),0(r13)
                  1522 DBG160:
                  1523 ;   return 0;
0174 0c43         1524     mov #0x0,r12
                  1525 DBG161:
                  1526 eventqGetHandler_LL2:
                  1527 ; EXIT
                  1528 DBG162:
0176 3041         1529     ret
                  1530     .dbgseg dbg_syms
08c0 00000000     1531     .long 0x0
08c4 0000005c     1532     .long DBG17
08c8 00000000     1533     .long 0x0
08cc 00000000     1534     .long 0x0
08d0 00010002     1535     .long 0x10002
08d4 00000000     1536     .long 0x0
08d8 0000019c     1537     .long DBG18
08dc 00000002     1538     .long 0x2
08e0 00000000     1539     .long 0x0
08e4 00010002     1540     .long 0x10002
08e8 504e5f5f     1541     .long 0x504e5f5f
08ec 534d5241     1542     .long 0x534d5241
08f0 00000002     1543     .long 0x2
08f4 00000000     1544     .long 0x0
08f8 00010002     1545     .long 0x10002
08fc 00000000     1546     .long 0x0
0900 000000b4     1547     .long DBG144
0904 00000000     1548     .long 0x0
0908 00000000     1549     .long 0x0
090c 00010002     1550     .long 0x10002
0910 00000000     1551     .long 0x0
0914 00000200     1552     .long DBG163
0918 00000000     1553     .long 0x0
091c 00000000     1554     .long 0x0
0920 00010002     1555     .long 0x10002
0924 6e614870     1556     .long 0x6e614870
0928 72656c64     1557     .long 0x72656c64
092c 000d0102     1558     .long 0xd0102
0930 00001520     1559     .long 0x1520
0934 0011ffff     1560     .long 0x11ffff
                  1561 DBG146:
0938 0062622e     1562     .long 0x62622e
093c 00000000     1563     .long 0x0
0940 00000156     1564     .long DBG153
0944 00000000     1565     .long 0x0
0948 01640001     1566     .long 0x1640001
094c 00000000     1567     .long 0x0
0950 00000001     1568     .long 0x1
0954 00000000     1569     .long 0x0
0958 00000a64     1570     .long DBG164
095c 00000000     1571     .long 0x0
0960 79547665     1572     .long 0x79547665
0964 00006570     1573     .long 0x6570
0968 000c0102     1574     .long 0xc0102
096c 00000004     1575     .long 0x4
0970 0011ffff     1576     .long 0x11ffff
0974 0062652e     1577     .long 0x62652e
0978 00000000     1578     .long 0x0
097c 00000164     1579     .long DBG157
0980 00000000     1580     .long 0x0
0984 01640001     1581     .long 0x1640001
0988 00000000     1582     .long 0x0
098c 00000006     1583     .long 0x6
0990 00000000     1584     .long 0x0
0994 00000000     1585     .long 0x0
0998 00000000     1586     .long 0x0
099c 0066652e     1587     .long 0x66652e
09a0 00000000     1588     .long 0x0
09a4 00000176     1589     .long DBG162
09a8 00000000     1590     .long 0x0
09ac 01650001     1591     .long 0x1650001
09b0 00000000     1592     .long 0x0
09b4 00000095     1593     .long 0x95
09b8 00000000     1594     .long 0x0
09bc 00000000     1595     .long 0x0
09c0 00000000     1596     .long 0x0
                  1597     .pseg eventq_code
                  1598 DBG148:
                  1599     .dbgseg dbg_syms
09c4 00000000     1600     .long 0x0
09c8 00000144     1601     .long DBG151
09cc 00000178     1602     .long DBG148
09d0 00000000     1603     .long 0x0
09d4 00ff0001     1604     .long 0xff0001
                  1605 ; }
                  1606 ; void eventqProcessEvents(void)
                  1607 DBG147:
09d8 00000000     1608     .long 0x0
09dc 00000094     1609     .long DBG169
09e0 00000178     1610     .long _eventqProcessEvents
09e4 00000040     1611     .long 0x40
09e8 01020001     1612     .long 0x1020001
09ec 00000a00     1613     .long DBG152
09f0 00000044     1614     .long DBG166-DBG167
09f4 000002d8     1615     .long DBG168
09f8 00000bf4     1616     .long DBG165
09fc 00000000     1617     .long 0x0
                  1618     .pseg eventq_code
                  1619 DBG167:
                  1620     .dbgseg dbg_syms
                  1621 DBG152:
0a00 0066622e     1622     .long 0x66622e
0a04 00000000     1623     .long 0x0
0a08 00000178     1624     .long DBG167
0a0c 00000000     1625     .long 0x0
0a10 01650001     1626     .long 0x1650001
0a14 00000000     1627     .long 0x0
0a18 00000097     1628     .long 0x97
0a1c 00000000     1629     .long 0x0
0a20 00000bf4     1630     .long DBG170
0a24 00000000     1631     .long 0x0
                  1632     .dbgseg dbg_line
                  1633 DBG168:
02d8 000009d8     1634     .long DBG147
02dc 00000000     1635     .long 0x0
02e0 00000178     1636     .long _eventqProcessEvents
02e4 00000001     1637     .long 0x1
02e8 0000017a     1638     .long DBG172
02ec 00000002     1639     .long 0x2
02f0 0000017a     1640     .long DBG173
02f4 00000003     1641     .long 0x3
02f8 00000180     1642     .long DBG174
02fc 00000005     1643     .long 0x5
0300 00000184     1644     .long DBG176
0304 00000007     1645     .long 0x7
0308 0000018a     1646     .long DBG177
030c 0000000a     1647     .long 0xa
0310 00000198     1648     .long DBG179
0314 0000000b     1649     .long 0xb
0318 000001a2     1650     .long DBG181
031c 0000000c     1651     .long 0xc
0320 000001a4     1652     .long DBG182
0324 0000000d     1653     .long 0xd
0328 000001a4     1654     .long DBG183
032c 0000000e     1655     .long 0xe
0330 000001a4     1656     .long DBG185
0334 0000000f     1657     .long 0xf
0338 000001a6     1658     .long DBG187
033c 00000010     1659     .long 0x10
0340 000001aa     1660     .long DBG188
0344 00000011     1661     .long 0x11
0348 000001aa     1662     .long DBG189
034c 00000013     1663     .long 0x13
0350 000001b0     1664     .long DBG190
0354 00000014     1665     .long 0x14
0358 000001b2     1666     .long DBG191
035c 00000016     1667     .long 0x16
0360 000001b8     1668     .long DBG192
0364 00000019     1669     .long 0x19
                  1670     .pseg eventq_code
                  1671     .global _eventqProcessEvents
                  1672 _eventqProcessEvents:
0178 0412         1673     push    r4
                  1674 DBG173:
                  1675 DBG172:
                  1676 DBG171:
                  1677 ; ENTRY
                  1678 ; currentEvent in reg  size 2
                  1679 ; {
                  1680 ;   int currentEvent = eventqGet();
017a b012e000     1681     call    #_eventqGet
017e 044c         1682     mov r12,r4
                  1683 DBG174:
                  1684 ;   while (currentEvent != -1) {
                  1685 eventqProcessEvents_L1:
0180 3493         1686     cmp #-0x1,r4
0182 1724         1687     jeq eventqProcessEvents_L2
                  1688 DBG176:
                  1689 DBG175:
                  1690 ;     gpioSetLed(true);
0184 1c43         1691     mov #0x1,r12
0186 b0120000     1692     call    #_gpioSetLed
                  1693 DBG177:
                  1694 ;     if ((currentEvent >0) && (currentEvent <= ( (11) ) )) {
018a 0c43         1695     mov #0x0,r12
018c 0c94         1696     cmp r4,r12
018e 0b34         1697     jge eventqProcessEvents_L3
0190 3c400b00     1698     mov #0xb,r12
0194 0c94         1699     cmp r4,r12
0196 0738         1700     jl  eventqProcessEvents_L3
                  1701 DBG179:
                  1702 DBG178:
                  1703 ;       if (eventFuncs[currentEvent] != ((void *) 0) ) {
0198 0454         1704     rla r4
019a 1c442200     1705     mov _eventFuncs(r4),r12
019e 0c93         1706     cmp #0x0,r12
01a0 0424         1707     jeq eventqProcessEvents_L5
                  1708 DBG181:
                  1709 DBG180:
                  1710 ;         (eventFuncs[currentEvent])();
01a2 8c12         1711     call    r12
                  1712 DBG183:
                  1713 DBG182:
                  1714 ;         }
                  1715 eventqProcessEvents_L4:
                  1716 DBG184:
                  1717 ;       }
                  1718 DBG185:
01a4 023c         1719     jmp eventqProcessEvents_L5
                  1720 eventqProcessEvents_L3:
                  1721 ;     else {
                  1722 DBG186:
                  1723 ;       bogusEvents++;
                  1724 DBG187:
01a6 92530800     1725     add #0x1,&_bogusEvents
                  1726 DBG188:
                  1727 eventqProcessEvents_L5:
                  1728 ;     }
                  1729 ;     currentEvent = eventqGet();
                  1730 DBG189:
01aa b012e000     1731     call    #_eventqGet
01ae 044c         1732     mov r12,r4
                  1733 DBG190:
01b0 e73f         1734     jmp eventqProcessEvents_L1
                  1735 eventqProcessEvents_L2:
                  1736 ;     }
                  1737 ;   gpioSetLed(false);
                  1738 DBG191:
01b2 0c43         1739     mov #0x0,r12
01b4 b0120000     1740     call    #_gpioSetLed
                  1741 DBG193:
                  1742 DBG192:
                  1743 ; EXIT
                  1744 ; .temp0 at stkloc 0 (0x0) size 2
01b8 3441         1745     pop r4
01ba 3041         1746     ret
                  1747     .dbgseg dbg_syms
0a28 00000000     1748     .long 0x0
0a2c 0000005c     1749     .long DBG17
0a30 00000002     1750     .long 0x2
0a34 00000000     1751     .long 0x0
0a38 00010002     1752     .long 0x10002
0a3c 00000000     1753     .long 0x0
0a40 0000019c     1754     .long DBG18
0a44 00000002     1755     .long 0x2
0a48 00000000     1756     .long 0x0
0a4c 00010002     1757     .long 0x10002
0a50 504e5f5f     1758     .long 0x504e5f5f
0a54 534d5241     1759     .long 0x534d5241
0a58 00000000     1760     .long 0x0
0a5c 00000000     1761     .long 0x0
0a60 00010002     1762     .long 0x10002
                  1763 DBG164:
0a64 0062622e     1764     .long 0x62622e
0a68 00000000     1765     .long 0x0
0a6c 00000184     1766     .long DBG175
0a70 00000000     1767     .long 0x0
0a74 01640001     1768     .long 0x1640001
0a78 00000000     1769     .long 0x0
0a7c 00000005     1770     .long 0x5
0a80 00000000     1771     .long 0x0
0a84 00000bf4     1772     .long DBG194
0a88 00000000     1773     .long 0x0
0a8c 00000000     1774     .long 0x0
0a90 00000068     1775     .long DBG195
0a94 00040102     1776     .long 0x40102
0a98 00000004     1777     .long 0x4
0a9c 0004ffff     1778     .long 0x4ffff
0aa0 0062652e     1779     .long 0x62652e
0aa4 00000000     1780     .long 0x0
0aa8 000001a2     1781     .long DBG180
0aac 00000000     1782     .long 0x0
0ab0 01640001     1783     .long 0x1640001
0ab4 00000000     1784     .long 0x0
0ab8 0000000b     1785     .long 0xb
0abc 00000000     1786     .long 0x0
0ac0 00000000     1787     .long 0x0
0ac4 00000000     1788     .long 0x0
0ac8 0066652e     1789     .long 0x66652e
0acc 00000000     1790     .long 0x0
0ad0 000001b8     1791     .long DBG193
0ad4 00000000     1792     .long 0x0
0ad8 01650001     1793     .long 0x1650001
0adc 00000000     1794     .long 0x0
0ae0 000000af     1795     .long 0xaf
0ae4 00000000     1796     .long 0x0
0ae8 00000000     1797     .long 0x0
0aec 00000000     1798     .long 0x0
                  1799     .pseg eventq_code
                  1800 DBG166:
                  1801     .dbgseg dbg_syms
0af0 00000000     1802     .long 0x0
0af4 00000094     1803     .long DBG169
0af8 000001bc     1804     .long DBG166
0afc 00000000     1805     .long 0x0
0b00 00ff0001     1806     .long 0xff0001
                  1807 ; } 
                  1808     .dseg   eventq_bss
0000              1809     .align 0x2
                  1810 eventq_V8:
                  1811 _eventQueue:
0000              1812     .bss 0x20
                  1813 ; eventQueue size 32
                  1814 _urgentEventQueue:
0020              1815     .bss 0x1
                  1816 ; urgentEventQueue size 1
0021              1817     .bss 0x1
0022              1818     .align 0x2
                  1819 _eventFuncs:
0022              1820     .bss 0x18
                  1821 ; eventFuncs size 24
                  1822     .extern _gpioSetLed
                  1823     .extern _cmdparseAddCommand
                  1824     .dbgseg dbg_syms
                  1825 _0fake_1:
                  1826 DBG4:
0b04 6166305f     1827     .long 0x6166305f
0b08 315f656b     1828     .long 0x315f656b
0b0c 00000000     1829     .long 0x0
0b10 00000008     1830     .long 0x8
0b14 010afffe     1831     .long 0x10afffe
0b18 00000000     1832     .long 0x0
0b1c 00100000     1833     .long 0x100000
0b20 00000000     1834     .long 0x0
0b24 00000bf4     1835     .long DBG196
0b28 00000000     1836     .long 0x0
0b2c 7361625f     1837     .long 0x7361625f
0b30 00000065     1838     .long 0x65
0b34 00000000     1839     .long 0x0
0b38 0000002c     1840     .long 0x2c
0b3c 0008ffff     1841     .long 0x8ffff
0b40 646e655f     1842     .long 0x646e655f
0b44 00000000     1843     .long 0x0
0b48 00000002     1844     .long 0x2
0b4c 0000002c     1845     .long 0x2c
0b50 0008ffff     1846     .long 0x8ffff
0b54 7274705f     1847     .long 0x7274705f
0b58 00000000     1848     .long 0x0
0b5c 00000004     1849     .long 0x4
0b60 0000002c     1850     .long 0x2c
0b64 0008ffff     1851     .long 0x8ffff
0b68 6565735f     1852     .long 0x6565735f
0b6c 0000006b     1853     .long 0x6b
0b70 00000006     1854     .long 0x6
0b74 00000005     1855     .long 0x5
0b78 0008ffff     1856     .long 0x8ffff
0b7c 746e635f     1857     .long 0x746e635f
0b80 00000000     1858     .long 0x0
0b84 0000000a     1859     .long 0xa
0b88 00000004     1860     .long 0x4
0b8c 0008ffff     1861     .long 0x8ffff
0b90 616c665f     1862     .long 0x616c665f
0b94 00000067     1863     .long 0x67
0b98 0000000c     1864     .long 0xc
0b9c 00000003     1865     .long 0x3
0ba0 0008ffff     1866     .long 0x8ffff
0ba4 6c69665f     1867     .long 0x6c69665f
0ba8 00000065     1868     .long 0x65
0bac 0000000e     1869     .long 0xe
0bb0 00000002     1870     .long 0x2
0bb4 0008ffff     1871     .long 0x8ffff
0bb8 66626e5f     1872     .long 0x66626e5f
0bbc 00000000     1873     .long 0x0
0bc0 0000000f     1874     .long 0xf
0bc4 0000000c     1875     .long 0xc
0bc8 0008ffff     1876     .long 0x8ffff
0bcc 736f652e     1877     .long 0x736f652e
0bd0 00000000     1878     .long 0x0
0bd4 00000010     1879     .long 0x10
0bd8 00000000     1880     .long 0x0
0bdc 0166ffff     1881     .long 0x166ffff
0be0 00000b04     1882     .long DBG4
0be4 00100000     1883     .long 0x100000
0be8 00000000     1884     .long 0x0
0bec 00000000     1885     .long 0x0
0bf0 00000000     1886     .long 0x0
                  1887 DBG170:
                  1888 DBG194:
                  1889 DBG165:
                  1890 DBG196:
0bf4 00007073     1891     .long 0x7073
0bf8 00000000     1892     .long 0x0
0bfc 00000001     1893     .long 0x1
0c00 00000000     1894     .long 0x0
0c04 016cfffe     1895     .long 0x16cfffe
0c08 00000000     1896     .long 0x0
0c0c 00100001     1897     .long 0x100001
0c10 00000000     1898     .long 0x0
0c14 00000000     1899     .long 0x0
0c18 00000000     1900     .long 0x0
0c1c 00000052     1901     .long 0x52
0c20 00000000     1902     .long 0x0
0c24 00000002     1903     .long 0x2
0c28 00000000     1904     .long 0x0
0c2c 016cfffe     1905     .long 0x16cfffe
0c30 00000000     1906     .long 0x0
0c34 00100010     1907     .long 0x100010
0c38 00000000     1908     .long 0x0
0c3c 00000000     1909     .long 0x0
0c40 00000000     1910     .long 0x0
0c44 00000000     1911     .long 0x0
0c48 00000030     1912     .long DBG197
0c4c 00000014     1913     .long _qUrgentSize
0c50 00000004     1914     .long 0x4
0c54 00030002     1915     .long 0x30002
0c58 00000000     1916     .long 0x0
0c5c 00000024     1917     .long DBG198
0c60 00000022     1918     .long _eventFuncs
0c64 00001560     1919     .long 0x1560
0c68 01030002     1920     .long 0x1030002
0c6c 00000000     1921     .long 0x0
0c70 001800b1     1922     .long 0x1800b1
0c74 0000000c     1923     .long 0xc
0c78 00000000     1924     .long 0x0
0c7c 00000000     1925     .long 0x0
0c80 61654871     1926     .long 0x61654871
0c84 00000064     1927     .long 0x64
0c88 0000000a     1928     .long _qHead
0c8c 00000004     1929     .long 0x4
0c90 00030002     1930     .long 0x30002
0c94 00000000     1931     .long 0x0
0c98 0000004c     1932     .long DBG199
0c9c 00000004     1933     .long _eventsDropped
0ca0 0000000e     1934     .long 0xe
0ca4 00030002     1935     .long 0x30002
0ca8 00000000     1936     .long 0x0
0cac 00000088     1937     .long DBG200
0cb0 00000000     1938     .long _eventQueue
0cb4 0000006c     1939     .long 0x6c
0cb8 01030002     1940     .long 0x1030002
0cbc 00000000     1941     .long 0x0
0cc0 002000b1     1942     .long 0x2000b1
0cc4 00000020     1943     .long 0x20
0cc8 00000000     1944     .long 0x0
0ccc 00000000     1945     .long 0x0
0cd0 7a695371     1946     .long 0x7a695371
0cd4 00000065     1947     .long 0x65
0cd8 0000000e     1948     .long _qSize
0cdc 00000004     1949     .long 0x4
0ce0 00030002     1950     .long 0x30002
0ce4 00000000     1951     .long 0x0
0ce8 00000138     1952     .long DBG201
0cec 00000012     1953     .long _qUrgentTail
0cf0 00000004     1954     .long 0x4
0cf4 00030002     1955     .long 0x30002
0cf8 00000000     1956     .long 0x0
0cfc 00000128     1957     .long DBG202
0d00 00000002     1958     .long _maxUrgentEvents
0d04 0000000e     1959     .long 0xe
0d08 00030002     1960     .long 0x30002
0d0c 00000000     1961     .long 0x0
0d10 00000164     1962     .long DBG203
0d14 00000008     1963     .long _bogusEvents
0d18 0000000e     1964     .long 0xe
0d1c 00030002     1965     .long 0x30002
0d20 00000000     1966     .long 0x0
0d24 000001c4     1967     .long DBG204
0d28 00000010     1968     .long _qUrgentHead
0d2c 00000004     1969     .long 0x4
0d30 00030002     1970     .long 0x30002
0d34 00000000     1971     .long 0x0
0d38 000001b0     1972     .long DBG205
0d3c 00000006     1973     .long _urgentEventsDropped
0d40 0000000e     1974     .long 0xe
0d44 00030002     1975     .long 0x30002
0d48 69615471     1976     .long 0x69615471
0d4c 0000006c     1977     .long 0x6c
0d50 0000000c     1978     .long _qTail
0d54 00000004     1979     .long 0x4
0d58 00030002     1980     .long 0x30002
0d5c 00000000     1981     .long 0x0
0d60 000001e0     1982     .long DBG206
0d64 00000000     1983     .long _maxEvents
0d68 0000000e     1984     .long 0xe
0d6c 00030002     1985     .long 0x30002
0d70 00000000     1986     .long 0x0
0d74 000001ec     1987     .long DBG207
0d78 00000020     1988     .long _urgentEventQueue
0d7c 0000006c     1989     .long 0x6c
0d80 01030002     1990     .long 0x1030002
0d84 00000000     1991     .long 0x0
0d88 000100b1     1992     .long 0x100b1
0d8c 00000001     1993     .long 0x1
0d90 00000000     1994     .long 0x0
0d94 00000000     1995     .long 0x0
0d98 00000000     1996     .long 0x0
0d9c 00000004     1997     .long DBG208
0da0 00000000     1998     .long 0x0
0da4 000002a0     1999     .long 0x2a0
0da8 000dfffe     2000     .long 0xdfffe
0dac 6c6f6f62     2001     .long 0x6c6f6f62
0db0 006e6165     2002     .long 0x6e6165
0db4 00000000     2003     .long 0x0
0db8 00000004     2004     .long 0x4
0dbc 000dfffe     2005     .long 0xdfffe
0dc0 454c4946     2006     .long 0x454c4946
0dc4 00000000     2007     .long 0x0
0dc8 00000000     2008     .long 0x0
0dcc 00000008     2009     .long 0x8
0dd0 010dfffe     2010     .long 0x10dfffe
0dd4 00000b04     2011     .long _0fake_1
0dd8 00000010     2012     .long 0x10
0ddc 00000000     2013     .long 0x0
0de0 00000000     2014     .long 0x0
0de4 00000000     2015     .long 0x0
0de8 657a6973     2016     .long 0x657a6973
0dec 0000745f     2017     .long 0x745f
0df0 00000000     2018     .long 0x0
0df4 0000000e     2019     .long 0xe
0df8 000dfffe     2020     .long 0xdfffe
0dfc 6c5f6176     2021     .long 0x6c5f6176
0e00 00747369     2022     .long 0x747369
0e04 00000000     2023     .long 0x0
0e08 00000020     2024     .long 0x20
0e0c 000dfffe     2025     .long 0xdfffe
0e10 00000000     2026     .long 0x0
0e14 00000188     2027     .long DBG209
0e18 00000000     2028     .long 0x0
0e1c 000002a0     2029     .long 0x2a0
0e20 000dfffe     2030     .long 0xdfffe
0e24 00000000     2031     .long 0x0
0e28 00000210     2032     .long DBG210
0e2c 00000000     2033     .long 0x0
0e30 000002a4     2034     .long 0x2a4
0e34 000dfffe     2035     .long 0xdfffe
                  2036     .iseg eventq_istrings_const
                  2037 eventq_V6:
0000 73           2038     .byte 0x73
0001 68           2039     .byte 0x68
0002 6f           2040     .byte 0x6f
0003 77           2041     .byte 0x77
0004 00           2042     .byte 0x0
                  2043 eventq_V7:
0005 65           2044     .byte 0x65
0006 76           2045     .byte 0x76
0007 65           2046     .byte 0x65
0008 6e           2047     .byte 0x6e
0009 74           2048     .byte 0x74
000a 71           2049     .byte 0x71
000b 00           2050     .byte 0x0
                  2051     .dbgseg dbg_syms
0e38 666f652e     2052     .long 0x666f652e
0e3c 00000000     2053     .long 0x0
0e40 00000000     2054     .long 0x0
0e44 00000000     2055     .long 0x0
0e48 0067fffe     2056     .long 0x67fffe
                  2057     .dbgseg dbg_strs
0000              2058     .align 0x2
0000 00000220     2059     .long 0x220
                  2060 DBG208:
0004 6576656e     2061     .long 0x6576656e
0008 7448616e     2062     .long 0x7448616e
000c 646c6572     2063     .long 0x646c6572
0010 00000000     2064     .long 0x0
                  2065 DBG92:
0014 61646455     2066     .long 0x61646455
0018 7267656e     2067     .long 0x7267656e
001c 74457665     2068     .long 0x74457665
0020 6e740000     2069     .long 0x6e740000
                  2070 DBG198:
0024 6576656e     2071     .long 0x6576656e
0028 7446756e     2072     .long 0x7446756e
002c 63730000     2073     .long 0x63730000
                  2074 DBG197:
0030 71557267     2075     .long 0x71557267
0034 656e7453     2076     .long 0x656e7453
0038 697a6500     2077     .long 0x697a6500
                  2078 DBG68:
003c 6576656e     2079     .long 0x6576656e
0040 74715572     2080     .long 0x74715572
0044 67656e74     2081     .long 0x67656e74
0048 50757400     2082     .long 0x50757400
                  2083 DBG199:
004c 6576656e     2084     .long 0x6576656e
0050 74734472     2085     .long 0x74734472
0054 6f707065     2086     .long 0x6f707065
0058 64000000     2087     .long 0x64000000
                  2088 DBG17:
005c 5f5f4652     2089     .long 0x5f5f4652
0060 414d4553     2090     .long 0x414d4553
0064 495a4500     2091     .long 0x495a4500
                  2092 DBG195:
0068 63757272     2093     .long 0x63757272
006c 656e7445     2094     .long 0x656e7445
0070 76656e74     2095     .long 0x76656e74
0074 00000000     2096     .long 0x0
                  2097 DBG10:
0078 6d617845     2098     .long 0x6d617845
007c 76656e74     2099     .long 0x76656e74
0080 48616e64     2100     .long 0x48616e64
0084 6c657200     2101     .long 0x6c657200
                  2102 DBG200:
0088 6576656e     2103     .long 0x6576656e
008c 74517565     2104     .long 0x74517565
0090 75650000     2105     .long 0x75650000
                  2106 DBG169:
0094 6576656e     2107     .long 0x6576656e
0098 74715072     2108     .long 0x74715072
009c 6f636573     2109     .long 0x6f636573
00a0 73457665     2110     .long 0x73457665
00a4 6e747300     2111     .long 0x6e747300
                  2112 DBG23:
00a8 6576656e     2113     .long 0x6576656e
00ac 7471496e     2114     .long 0x7471496e
00b0 69740000     2115     .long 0x69740000
                  2116 DBG144:
00b4 5f5f5041     2117     .long 0x5f5f5041
00b8 524d6576     2118     .long 0x524d6576
00bc 54797065     2119     .long 0x54797065
00c0 00000000     2120     .long 0x0
                  2121 DBG145:
00c4 5f5f5041     2122     .long 0x5f5f5041
00c8 524d6861     2123     .long 0x524d6861
00cc 6e646c65     2124     .long 0x6e646c65
00d0 72000000     2125     .long 0x72000000
                  2126 DBG42:
00d4 6576656e     2127     .long 0x6576656e
00d8 74715075     2128     .long 0x74715075
00dc 74000000     2129     .long 0x74000000
                  2130 DBG5:
00e0 433a5c73     2131     .long 0x433a5c73
00e4 766e5c4d     2132     .long 0x766e5c4d
00e8 4f4f535c     2133     .long 0x4f4f535c
00ec 4d535034     2134     .long 0x4d535034
00f0 33305c51     2135     .long 0x33305c51
00f4 75616472     2136     .long 0x75616472
00f8 61766f78     2137     .long 0x61766f78
00fc 5c6d6d63     2138     .long 0x5c6d6d63
0100 7266696f     2139     .long 0x7266696f
0104 5c657665     2140     .long 0x5c657665
0108 6e74712e     2141     .long 0x6e74712e
010c 63000000     2142     .long 0x63000000
                  2143 DBG90:
0110 5f5f5041     2144     .long 0x5f5f5041
0114 524d6164     2145     .long 0x524d6164
0118 64557267     2146     .long 0x64557267
011c 656e7445     2147     .long 0x656e7445
0120 76656e74     2148     .long 0x76656e74
0124 00000000     2149     .long 0x0
                  2150 DBG202:
0128 6d617855     2151     .long 0x6d617855
012c 7267656e     2152     .long 0x7267656e
0130 74457665     2153     .long 0x74457665
0134 6e747300     2154     .long 0x6e747300
                  2155 DBG201:
0138 71557267     2156     .long 0x71557267
013c 656e7454     2157     .long 0x656e7454
0140 61696c00     2158     .long 0x61696c00
                  2159 DBG151:
0144 6576656e     2160     .long 0x6576656e
0148 74714765     2161     .long 0x74714765
014c 7448616e     2162     .long 0x7448616e
0150 646c6572     2163     .long 0x646c6572
0154 00000000     2164     .long 0x0
                  2165 DBG98:
0158 6576656e     2166     .long 0x6576656e
015c 74714765     2167     .long 0x74714765
0160 74000000     2168     .long 0x74000000
                  2169 DBG203:
0164 626f6775     2170     .long 0x626f6775
0168 73457665     2171     .long 0x73457665
016c 6e747300     2172     .long 0x6e747300
                  2173 DBG134:
0170 6576656e     2174     .long 0x6576656e
0174 74715265     2175     .long 0x74715265
0178 67697374     2176     .long 0x67697374
017c 65724861     2177     .long 0x65724861
0180 6e646c65     2178     .long 0x6e646c65
0184 72000000     2179     .long 0x72000000
                  2180 DBG209:
0188 5f5f6170     2181     .long 0x5f5f6170
018c 70656e64     2182     .long 0x70656e64
0190 66756e63     2183     .long 0x66756e63
0194 5f707472     2184     .long 0x5f707472
0198 00000000     2185     .long 0x0
                  2186 DBG18:
019c 5f5f5341     2187     .long 0x5f5f5341
01a0 5645445f     2188     .long 0x5645445f
01a4 41524753     2189     .long 0x41524753
01a8 5f53495a     2190     .long 0x5f53495a
01ac 45000000     2191     .long 0x45000000
                  2192 DBG205:
01b0 75726765     2193     .long 0x75726765
01b4 6e744576     2194     .long 0x6e744576
01b8 656e7473     2195     .long 0x656e7473
01bc 44726f70     2196     .long 0x44726f70
01c0 70656400     2197     .long 0x70656400
                  2198 DBG204:
01c4 71557267     2199     .long 0x71557267
01c8 656e7448     2200     .long 0x656e7448
01cc 65616400     2201     .long 0x65616400
                  2202 DBG63:
01d0 5f5f5041     2203     .long 0x5f5f5041
01d4 524d6164     2204     .long 0x524d6164
01d8 64457665     2205     .long 0x64457665
01dc 6e740000     2206     .long 0x6e740000
                  2207 DBG206:
01e0 6d617845     2208     .long 0x6d617845
01e4 76656e74     2209     .long 0x76656e74
01e8 73000000     2210     .long 0x73000000
                  2211 DBG207:
01ec 75726765     2212     .long 0x75726765
01f0 6e744576     2213     .long 0x6e744576
01f4 656e7451     2214     .long 0x656e7451
01f8 75657565     2215     .long 0x75657565
01fc 00000000     2216     .long 0x0
                  2217 DBG163:
0200 5f5f5041     2218     .long 0x5f5f5041
0204 524d7048     2219     .long 0x524d7048
0208 616e646c     2220     .long 0x616e646c
020c 65720000     2221     .long 0x65720000
                  2222 DBG210:
0210 636f6d6d     2223     .long 0x636f6d6d
0214 616e6448     2224     .long 0x616e6448
0218 616e646c     2225     .long 0x616e646c
021c 65720000     2226     .long 0x65720000
                  2227     .iseg _idesc
0000              2228     .align 0x2
0000 0000         2229     .data eventq_V1
0002 0000         2230     .data eventq_V2
0004 1600         2231     .data 0x16
0006 0000         2232     .data 0x0
0008 0000         2233     .data eventq_V8
000a 3a00         2234     .data 0x3a
