Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.1 KiB

  1. page ,132
  2. title wfpinit - Functions for initializing win87em.exe from a DLL
  3. ;***
  4. ;wfoinit.asm - Functions for initializing win87em.exe from a DLL
  5. ;
  6. ; Copyright (c) 1988-89, Microsoft Corporation
  7. ;
  8. ;Purpose:
  9. ; Functions for initializing win87em.exe from a DLL
  10. ;
  11. ;Revision History:
  12. ; 04/06/89 WAJ Added this header.
  13. ; 04/06/89 WAJ Cleaned up source, Save more registers in __fpsignal
  14. ;
  15. ;*******************************************************************************
  16. memL = 1
  17. ?PLM = 1 ; Pascal naming
  18. ?WIN = 1 ; Windows calling convention
  19. .xlist
  20. include cmac_mrt.inc ; old, customized masm510 cmacros
  21. .list
  22. externFP POSTQUITMESSAGE
  23. sBegin code
  24. assumes cs,code
  25. assumes ds,data
  26. ;
  27. ; Windows floating-point emulator error routine
  28. ; (replaces CFPSIG.ASM in regular C math runtime)
  29. ;
  30. ; The behavior is to die with error code.
  31. ; (Calling POSTQUITMESSAGE doesn't cause immediate termination of
  32. ; the Windows "task", but sends a WM_QUIT message
  33. ; to the application queue of the current Windows app.)
  34. ;
  35. cProc __fpsignal,<PUBLIC,FAR>,<es,bx,cx,dx>
  36. cBegin
  37. sub ah, ah
  38. push ax
  39. call POSTQUITMESSAGE
  40. cEnd
  41. sEnd code
  42. end