Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * Copyright © <2010>, Intel Corporation.
  3.  *
  4.  * This program is licensed under the terms and conditions of the
  5.  * Eclipse Public License (EPL), version 1.0.  The full text of the EPL is at
  6.  * http://www.opensource.org/licenses/eclipse-1.0.php.
  7.  *
  8.  */
  9. // Kernel name: WriteRecon_C_8x4.asm
  10. //
  11. //  $Revision: 10 $
  12. //  $Date: 10/03/06 5:28p $
  13. //
  14.  
  15.  
  16. //#if !defined(__WRITERECON_C_8x4__)            // Make sure this is only included once
  17. //#define __WRITERECON_C_8x4__
  18.  
  19.  
  20.         // TODO: Why did I use p0?
  21. #ifndef MONO
  22.     add (1)             p0:w                                    pERRORC:w                               -16:w
  23.         mov (16)        mbMSGPAYLOADC(0,0)<2>   r[p0,0]<32;16,2>:ub                             {NoDDClr}
  24.         mov (16)        mbMSGPAYLOADC(0,1)<2>   r[p0,128]<32;16,2>:ub                   {NoDDChk}
  25.         mov (16)        mbMSGPAYLOADC(1,0)<2>   r[p0,32]<32;16,2>:ub                    {NoDDClr}
  26.         mov (16)        mbMSGPAYLOADC(1,1)<2>   r[p0,128+32]<32;16,2>:ub                {NoDDChk}
  27. #else   // defined(MONO)
  28.         mov (16)        mbMSGPAYLOADC(0)<1>             0x80808080:ud {Compr}
  29. #endif  // !defined(MONO)
  30.  
  31.  #if defined(MBAFF)
  32.         add (1)         pMSGDSC:ud                              gFIELDFLAGS:uw                  MSG_LEN(2)+nDWBWMSGDSC+nBDIX_DESTC+ENWRCOM:ud
  33.  #elif defined(FIELD)
  34.         add (1)         pMSGDSC:ud                              gFIELDFLAGS:uw                  MSG_LEN(2)+nDWBWMSGDSC_TF+nBDIX_DESTC+ENWRCOM:ud
  35.  #endif
  36.  
  37.     asr (1)             gMSGSRC.1:d                             gMSGSRC.1:d                                     1:w     {NoDDClr}
  38.     mov (1)             gMSGSRC.2:ud                    0x0003000f:ud                                   {NoDDChk} // NV12 (16x4)
  39.  
  40. #if defined(FRAME)
  41.     send (8)    gREG_WRITE_COMMIT_UV<1>:ud              mMSGHDRCW                               gMSGSRC<8;8,1>:ud               DAPWRITE        MSG_LEN(2)+nDWBWMSGDSC+nBDIX_DESTC+ENWRCOM
  42. #else
  43.     send (8)    gREG_WRITE_COMMIT_UV<1>:ud              mMSGHDRCW                               gMSGSRC<8;8,1>:ud               DAPWRITE        pMSGDSC:ud
  44. #endif  // defined(FRAME)
  45.  
  46. //#endif        // !defined(__WRITERECON_C_8x4__)
  47.