home *** CD-ROM | disk | FTP | other *** search
/ 98 Driver Collection MD-0164 / DRIVER_KING_98.iso / CPU / cyrix / ISFPU.ASM < prev    next >
Encoding:
Assembly Source File  |  1993-04-02  |  706 b   |  34 lines

  1. public _isfpu 
  2.  
  3. assume  cs:_TEXT
  4.  
  5. _TEXT   segment byte public 'CODE'
  6. ;**************************************************************************    
  7. ;       Function:    isfpu ()
  8. ;
  9. ;       Purpose:        Determine if FPU is present
  10. ;       Inputs:         None
  11. ;       Output:         ax=1 if FPU present, 0 otherwise
  12. ;**************************************************************************
  13. _isfpu proc near
  14.         .386
  15.         .387
  16.         fninit
  17.         mov     ax, 5a5ah
  18.         fnstsw  ax
  19.         cmp     ax, 0
  20.         jne     no_fpu
  21.         mov     ax, 1
  22.         jmp     done
  23.  
  24. no_fpu:        
  25.         mov     ax, 0
  26. done:
  27.         ret
  28.  
  29. _isfpu  endp
  30. _TEXT   ends
  31. end
  32.  
  33.    
  34.