*** log10.s
* 	Double Precision Log Base Ten
*	for Alcyon C
*
*	double log10(d)
*	double d; ( d >= 0 )
*
*	Copyright Atari Corp. 1987,1988
*
*	MDJohnson       2/15/88
***

	.include fpmacro

; log10(x)
	fpinit	log10
	fpidle				; wait for idle state
	move.w	#$5415,FPCMD		; log10(x) -> fp0
	ckcir	#$9608			; ready for double
	move.l	4(sp),FPOP		; write first half
	move.l	8(sp),FPOP		; write second half

	fpidle				; wait for idle state
	move.w	#$7400,FPCMD		; fp0 -> double
	ckcir	#$B208			; ready for double
	move.l	FPOP,d0			; get double
	move.l	FPOP,d1
	rts

