tskVideoInput.asm
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:16k
- ;******************************************************************************
- ;* TMS320C6x C/C++ Codegen PC Version 4.36 *
- ;* Date/Time created: Wed Mar 22 15:36:42 2006 *
- ;******************************************************************************
- ;******************************************************************************
- ;* GLOBAL FILE PARAMETERS *
- ;* *
- ;* Architecture : TMS320C64xx *
- ;* Optimization : Enabled at level 3 *
- ;* Optimizing for : Speed *
- ;* Based on options: -o3, no -ms *
- ;* Endian : Little *
- ;* Interrupt Thrshld : Disabled *
- ;* Memory Model : Large *
- ;* Calls to RTS : Far *
- ;* Pipelining : Enabled *
- ;* Speculative Load : Enabled *
- ;* Memory Aliases : Presume not aliases (optimistic) *
- ;* Debug Info : No Debug Info *
- ;* *
- ;******************************************************************************
- .asg A15, FP
- .asg B14, DP
- .asg B15, SP
- .global $bss
- _YArray: .usect ".far",691200,8
- _CbArray: .usect ".far",345600,8
- _CrArray: .usect ".far",345600,8
- .global _capChan
- _capChan: .usect ".far",4,4
- .global _capFrameBuf
- _capFrameBuf: .usect ".far",4,4
- ; c:tic6000cgtoolsbinopt6x.exe -t -DI0 -v6400 -q -O3 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI1896_2 C:DOCUME~1ZHAOQI~1LOCALS~1TempTI1896_5 -w C:/ICETEK-DM642-C V2.22/jpeg_motion/obj/
- .sect ".text"
- .global _tskVideoInputStart
- ;******************************************************************************
- ;* FUNCTION NAME: _tskVideoInputStart *
- ;* *
- ;* Regs Modified : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6, *
- ;* B7,B8,B9,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,*
- ;* A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
- ;* B22,B23,B24,B25,B26,B27,B28,B29,B30,B31 *
- ;* Regs Used : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6, *
- ;* B7,B8,B9,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25,*
- ;* A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
- ;* B22,B23,B24,B25,B26,B27,B28,B29,B30,B31 *
- ;* Local Frame Size : 0 Args + 0 Auto + 4 Save = 4 byte *
- ;******************************************************************************
- _tskVideoInputStart:
- ;** --------------------------------------------------------------------------*
- MVKL .S2 _GIO_control,B5 ; |50|
- MVKH .S2 _GIO_control,B5 ; |50|
- || MVKL .S1 _capChan,A3 ; |50|
- CALL .S2 B5 ; |50|
- || MVKH .S1 _capChan,A3 ; |50|
- LDW .D1T1 *A3,A4 ; |50|
- NOP 1
- MVKL .S2 0x10000004,B4 ; |50|
- MVKH .S2 0x10000004,B4 ; |50|
- ZERO .D1 A6 ; |50|
- RL0: ; CALL OCCURS ; |51| ; bypass _tskVideoInputStart upon return
- .sect ".text"
- .global _tskVideoInputInit
- ;******************************************************************************
- ;* FUNCTION NAME: _tskVideoInputInit *
- ;* *
- ;* Regs Modified : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6, *
- ;* B7,B8,B9,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24, *
- ;* A25,A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20, *
- ;* B21,B22,B23,B24,B25,B26,B27,B28,B29,B30,B31 *
- ;* Regs Used : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,B0,B1,B2,B3,B4,B5,B6, *
- ;* B7,B8,B9,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24, *
- ;* A25,A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20, *
- ;* B21,B22,B23,B24,B25,B26,B27,B28,B29,B30,B31 *
- ;* Local Frame Size : 0 Args + 4 Auto + 4 Save = 8 byte *
- ;******************************************************************************
- _tskVideoInputInit:
- ;** --------------------------------------------------------------------------*
- MVKL .S1 _GIO_create,A3 ; |42|
- MVKL .S1 _EVMDM642_I2C_hI2C,A4 ; |40|
- MVKH .S1 _GIO_create,A3 ; |42|
- || MVKL .S2 _extHeap,B4 ; |39|
- MVKH .S1 _EVMDM642_I2C_hI2C,A4 ; |40|
- || MVKH .S2 _extHeap,B4 ; |39|
- CALL .S2X A3 ; |42|
- || LDW .D1T1 *A4,A7 ; |40|
- || LDW .D2T2 *B4,B5 ; |39|
- || MVKL .S1 _EVMDM642_vCapParamsChan,A5 ; |42|
- MVKL .S1 _EVMDM642_vCapParamsChan+72,A6 ; |39|
- MVKH .S1 _EVMDM642_vCapParamsChan,A5 ; |42|
- MVKL .S2 _EVMDM642_vCapParamsSAA7115+16,B4 ; |40|
- || MVKH .S1 _EVMDM642_vCapParamsChan+72,A6 ; |39|
- || STW .D2T2 B3,*SP--(8) ; |35|
- MV .D2X A5,B6 ; |42|
- || MVKH .S2 _EVMDM642_vCapParamsSAA7115+16,B4 ; |40|
- || MVKL .S1 SL1+0,A4 ; |42|
- || ZERO .D1 A8 ; |42|
- ADDKPC .S2 RL1,B3,0 ; |42|
- || MVK .L2 0x1,B4 ; |42|
- || STW .D2T1 A7,*B4 ; |40|
- || ADD .L1X 4,SP,A6 ; |42|
- || STW .D1T2 B5,*A6 ; |39|
- || MVKH .S1 SL1+0,A4 ; |42|
- RL1: ; CALL OCCURS ; |42|
- MVKL .S1 _GIO_control,A3 ; |45|
- MVKL .S2 _capChan,B5 ; |42|
- || MVKH .S1 _GIO_control,A3 ; |45|
- MVKL .S2 _EVMDM642_vCapParamsSAA7115,B6 ; |45|
- CALL .S2X A3 ; |45|
- MVKH .S2 _capChan,B5 ; |42|
- MVKL .S2 0x80000001,B4 ; |45|
- MVKH .S2 _EVMDM642_vCapParamsSAA7115,B6 ; |45|
- MVKH .S2 0x80000001,B4 ; |45|
- ADDKPC .S2 RL2,B3,0 ; |45|
- || MV .D1X B6,A6 ; |45|
- || STW .D2T1 A4,*B5 ; |42|
- RL2: ; CALL OCCURS ; |45|
- LDW .D2T2 *++SP(8),B3 ; |46|
- NOP 4
- RETNOP .S2 B3,5 ; |46|
- ; BRANCH OCCURS ; |46|
- .sect ".text"
- .global _tskVideoInput
- ;******************************************************************************
- ;* FUNCTION NAME: _tskVideoInput *
- ;* *
- ;* Regs Modified : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14, *
- ;* A15,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12, *
- ;* B13,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25, *
- ;* A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
- ;* B22,B23,B24,B25,B26,B27,B28,B29,B30,B31 *
- ;* Regs Used : A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14, *
- ;* A15,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12, *
- ;* B13,SP,A16,A17,A18,A19,A20,A21,A22,A23,A24,A25, *
- ;* A26,A27,A28,A29,A30,A31,B16,B17,B18,B19,B20,B21, *
- ;* B22,B23,B24,B25,B26,B27,B28,B29,B30,B31 *
- ;* Local Frame Size : 0 Args + 64 Auto + 44 Save = 108 byte *
- ;******************************************************************************
- _tskVideoInput:
- ;** --------------------------------------------------------------------------*
- MVKL .S1 _SCOM_open,A3 ; |63|
- MVKH .S1 _SCOM_open,A3 ; |63|
- MV .D1X SP,A31 ; |55|
- CALL .S2X A3 ; |63|
- STW .D2T1 A15,*SP--(112) ; |55|
- STDW .D1T1 A13:A12,*-A31(32)
- STDW .D2T2 B13:B12,*+SP(104)
- STDW .D1T1 A11:A10,*-A31(40)
- || STDW .D2T2 B11:B10,*+SP(96)
- || MVKL .S1 SL2+0,A4 ; |63|
- ADDKPC .S2 RL3,B3,0 ; |63|
- || STW .D2T2 B3,*+SP(92)
- || STW .D1T1 A14,*-A31(24)
- || MVKH .S1 SL2+0,A4 ; |63|
- RL3: ; CALL OCCURS ; |63|
- MVKL .S1 _SCOM_open,A3 ; |64|
- MVKH .S1 _SCOM_open,A3 ; |64|
- MV .D1 A4,A15 ; |63|
- CALL .S2X A3 ; |64|
- MVKL .S1 SL3+0,A4 ; |64|
- ADDKPC .S2 RL4,B3,2 ; |64|
- MVKH .S1 SL3+0,A4 ; |64|
- RL4: ; CALL OCCURS ; |64|
- MVKL .S2 _GIO_submit,B5 ; |66|
- MVKH .S2 _GIO_submit,B5 ; |66|
- || MVKL .S1 _capChan,A3 ; |66|
- MVKH .S1 _capChan,A3 ; |66|
- || CALL .S2 B5 ; |66|
- LDW .D1T1 *A3,A4 ; |66|
- || MV .S1 A4,A14 ; |64|
- MVKL .S2 _capFrameBuf,B10 ; |66|
- MVKH .S2 _capFrameBuf,B10 ; |66|
- MVK .S2 0x80,B4 ; |66|
- ZERO .D2 B6 ; |66|
- || ZERO .S1 A8 ; |66|
- || MV .D1X B10,A6 ; |66|
- || ADDKPC .S2 RL5,B3,0 ; |66|
- RL5: ; CALL OCCURS ; |66|
- MVKL .S2 _YArray,B4
- MVKL .S2 _utlstsCapTime,B6
- MVKH .S2 _YArray,B4
- MVKH .S2 _utlstsCapTime,B6
- MV .D2 B4,B11
- || MVKL .S1 _CbArray,A3
- ADDAW .D2 SP,9,B4 ; |68|
- || MV .D1X B6,A11
- || MVKH .S1 _CbArray,A3
- || MVKL .S2 _CrArray,B5
- MV .D1X B10,A13 ; |66|
- || MVKL .S1 _utlstsCycleTime,A12
- || MVKH .S2 _CrArray,B5
- MV .S2 B5,B13
- || MVKH .S1 _utlstsCycleTime,A12
- || MV .D1X B4,A10 ; |68| Define a twin register
- || MV .D2X A3,B12
- MVKL .S1 _UTL_stsStartFunc,A3
- MVKH .S1 _UTL_stsStartFunc,A3
- NOP 1
- ;*----------------------------------------------------------------------------*
- ;* SOFTWARE PIPELINE INFORMATION
- ;* Disqualified loop: Loop contains a call
- ;*----------------------------------------------------------------------------*
- L1:
- CALL .S2X A3
- ADDKPC .S2 RL6,B3,3
- MV .D1 A11,A4
- RL6: ; CALL OCCURS
- MVKL .S1 _capFrameBuf,A3 ; |76|
- MVKH .S1 _capFrameBuf,A3 ; |76|
- LDW .D1T1 *A3,A3 ; |76|
- ADD .D2 SP,24,B4 ; |84|
- MVK .S2 0x1e0,B6
- MVK .S1 0x2d0,A6
- MV .D1X B4,A4 ; |84|
- LDW .D1T1 *+A3(8),A7 ; |76|
- NOP 3
- ADD .L2 8,SP,B4 ; |84|
- MVKL .S1 _yuv422to420,A7 ; |84|
- || STW .D2T1 A7,*+SP(24) ; |76|
- MVKH .S1 _yuv422to420,A7 ; |84|
- LDW .D1T1 *+A3(12),A5 ; |77|
- LDW .D1T1 *+A3(16),A3 ; |78|
- || CALL .S2X A7 ; |84|
- STW .D2T2 B11,*+SP(8) ; |80|
- STW .D2T2 B12,*+SP(12) ; |81|
- STW .D2T2 B13,*+SP(16) ; |82|
- STW .D2T1 A5,*+SP(28) ; |77|
- ADDKPC .S2 RL7,B3,0 ; |84|
- || STW .D2T1 A3,*+SP(32) ; |78|
- RL7: ; CALL OCCURS ; |84|
- MVKL .S2 _UTL_stsStopFunc,B4
- MVKH .S2 _UTL_stsStopFunc,B4
- CALL .S2 B4
- ADDKPC .S2 RL8,B3,3
- MV .D1 A11,A4
- RL8: ; CALL OCCURS
- MVKL .S1 _SCOM_putMsg,A3 ; |91|
- MVKH .S1 _SCOM_putMsg,A3 ; |91|
- STW .D1T2 B12,*+A10(24) ; |89|
- CALL .S2X A3 ; |91|
- MV .D2X A10,B4 ; |91|
- MV .S1 A15,A4 ; |91|
- STW .D1T2 B13,*+A10(28) ; |90|
- STW .D1T2 B11,*+A10(20) ; |88|
- ADDKPC .S2 RL9,B3,0 ; |91|
- RL9: ; CALL OCCURS ; |91|
- MVKL .S1 _UTL_stsPeriodFunc,A3
- MVKH .S1 _UTL_stsPeriodFunc,A3
- MV .D1 A12,A4
- CALL .S2X A3
- ADDKPC .S2 RL10,B3,4
- RL10: ; CALL OCCURS
- MVKL .S1 _GIO_submit,A3 ; |96|
- MVKL .S2 _capChan,B5 ; |96|
- || MVKH .S1 _GIO_submit,A3 ; |96|
- MVKH .S2 _capChan,B5 ; |96|
- CALL .S2X A3 ; |96|
- LDW .D2T1 *B5,A4 ; |96|
- MVK .S2 0x82,B4
- MV .S1 A13,A6 ; |96|
- ZERO .D1 A8 ; |96|
- ZERO .D2 B6 ; |96|
- || ADDKPC .S2 RL11,B3,0 ; |96|
- RL11: ; CALL OCCURS ; |96|
- MVKL .S2 _SCOM_getMsg,B5 ; |98|
- MVKH .S2 _SCOM_getMsg,B5 ; |98|
- CALL .S2 B5 ; |98|
- MV .D1 A14,A4 ; |98|
- MVK .D2 0xffffffff,B4
- ADDKPC .S2 RL12,B3,2 ; |98|
- RL12: ; CALL OCCURS ; |98|
- BNOP .S1 L1,2 ; |99|
- MVKL .S1 _UTL_stsStartFunc,A3
- || MV .D1 A4,A10 ; |98|
- MVKH .S1 _UTL_stsStartFunc,A3
- NOP 1
- ; BRANCH OCCURS ; |99|
- ;******************************************************************************
- ;* STRINGS *
- ;******************************************************************************
- .sect ".const"
- SL1: .string "/VP0CAPTURE/A/0",0
- SL2: .string "INTOPROC",0
- SL3: .string "PROCTOIN",0
- ;******************************************************************************
- ;* UNDEFINED EXTERNAL REFERENCES *
- ;******************************************************************************
- .global _SCOM_open
- .global _SCOM_putMsg
- .global _SCOM_getMsg
- .global _UTL_stsStartFunc
- .global _UTL_stsStopFunc
- .global _UTL_stsPeriodFunc
- .global _GIO_control
- .global _GIO_create
- .global _GIO_submit
- .global _yuv422to420
- .global _EVMDM642_I2C_hI2C
- .global _EVMDM642_vCapParamsChan
- .global _EVMDM642_vCapParamsSAA7115
- .global _extHeap
- .global _utlstsCapTime
- .global _utlstsCycleTime