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

DSP编程

开发平台:

C/C++

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