home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / windows / win87emu / win87em.asm < prev    next >
Assembly Source File  |  1993-03-11  |  661b  |  32 lines

  1. ; WIN87EM.ASM
  2. ; Author: Pat Ritchey,  CIS:[70007,4660]
  3. ;
  4. ; The __FPMATH function exported by WIN87EM.DLL uses CPU registers to
  5. ; pass parameters.  This requires an assembler module since the standard
  6. ; BP entry code will trash the AX register.  __FPMATH simply pushes the
  7. ; CPU registers that contains parameter, establishes DS addressability
  8. ; and calls the BP7 procedure FPMATH.
  9.  
  10. DATA SEGMENT
  11. DATA ENDS
  12.  
  13. CODE SEGMENT
  14. ;
  15.      EXTRN FPMATH:FAR
  16.      PUBLIC __FPMATH
  17. ;
  18. __FPMATH PROC FAR
  19.    push ds
  20.    push bx
  21.    push dx
  22.    push ax
  23.    mov  ax,SEG DATA
  24.    mov  ds,ax
  25.    call FPMATH
  26.    pop  ds
  27.    ret
  28. __FPMATH ENDP
  29.  
  30. CODE ENDS
  31.      END
  32.