cgiparse.asm
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:10k
源码类别:

DSP编程

开发平台:

C/C++

  1. ;******************************************************************************
  2. ;* TMS320C6x C/C++ Codegen                                    PC Version 4.36 *
  3. ;* Date/Time created: Wed Mar 22 15:36:28 2006                                *
  4. ;******************************************************************************
  5. ;******************************************************************************
  6. ;* GLOBAL FILE PARAMETERS                                                     *
  7. ;*                                                                            *
  8. ;*   Architecture      : TMS320C64xx                                          *
  9. ;*   Optimization      : Enabled at level 3                                   *
  10. ;*   Optimizing for    : Speed                                                *
  11. ;*                       Based on options: -o3, no -ms                        *
  12. ;*   Endian            : Little                                               *
  13. ;*   Interrupt Thrshld : Disabled                                             *
  14. ;*   Memory Model      : Large                                                *
  15. ;*   Calls to RTS      : Far                                                  *
  16. ;*   Pipelining        : Enabled                                              *
  17. ;*   Speculative Load  : Enabled                                              *
  18. ;*   Memory Aliases    : Presume not aliases (optimistic)                     *
  19. ;*   Debug Info        : No Debug Info                                        *
  20. ;*                                                                            *
  21. ;******************************************************************************
  22. .asg A15, FP
  23. .asg B14, DP
  24. .asg B15, SP
  25. .global $bss
  26. ; c:tic6000cgtoolsbinopt6x.exe -t -DI0 -v6400 -q -O3 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI2944_2 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI2944_5 -w C:/ICETEK-DM642-C V2.22/jpeg_motion/obj/ 
  27. .sect ".text"
  28. .global _cgiParseVars
  29. ;******************************************************************************
  30. ;* FUNCTION NAME: _cgiParseVars                                               *
  31. ;*                                                                            *
  32. ;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,   *
  33. ;*                           A15,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12,   *
  34. ;*                           B13,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,  *
  35. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  36. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  37. ;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,   *
  38. ;*                           A15,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12,   *
  39. ;*                           B13,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,  *
  40. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  41. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  42. ;*   Local Frame Size  : 0 Args + 8 Auto + 40 Save = 48 byte                  *
  43. ;******************************************************************************
  44. _cgiParseVars:
  45. ;** --------------------------------------------------------------------------*
  46.            STW     .D2T2   B12,*SP--(48)     ; |25| 
  47. ||         MV      .D1X    SP,A31            ; |25| 
  48.            STDW    .D2T2   B11:B10,*+SP(40)
  49. ||         MV      .S2     B4,B12            ; |25| 
  50.            LDW     .D2T2   *B12,B10          ; |35| 
  51.            STDW    .D1T1   A13:A12,*-A31(24)
  52.            STDW    .D1T1   A11:A10,*-A31(32)
  53.            STDW    .D1T1   A15:A14,*-A31(16)
  54.            STW     .D2T2   B13,*+SP(12)
  55.            MV      .D1X    B10,A0            ; |40| 
  56.    [!A0]   BNOP    .S1     L1,1              ; |38| 
  57.            ZERO    .S1     A12               ; |37| 
  58.            ZERO    .S2     B11               ; |39| 
  59.            CMPEQ   .L2     B10,-1,B0         ; |40| 
  60.            STB     .D2T1   A12,*+SP(10)      ; |37| 
  61. ||         MV      .S2     B3,B13
  62. ||         MV      .D1     A4,A11            ; |25| 
  63.            ; BRANCH OCCURS                   ; |38| 
  64. ;** --------------------------------------------------------------------------*
  65.    [ B0]   BNOP    .S1     L7,4              ; |41| 
  66.            ZERO    .S1     A4                ; |41| 
  67. || [ B0]   MV      .D1X    SP,A31            ; |74| 
  68.            ; BRANCH OCCURS                   ; |41| 
  69. ;** --------------------------------------------------------------------------*
  70.            ADD     .D2     1,B10,B10         ; |43| 
  71. ||         ADD     .S2     1,B10,B11         ; |43| 
  72. ;** --------------------------------------------------------------------------*
  73. L1:    
  74.            ADD     .D1X    B10,A11,A10       ; |46| 
  75.            LDB     .D1T1   *A10,A0           ; |46| 
  76.            NOP             1
  77.            MVK     .S1     61,A3             ; |46| 
  78.            MVK     .S1     0x3d,A15          ; |46| 
  79.            MV      .D1X    B10,A13           ; |45| 
  80.            CMPEQ   .L1     A0,A3,A1          ; |46| 
  81.    [ A1]   BNOP    .S1     L6,5              ; |46| 
  82.            ; BRANCH OCCURS                   ; |46| 
  83. ;** --------------------------------------------------------------------------*
  84.            CMPEQ   .L2X    A0,0,B4           ; |60| 
  85. ||         MVK     .S1     0x26,A3
  86.            CMPEQ   .L1     A0,A3,A3          ; |60| 
  87.            OR      .D1X    B4,A3,A1          ; |60| 
  88. ;*----------------------------------------------------------------------------*
  89. ;*   SOFTWARE PIPELINE INFORMATION
  90. ;*      Disqualified loop: Loop contains control code
  91. ;*----------------------------------------------------------------------------*
  92. L2:    
  93.    [ A1]   BNOP    .S1     L6,3              ; |60| 
  94.    [!A1]   MVK     .S1     43,A3             ; |48| 
  95.    [!A1]   CMPEQ   .L1     A0,A3,A1          ; |48| 
  96.            ; BRANCH OCCURS                   ; |60| 
  97. ;** --------------------------------------------------------------------------*
  98.    [ A1]   B       .S1     L4                ; |48| 
  99.            ADD     .D1X    B11,A11,A14
  100. || [!A1]   MVK     .S1     37,A3             ; |50| 
  101.    [ A1]   MVK     .S1     32,A3             ; |49| 
  102.    [ A1]   STB     .D1T1   A3,*A14           ; |49| 
  103. || [ A1]   ADD     .D2     1,B11,B11         ; |49| 
  104.    [ A1]   LDB     .D1T1   *++A10,A0         ; |59| 
  105. || [!A1]   CMPEQ   .L1     A0,A3,A1          ; |50| 
  106.            NOP             1
  107.            ; BRANCH OCCURS                   ; |48| 
  108. ;** --------------------------------------------------------------------------*
  109.    [!A1]   BNOP    .S1     L3,2              ; |58| 
  110.    [!A1]   STB     .D1T1   A0,*A14           ; |58| 
  111. || [!A1]   ADD     .D2     1,B11,B11         ; |58| 
  112. || [ A1]   MVKL    .S2     _strtol,B5        ; |54| 
  113. || [ A1]   ADD     .S1     1,A10,A10         ; |52| 
  114.    [ A1]   MVKH    .S2     _strtol,B5        ; |54| 
  115. || [ A1]   LDB     .D1T1   *A10++,A3         ; |52| 
  116.    [!A1]   LDB     .D1T1   *++A10,A0         ; |59| 
  117.            ; BRANCH OCCURS                   ; |58| 
  118. ;** --------------------------------------------------------------------------*
  119.            CALL    .S2     B5                ; |54| 
  120. ||         LDB     .D1T1   *A10,A4           ; |53| 
  121.            ADDKPC  .S2     RL0,B3,0          ; |54| 
  122.            MVK     .S1     0x10,A6           ; |54| 
  123.            ZERO    .L2     B4                ; |54| 
  124.            STB     .D2T1   A3,*+SP(8)        ; |52| 
  125.            ADD     .D1X    8,SP,A4           ; |54| 
  126. ||         STB     .D2T1   A4,*+SP(9)        ; |53| 
  127. RL0:       ; CALL OCCURS                     ; |54| 
  128.            B       .S1     L5                ; |56| 
  129.            STB     .D1T1   A4,*A14           ; |55| 
  130. ||         ADD     .S2     2,B10,B10         ; |52| 
  131. ||         ADD     .D2     1,B11,B11         ; |49| 
  132.            LDB     .D1T1   *++A10,A0         ; |59| 
  133.            NOP             3
  134.            ; BRANCH OCCURS                   ; |56| 
  135. ;** --------------------------------------------------------------------------*
  136. L3:    
  137.            NOP             1
  138. ;** --------------------------------------------------------------------------*
  139. L4:    
  140.            NOP             2
  141. ;** --------------------------------------------------------------------------*
  142. L5:    
  143.            ADD     .D2     1,B10,B10         ; |59| 
  144.            CMPEQ   .L1     A0,A15,A1         ; |59| 
  145.    [!A1]   BNOP    .S1     L2,2              ; |59| 
  146.    [!A1]   CMPEQ   .L2X    A0,0,B4           ; |60| 
  147. || [!A1]   MVK     .S1     0x26,A3
  148.    [!A1]   CMPEQ   .L1     A0,A3,A3          ; |60| 
  149.    [!A1]   OR      .D1X    B4,A3,A1          ; |60| 
  150.            ; BRANCH OCCURS                   ; |59| 
  151. ;** --------------------------------------------------------------------------*
  152. L6:    
  153.    [!A0]   MVK     .D2     0xffffffff,B4     ; |64| 
  154.    [!A0]   MV      .D2     B4,B10
  155. ||         ADD     .D1X    B11,A11,A3
  156.            STW     .D2T2   B10,*B12          ; |70| 
  157. ||         STB     .D1T1   A12,*A3           ; |67| 
  158. ||         ADD     .S1     A11,A13,A4        ; |73| 
  159.            MV      .D1X    SP,A31            ; |74| 
  160. ;** --------------------------------------------------------------------------*
  161. L7:    
  162.            LDDW    .D1T1   *+A31(16),A11:A10 ; |74| 
  163. ||         LDDW    .D2T2   *+SP(40),B11:B10  ; |74| 
  164. ||         MV      .S2     B13,B3            ; |74| 
  165.            RET     .S2     B3                ; |74| 
  166. ||         LDDW    .D1T1   *+A31(24),A13:A12 ; |74| 
  167. ||         LDW     .D2T2   *+SP(12),B13      ; |74| 
  168.            LDW     .D2T2   *++SP(48),B12     ; |74| 
  169. ||         LDDW    .D1T1   *+A31(32),A15:A14 ; |74| 
  170.            NOP             4
  171.            ; BRANCH OCCURS                   ; |74| 
  172. ;******************************************************************************
  173. ;* UNDEFINED EXTERNAL REFERENCES                                              *
  174. ;******************************************************************************
  175. .global _strtol