home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / ASM / ASMLIB40.ZIP / ASM4DEMO.ZIP / NEEDS87.ASM < prev    next >
Encoding:
Assembly Source File  |  1994-06-20  |  416 b   |  29 lines

  1. include    asm.inc
  2.  
  3. public    needs87
  4. extrn    mathchip:proc, getkey:proc
  5.  
  6. .data
  7. errmsg    db 'Math coprocessor required',7,0Dh,0Ah,'$'
  8.  
  9. .code
  10. needs87    proc
  11.     call    mathchip
  12.     test    ax,ax
  13.     jnz    exit        ; OK if math coprocessor found
  14.  
  15. ; no 8087 - print error msg, clean up stack & go back to menu
  16.     lea    dx,errmsg
  17.     mov    ah,9
  18.     int    21h
  19.     call    getkey
  20.     pop    ax
  21. IF @codesize
  22.     pop    ax
  23. ENDIF
  24. exit:
  25.     ret
  26. needs87    endp
  27.  
  28.     end
  29.