InitXMMReg.asm 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ;//==========================================================================
  2. ;//
  3. ;// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. ;// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. ;// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. ;// PURPOSE.
  7. ;//
  8. ;// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
  9. ;//
  10. ;//--------------------------------------------------------------------------
  11. ;
  12. ; **-InitXMMReg
  13. ;
  14. ; This function is meant to be run on a Windows NT system to
  15. ; try and determine if the OS supports the XMM registers or
  16. ; not.
  17. ;
  18. ; This function is number 1 in a set of three. The other
  19. ; functions are...
  20. ;
  21. ; TrashXMMReg
  22. ; VerifyXMMReg
  23. ;
  24. ; Assumptions:
  25. ; None
  26. ;
  27. ; Input:
  28. ; None
  29. ;
  30. ; Output:
  31. ; No return value. But XMM registers
  32. ; 0, 1, 2 initilized to a predetermined
  33. ; value
  34. ;
  35. ;
  36. .686P
  37. .XMM
  38. .MODEL flat, SYSCALL, os_dos
  39. .DATA
  40. TORQ_CX_DATA SEGMENT PAGE PUBLIC USE32 'DATA'
  41. ALIGN 32
  42. PUBLIC XMM0Init
  43. PUBLIC XMM1Init
  44. PUBLIC XMM2Init
  45. XMM0Init REAL4 1.1
  46. REAL4 2.2
  47. REAL4 3.3
  48. REAL4 4.4
  49. XMM1Init REAL4 5.5
  50. REAL4 6.6
  51. REAL4 7.7
  52. REAL4 8.8
  53. XMM2Init REAL4 9.9
  54. REAL4 10.10
  55. REAL4 11.11
  56. REAL4 12.12
  57. NAME InitXMMReg
  58. PUBLIC InitXMMReg_
  59. PUBLIC _InitXMMReg
  60. .CODE
  61. ; void InitXMMReg( void )
  62. InitXMMReg_:
  63. _InitXMMReg:
  64. push esi ;safety sh*&
  65. push edi
  66. push ebp
  67. push ebx
  68. push ecx
  69. push edx
  70. movaps xmm0,XMM0Init
  71. movaps xmm1,XMM1Init
  72. movaps xmm2,XMM2Init
  73. Exit:
  74. pop edx ;safety sh*&
  75. pop ecx
  76. pop ebx
  77. pop ebp
  78. pop edi
  79. pop esi
  80. ret
  81. ;************************************************
  82. END