From: ceriel Date: Tue, 15 Aug 1989 09:02:38 +0000 (+0000) Subject: fix: did not handle 0.0 right X-Git-Tag: release-5-5~2287 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=650c178631ec51f31f29e08f152e64b73640b787;p=ack.git fix: did not handle 0.0 right --- diff --git a/mach/m68020/libem/fp68881.s b/mach/m68020/libem/fp68881.s index 140ca69f0..e8474a0e3 100644 --- a/mach/m68020/libem/fp68881.s +++ b/mach/m68020/libem/fp68881.s @@ -128,8 +128,13 @@ fmove.l fp1,d0 add.l #1,d0 fgetman fp0 + fbne 1f + clr.l d0 + bra 2f +1: fmove.l #2,fp1 fdiv fp1,fp0 +2: fmove.s fp0,(4,a1) move.l d0,(a1) jmp (a0) @@ -156,8 +161,13 @@ fmove.l fp1,d0 add.l #1,d0 fgetman fp0 + fbne 1f + clr.l d0 + bra 2f +1: fmove.l #2,fp1 fdiv fp1,fp0 +2: fmove.d fp0,(4,a1) move.l d0,(a1) jmp (a0)