TrashXMMreg.asm 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. ; **-TrashXMMReg
  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 2 in a set of three. The other
  19. ; functions are...
  20. ;
  21. ; InitXMMReg
  22. ; VerifyXMMReg
  23. ;
  24. ; Assumptions:
  25. ; No necessary for this function to work properly but
  26. ; IntiXMMReg should have been called to initilize the
  27. ; XMM registers to a predetermined value
  28. ;
  29. ; Input:
  30. ; None
  31. ;
  32. ; Output:
  33. ; No return value. But XMM registers
  34. ; 0, 1, 2 written to 0's
  35. ;
  36. ;
  37. .686P
  38. .XMM
  39. .MODEL flat, SYSCALL, os_dos
  40. .DATA
  41. TORQ_CX_DATA SEGMENT PAGE PUBLIC USE32 'DATA'
  42. ALIGN 32
  43. Zeros REAL4 0.0
  44. REAL4 0.0
  45. REAL4 0.0
  46. REAL4 0.0
  47. NAME TrashXMMReg
  48. PUBLIC TrashXMMReg_
  49. PUBLIC _TrashXMMReg
  50. .CODE
  51. ; void TrashXMMReg( void )
  52. TrashXMMReg_:
  53. _TrashXMMReg:
  54. push esi ;safety sh*&
  55. push edi
  56. push ebp
  57. push ebx
  58. push ecx
  59. push edx
  60. movaps xmm0,Zeros
  61. movaps xmm1,Zeros
  62. movaps xmm2,Zeros
  63. Exit:
  64. pop edx ;safety sh*&
  65. pop ecx
  66. pop ebx
  67. pop ebp
  68. pop edi
  69. pop esi
  70. ret
  71. ;************************************************
  72. END