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

DSP编程

开发平台:

C/C++

  1. ;******************************************************************************
  2. ;* TMS320C6x C/C++ Codegen                                    PC Version 4.36 *
  3. ;* Date/Time created: Wed Mar 22 15:36:43 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. .global _scratch2
  27. _scratch2: .usect ".internal_data1",14400,8
  28. .global _disChan
  29. _disChan: .usect ".far",4,4
  30. .global _disFrameBuf
  31. _disFrameBuf: .usect ".far",4,4
  32. ; c:tic6000cgtoolsbinopt6x.exe -t -DI0 -v6400 -q -O3 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI3836_2 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI3836_5 -w C:/ICETEK-DM642-C V2.22/jpeg_motion/obj/ 
  33. .sect ".text"
  34. .global _tskVideoOutputStart
  35. ;******************************************************************************
  36. ;* FUNCTION NAME: _tskVideoOutputStart                                        *
  37. ;*                                                                            *
  38. ;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  39. ;*                           B7,B8,B9,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. ;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  43. ;*                           B7,B8,B9,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,*
  44. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  45. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  46. ;*   Local Frame Size  : 0 Args + 0 Auto + 4 Save = 4 byte                    *
  47. ;******************************************************************************
  48. _tskVideoOutputStart:
  49. ;** --------------------------------------------------------------------------*
  50.            MVKL    .S2     _GIO_control,B5   ; |53| 
  51.            MVKH    .S2     _GIO_control,B5   ; |53| 
  52. ||         MVKL    .S1     _disChan,A3       ; |53| 
  53.            CALL    .S2     B5                ; |53| 
  54. ||         MVKH    .S1     _disChan,A3       ; |53| 
  55.            LDW     .D1T1   *A3,A4            ; |53| 
  56.            NOP             1
  57.            MVKL    .S2     0x10000004,B4     ; |53| 
  58.            MVKH    .S2     0x10000004,B4     ; |53| 
  59.            ZERO    .D1     A6                ; |53| 
  60. RL0:       ; CALL OCCURS                     ; |54| ; bypass _tskVideoOutputStart upon return
  61. .sect ".text"
  62. .global _tskVideoOutputInit
  63. ;******************************************************************************
  64. ;* FUNCTION NAME: _tskVideoOutputInit                                         *
  65. ;*                                                                            *
  66. ;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  67. ;*                           B7,B8,B9,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24, *
  68. ;*                           A25,A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20, *
  69. ;*                           B21,B22,B23,B24,B25,B26,B27,B28,B29,B30,B31      *
  70. ;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6,  *
  71. ;*                           B7,B8,B9,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24, *
  72. ;*                           A25,A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20, *
  73. ;*                           B21,B22,B23,B24,B25,B26,B27,B28,B29,B30,B31      *
  74. ;*   Local Frame Size  : 0 Args + 4 Auto + 4 Save = 8 byte                    *
  75. ;******************************************************************************
  76. _tskVideoOutputInit:
  77. ;** --------------------------------------------------------------------------*
  78.            MVKL    .S1     _GIO_create,A3    ; |44| 
  79.            MVKL    .S1     _EVMDM642_I2C_hI2C,A4 ; |42| 
  80.            MVKH    .S1     _GIO_create,A3    ; |44| 
  81. ||         MVKL    .S2     _extHeap,B4       ; |40| 
  82.            MVKH    .S1     _EVMDM642_I2C_hI2C,A4 ; |42| 
  83. ||         MVKH    .S2     _extHeap,B4       ; |40| 
  84.            CALL    .S2X    A3                ; |44| 
  85. ||         LDW     .D1T1   *A4,A7            ; |42| 
  86. ||         LDW     .D2T2   *B4,B5            ; |40| 
  87. ||         MVKL    .S1     _EVMDM642_vDisParamsChan,A5 ; |44| 
  88.            MVKL    .S1     _EVMDM642_vDisParamsChan+140,A6 ; |40| 
  89.            MVKH    .S1     _EVMDM642_vDisParamsChan,A5 ; |44| 
  90.            MVKL    .S2     _EVMDM642_vDisParamsSAA7121+4,B4 ; |42| 
  91. ||         MVKH    .S1     _EVMDM642_vDisParamsChan+140,A6 ; |40| 
  92. ||         STW     .D2T2   B3,*SP--(8)       ; |36| 
  93.            MV      .D2X    A5,B6             ; |44| 
  94. ||         MVKH    .S2     _EVMDM642_vDisParamsSAA7121+4,B4 ; |42| 
  95. ||         MVKL    .S1     SL1+0,A4          ; |44| 
  96. ||         ZERO    .D1     A8                ; |44| 
  97.            ADDKPC  .S2     RL1,B3,0          ; |44| 
  98. ||         MVK     .L2     0x2,B4            ; |44| 
  99. ||         STW     .D2T1   A7,*B4            ; |42| 
  100. ||         ADD     .L1X    4,SP,A6           ; |44| 
  101. ||         STW     .D1T2   B5,*A6            ; |40| 
  102. ||         MVKH    .S1     SL1+0,A4          ; |44| 
  103. RL1:       ; CALL OCCURS                     ; |44| 
  104.            MVKL    .S1     _GIO_control,A3   ; |47| 
  105.            MVKL    .S2     _disChan,B5       ; |44| 
  106. ||         MVKH    .S1     _GIO_control,A3   ; |47| 
  107.            MVKL    .S2     _EVMDM642_vDisParamsSAA7121,B6 ; |47| 
  108.            CALL    .S2X    A3                ; |47| 
  109.            MVKH    .S2     _disChan,B5       ; |44| 
  110.            MVKL    .S2     0x80000001,B4     ; |47| 
  111.            MVKH    .S2     _EVMDM642_vDisParamsSAA7121,B6 ; |47| 
  112.            MVKH    .S2     0x80000001,B4     ; |47| 
  113.            ADDKPC  .S2     RL2,B3,0          ; |47| 
  114. ||         MV      .D1X    B6,A6             ; |47| 
  115. ||         STW     .D2T1   A4,*B5            ; |44| 
  116. RL2:       ; CALL OCCURS                     ; |47| 
  117.            LDW     .D2T2   *++SP(8),B3       ; |49| 
  118.            NOP             4
  119.            RETNOP  .S2     B3,5              ; |49| 
  120.            ; BRANCH OCCURS                   ; |49| 
  121. .sect ".text"
  122. .global _tskVideoOutput
  123. ;******************************************************************************
  124. ;* FUNCTION NAME: _tskVideoOutput                                             *
  125. ;*                                                                            *
  126. ;*   Regs Modified     : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,   *
  127. ;*                           A15,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12,   *
  128. ;*                           B13,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,  *
  129. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  130. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  131. ;*   Regs Used         : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,   *
  132. ;*                           A15,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12,   *
  133. ;*                           B13,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,  *
  134. ;*                           A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
  135. ;*                           B22,B23,B24,B25,B26,B27,B28,B29,B30,B31          *
  136. ;*   Local Frame Size  : 0 Args + 32 Auto + 44 Save = 76 byte                 *
  137. ;******************************************************************************
  138. _tskVideoOutput:
  139. ;** --------------------------------------------------------------------------*
  140.            MVKL    .S1     _SCOM_open,A3     ; |64| 
  141.            MVKH    .S1     _SCOM_open,A3     ; |64| 
  142.            MV      .D1X    SP,A31            ; |59| 
  143.            CALL    .S2X    A3                ; |64| 
  144.            STW     .D2T1   A15,*SP--(80)     ; |59| 
  145.            STDW    .D1T1   A13:A12,*-A31(32)
  146.            STDW    .D2T2   B13:B12,*+SP(72)
  147.            STDW    .D1T1   A11:A10,*-A31(40)
  148. ||         STDW    .D2T2   B11:B10,*+SP(64)
  149. ||         MVKL    .S1     SL2+0,A4          ; |64| 
  150.            ADDKPC  .S2     RL3,B3,0          ; |64| 
  151. ||         STW     .D2T2   B3,*+SP(60)
  152. ||         STW     .D1T1   A14,*-A31(24)
  153. ||         MVKH    .S1     SL2+0,A4          ; |64| 
  154. RL3:       ; CALL OCCURS                     ; |64| 
  155.            MVKL    .S1     _SCOM_open,A3     ; |65| 
  156.            MVKH    .S1     _SCOM_open,A3     ; |65| 
  157.            MV      .D1     A4,A15            ; |64| 
  158.            CALL    .S2X    A3                ; |65| 
  159.            MVKL    .S1     SL3+0,A4          ; |65| 
  160.            ADDKPC  .S2     RL4,B3,2          ; |65| 
  161.            MVKH    .S1     SL3+0,A4          ; |65| 
  162. RL4:       ; CALL OCCURS                     ; |65| 
  163.            MVKL    .S2     _GIO_submit,B5    ; |67| 
  164.            MVKH    .S2     _GIO_submit,B5    ; |67| 
  165. ||         MVKL    .S1     _disChan,A3       ; |67| 
  166.            MVKH    .S1     _disChan,A3       ; |67| 
  167. ||         CALL    .S2     B5                ; |67| 
  168.            LDW     .D1T1   *A3,A4            ; |67| 
  169. ||         MV      .S1     A4,A14            ; |65| 
  170.            MVKL    .S2     _disFrameBuf,B13  ; |67| 
  171.            MVKH    .S2     _disFrameBuf,B13  ; |67| 
  172.            MVK     .S2     0x80,B4           ; |67| 
  173.            ZERO    .D2     B6                ; |67| 
  174. ||         ZERO    .S1     A8                ; |67| 
  175. ||         MV      .D1X    B13,A6            ; |67| 
  176. ||         ADDKPC  .S2     RL5,B3,0          ; |67| 
  177. RL5:       ; CALL OCCURS                     ; |67| 
  178.            MVKL    .S2     _utlstsDispTime,B4
  179.            MVKH    .S2     _utlstsDispTime,B4
  180.            MVK     .S2     0x82,B11
  181.            MV      .D1X    B4,A11
  182.            MV      .D1X    B13,A12           ; |67| 
  183. ||         MVK     .D2     0xffffffff,B12
  184. ||         MVK     .S1     0x2d0,A13
  185. ||         MVK     .S2     0x1e0,B10
  186.            MVKL    .S1     _SCOM_getMsg,A3   ; |71| 
  187.            MVKH    .S1     _SCOM_getMsg,A3   ; |71| 
  188.            NOP             1
  189. ;*----------------------------------------------------------------------------*
  190. ;*   SOFTWARE PIPELINE INFORMATION
  191. ;*      Disqualified loop: Loop contains a call
  192. ;*----------------------------------------------------------------------------*
  193. L1:    
  194.            CALL    .S2X    A3                ; |71| 
  195.            ADDKPC  .S2     RL6,B3,2          ; |71| 
  196.            MV      .D2     B12,B4            ; |71| 
  197.            MV      .D1     A15,A4            ; |71| 
  198. RL6:       ; CALL OCCURS                     ; |71| 
  199.            MVKL    .S1     _UTL_stsStartFunc,A3
  200.            MVKH    .S1     _UTL_stsStartFunc,A3
  201.            MV      .S1     A4,A10            ; |71| 
  202.            CALL    .S2X    A3
  203.            ADDKPC  .S2     RL7,B3,3
  204.            MV      .D1     A11,A4
  205. RL7:       ; CALL OCCURS   
  206.            MVKL    .S1     _disFrameBuf,A3   ; |79| 
  207.            MVKH    .S1     _disFrameBuf,A3   ; |79| 
  208.            LDW     .D1T1   *A3,A3            ; |79| 
  209.            LDW     .D1T1   *+A10(20),A8      ; |75| 
  210.            LDW     .D1T2   *+A10(24),B7      ; |76| 
  211.            LDW     .D1T2   *+A10(28),B5      ; |77| 
  212.            ADD     .D2     SP,24,B4          ; |83| 
  213.            LDW     .D1T1   *+A3(8),A5        ; |79| 
  214.            LDW     .D1T1   *+A3(16),A7       ; |81| 
  215.            MVKL    .S1     _yuv420to422,A3   ; |83| 
  216. ||         LDW     .D1T1   *+A3(12),A4       ; |80| 
  217.            MVKH    .S1     _yuv420to422,A3   ; |83| 
  218.            STW     .D2T1   A8,*+SP(8)        ; |75| 
  219.            CALL    .S2X    A3                ; |83| 
  220.            STW     .D2T2   B7,*+SP(12)       ; |76| 
  221.            STW     .D2T2   B5,*+SP(16)       ; |77| 
  222.            STW     .D2T1   A5,*+SP(24)       ; |79| 
  223.            STW     .D2T1   A7,*+SP(32)       ; |81| 
  224.            ADDKPC  .S2     RL8,B3,0          ; |83| 
  225. ||         ADD     .D1X    8,SP,A4           ; |83| 
  226. ||         STW     .D2T1   A4,*+SP(28)       ; |80| 
  227. ||         MV      .L2     B10,B6            ; |83| 
  228. ||         MV      .S1     A13,A6            ; |83| 
  229. RL8:       ; CALL OCCURS                     ; |83| 
  230.            MVKL    .S2     _UTL_stsStopFunc,B4
  231.            MVKH    .S2     _UTL_stsStopFunc,B4
  232.            CALL    .S2     B4
  233.            ADDKPC  .S2     RL9,B3,3
  234.            MV      .D1     A11,A4
  235. RL9:       ; CALL OCCURS   
  236.            MVKL    .S1     _SCOM_putMsg,A3   ; |87| 
  237.            MVKH    .S1     _SCOM_putMsg,A3   ; |87| 
  238.            MV      .D1     A14,A4            ; |87| 
  239.            CALL    .S2X    A3                ; |87| 
  240.            MV      .D2X    A10,B4            ; |87| 
  241.            ADDKPC  .S2     RL10,B3,3         ; |87| 
  242. RL10:      ; CALL OCCURS                     ; |87| 
  243.            MVKL    .S2     _GIO_submit,B5    ; |89| 
  244.            MVKL    .S2     _disChan,B6       ; |89| 
  245.            MVKH    .S2     _GIO_submit,B5    ; |89| 
  246.            MVKH    .S2     _disChan,B6       ; |89| 
  247.            CALL    .S2     B5                ; |89| 
  248.            LDW     .D2T1   *B6,A4            ; |89| 
  249.            MV      .S1     A12,A6            ; |89| 
  250.            MV      .L2     B11,B4            ; |89| 
  251.            ZERO    .D2     B6                ; |89| 
  252.            ZERO    .D1     A8                ; |89| 
  253. ||         ADDKPC  .S2     RL11,B3,0         ; |89| 
  254. RL11:      ; CALL OCCURS                     ; |89| 
  255.            BNOP    .S1     L1,2              ; |90| 
  256.            MVKL    .S1     _SCOM_getMsg,A3   ; |71| 
  257.            MVKH    .S1     _SCOM_getMsg,A3   ; |71| 
  258.            NOP             1
  259.            ; BRANCH OCCURS                   ; |90| 
  260. ;******************************************************************************
  261. ;* STRINGS                                                                    *
  262. ;******************************************************************************
  263. .sect ".const"
  264. SL1: .string "/VP2DISPLAY",0
  265. SL2: .string "PROCTOOUT",0
  266. SL3: .string "OUTTOPROC",0
  267. ;******************************************************************************
  268. ;* UNDEFINED EXTERNAL REFERENCES                                              *
  269. ;******************************************************************************
  270. .global _SCOM_open
  271. .global _SCOM_putMsg
  272. .global _SCOM_getMsg
  273. .global _UTL_stsStartFunc
  274. .global _UTL_stsStopFunc
  275. .global _GIO_control
  276. .global _GIO_create
  277. .global _GIO_submit
  278. .global _yuv420to422
  279. .global _EVMDM642_I2C_hI2C
  280. .global _EVMDM642_vDisParamsChan
  281. .global _EVMDM642_vDisParamsSAA7121
  282. .global _extHeap
  283. .global _utlstsDispTime