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

DSP编程

开发平台:

C/C++

  1. ;******************************************************************************
  2. ;* TMS320C6x C/C++ Codegen                                    PC Version 4.36 *
  3. ;* Date/Time created: Wed Mar 22 15:36:18 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. .sect ".cinit"
  27. .align 8
  28. .field   IR_1,32
  29. .field   _JPEGDEC_CELLFXNS+0,32
  30. .field   _JPEGDEC_cellClose,32 ; _JPEGDEC_CELLFXNS._cellClose @ 0
  31. .field   0,32 ; _JPEGDEC_CELLFXNS._cellControl @ 32
  32. .field   _JPEGDEC_cellExecute,32 ; _JPEGDEC_CELLFXNS._cellExecute @ 64
  33. .field   _JPEGDEC_cellOpen,32 ; _JPEGDEC_CELLFXNS._cellOpen @ 96
  34. IR_1: .set 16
  35. .sect ".text"
  36. .global _JPEGDEC_CELLFXNS
  37. _JPEGDEC_CELLFXNS: .usect ".far",16,4
  38. ; c:tic6000cgtoolsbinopt6x.exe -t -DI0 -v6400 -q -O3 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI1076_2 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI1076_5 -w C:/ICETEK-DM642-C V2.22/jpeg_motion/obj/ 
  39. .sect ".text"
  40. .global _JPEGDEC_cellOpen
  41. ;******************************************************************************
  42. ;* FUNCTION NAME: _JPEGDEC_cellOpen                                           *
  43. ;*                                                                            *
  44. ;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  45. ;*                           B7,B8,B9,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,*
  46. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  47. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  48. ;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  49. ;*                           B7,B8,B9,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,*
  50. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  51. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  52. ;*   Local Frame Size  : 0 Args + 0 Auto + 4 Save = 4 byte                    *
  53. ;******************************************************************************
  54. _JPEGDEC_cellOpen:
  55. ;** --------------------------------------------------------------------------*
  56.            MVKL    .S1     _DMAN_addAlg,A3   ; |98| 
  57.            MVKH    .S1     _DMAN_addAlg,A3   ; |98| 
  58.            LDW     .D1T1   *+A4(24),A4       ; |98| 
  59.            CALLRET .S2X    A3                ; |98| 
  60.            NOP             3
  61.            MVKL    .S2     _JPEGDEC_IDMA2,B4 ; |98| 
  62.            MVKH    .S2     _JPEGDEC_IDMA2,B4 ; |98| 
  63. RL0:       ; CALL OCCURS                     ; |99| ; bypass _JPEGDEC_cellOpen upon return
  64. .sect ".text"
  65. .global _JPEGDEC_cellClose
  66. ;******************************************************************************
  67. ;* FUNCTION NAME: _JPEGDEC_cellClose                                          *
  68. ;*                                                                            *
  69. ;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  70. ;*                           B7,B8,B9,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,*
  71. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  72. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  73. ;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  74. ;*                           B7,B8,B9,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,*
  75. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  76. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  77. ;*   Local Frame Size  : 0 Args + 0 Auto + 4 Save = 4 byte                    *
  78. ;******************************************************************************
  79. _JPEGDEC_cellClose:
  80. ;** --------------------------------------------------------------------------*
  81.            MVKL    .S1     _DMAN_removeAlg,A3 ; |52| 
  82.            MVKH    .S1     _DMAN_removeAlg,A3 ; |52| 
  83.            LDW     .D1T1   *+A4(24),A4       ; |52| 
  84.            CALLRET .S2X    A3                ; |52| 
  85.            NOP             3
  86.            MVKL    .S2     _JPEGDEC_IDMA2,B4 ; |52| 
  87.            MVKH    .S2     _JPEGDEC_IDMA2,B4 ; |52| 
  88. RL1:       ; CALL OCCURS                     ; |53| ; bypass _JPEGDEC_cellClose upon return
  89. .sect ".text"
  90. .global _JPEGDEC_cellExecute
  91. ;******************************************************************************
  92. ;* FUNCTION NAME: _JPEGDEC_cellExecute                                        *
  93. ;*                                                                            *
  94. ;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,B0,B1,B2,B3,B4,*
  95. ;*                           B5,B6,B7,B8,B9,B10,B11,B13,SP,A16,A17,A18,A19,   *
  96. ;*                           A20,A21,A22,A23,A24,A25,A26,A27,A28,A29,A30,A31, *
  97. ;*                           B16,B17,B18,B19,B20,B21,B22,B23,B24,B25,B26,B27, *
  98. ;*                           B28,B29,B30,B31                                  *
  99. ;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,B0,B1,B2,B3,B4,*
  100. ;*                           B5,B6,B7,B8,B9,B10,B11,B13,SP,A16,A17,A18,A19,   *
  101. ;*                           A20,A21,A22,A23,A24,A25,A26,A27,A28,A29,A30,A31, *
  102. ;*                           B16,B17,B18,B19,B20,B21,B22,B23,B24,B25,B26,B27, *
  103. ;*                           B28,B29,B30,B31                                  *
  104. ;*   Local Frame Size  : 0 Args + 0 Auto + 20 Save = 20 byte                  *
  105. ;******************************************************************************
  106. _JPEGDEC_cellExecute:
  107. ;** --------------------------------------------------------------------------*
  108.            MV      .D1     A4,A11            ; |62| 
  109. ||         STW     .D2T1   A11,*SP--(24)     ; |62| 
  110. ||         MV      .S1X    SP,A31            ; |62| 
  111.            LDW     .D1T1   *+A11(32),A3      ; |64| 
  112.            STW     .D1T1   A10,*-A31(16)
  113.            STDW    .D2T2   B11:B10,*+SP(16)
  114.            STW     .D2T2   B13,*+SP(12)
  115.            MV      .L2     B3,B13
  116.            LDW     .D1T1   *A3,A5            ; |64| 
  117.            MVKL    .S1     _UTL_stsStartFunc,A3
  118.            MVKH    .S1     _UTL_stsStartFunc,A3
  119.            MVKL    .S2     _utlstsExeTimeChJpegDec,B10
  120.            CALL    .S2X    A3
  121.            LDW     .D1T1   *A5,A10           ; |64| 
  122.            MVKH    .S2     _utlstsExeTimeChJpegDec,B10
  123.            ADDKPC  .S2     RL2,B3,1
  124.            MV      .D1X    B10,A4
  125. RL2:       ; CALL OCCURS   
  126.            MVKL    .S1     _ALGRF_activate,A3 ; |69| 
  127.            MVKH    .S1     _ALGRF_activate,A3 ; |69| 
  128.            LDW     .D1T1   *+A11(24),A4      ; |69| 
  129.            CALL    .S2X    A3                ; |69| 
  130.            ADDKPC  .S2     RL3,B3,4          ; |69| 
  131. RL3:       ; CALL OCCURS                     ; |69| 
  132.            LDW     .D1T2   *+A11(16),B5      ; |73| 
  133.            LDW     .D1T2   *+A11(40),B4      ; |73| 
  134.            NOP             1
  135.            LDW     .D1T1   *+A11(24),A4      ; |73| 
  136.            ADD     .S1     4,A10,A3          ; |64| 
  137.            LDW     .D2T2   *+B5(40),B5       ; |73| 
  138.            LDW     .D2T2   *B4,B4            ; |73| 
  139.            NOP             3
  140.            CALL    .S2     B5                ; |73| 
  141.            LDW     .D1T2   *A3,B4            ; |73| 
  142. ||         LDW     .D2T1   *B4,A6            ; |73| 
  143.            ADDKPC  .S2     RL4,B3,3          ; |73| 
  144. RL4:       ; CALL OCCURS                     ; |73| 
  145.            CMPLT   .L1     A4,0,A0           ; |73| 
  146.    [ A0]   BNOP    .S1     L1,1              ; |73| 
  147.            MVKL    .S2     _ALGRF_deactivate,B4 ; |84| 
  148.            MVKH    .S2     _ALGRF_deactivate,B4 ; |84| 
  149.            MVKL    .S2     _UTL_stsStopFunc,B11
  150.            MVKH    .S2     _UTL_stsStopFunc,B11
  151. ||         MVK     .D1     0x1,A10           ; |88| 
  152.            ; BRANCH OCCURS                   ; |73| 
  153. ;** --------------------------------------------------------------------------*
  154.            CALL    .S2     B4                ; |84| 
  155.            LDW     .D1T1   *+A11(24),A4      ; |84| 
  156.            ADDKPC  .S2     RL5,B3,3          ; |84| 
  157. RL5:       ; CALL OCCURS                     ; |84| 
  158.            CALL    .S2     B11
  159.            ADDKPC  .S2     RL6,B3,3
  160.            MV      .D1X    B10,A4
  161. RL6:       ; CALL OCCURS   
  162.            BNOP    .S1     L2,4              ; |88| 
  163.            MV      .D1X    SP,A31            ; |89| 
  164. ||         MV      .S2     B13,B3            ; |89| 
  165. ||         LDDW    .D2T2   *+SP(16),B11:B10  ; |89| 
  166.            ; BRANCH OCCURS                   ; |88| 
  167. ;*----------------------------------------------------------------------------*
  168. ;*   SOFTWARE PIPELINE INFORMATION
  169. ;*      Disqualified loop: Loop contains a call to asm()
  170. ;*----------------------------------------------------------------------------*
  171. L1:    
  172.     NOP
  173.     .word 0x10000000
  174.            BNOP    .S1     L1,5              ; |81| 
  175.            ; BRANCH OCCURS                   ; |81| 
  176. ;** --------------------------------------------------------------------------*
  177. L2:    
  178.            RET     .S2     B3                ; |89| 
  179. ||         LDW     .D1T1   *+A31(8),A10      ; |89| 
  180. ||         LDW     .D2T2   *+SP(12),B13      ; |89| 
  181. ||         MV      .S1     A10,A4            ; |81| 
  182.            LDW     .D2T1   *++SP(24),A11     ; |89| 
  183.            NOP             4
  184.            ; BRANCH OCCURS                   ; |89| 
  185. ;******************************************************************************
  186. ;* UNDEFINED EXTERNAL REFERENCES                                              *
  187. ;******************************************************************************
  188. .global _ALGRF_activate
  189. .global _ALGRF_deactivate
  190. .global _UTL_stsStartFunc
  191. .global _UTL_stsStopFunc
  192. .global _DMAN_addAlg
  193. .global _DMAN_removeAlg
  194. .global _JPEGDEC_IDMA2
  195. .global _utlstsExeTimeChJpegDec