Metropoli BBS
VIEWER: math_wc.asm MODE: TEXT (ASCII)
; Math Library to be used in C programs (WATCOM)

; results are returned in CPU regs

include qlib.inc
include math.inc
include string.inc
include errno.inc

.data
_WC_ equ 1
_math_typ db 1
include math_com.asm
include ftoa.asm

.code
;this was stripped out of WATCOM Libs
_CHP proc  ;chop!!!
  push    eax
  fstcw   wptr[esp]
  fwait    
  push    dptr[esp]
  mov     byte ptr [esp+1],1fH
  fldcw   wptr[esp]
  frndint 
  fldcw   wptr[esp+4]
  fwait    
  add esp,8
  ret
_CHP endp

end
[ RETURN TO DIRECTORY ]