Xref: utzoo comp.arch:3802 comp.sys.m68k:801 comp.misc:2047 sci.crypt:921 Path: utzoo!mnetor!uunet!portal!atari!imagen!geof From: geof@imagen.UUCP (Geoffrey Cooper) Newsgroups: comp.arch,comp.sys.m68k,comp.misc,sci.crypt Subject: Re: conversion algorithm, floating pt formats Message-ID: <1621@imagen.UUCP> Date: 4 Mar 88 05:50:15 GMT References: <3910@batcomputer.tn.cornell.edu> Distribution: comp Organization: IMAGEN Corporation, Santa Clara, CA 95052-8101 Lines: 13 Keywords: IEEE format to BCD format, 68881,C Summary: 68881 does it all In article <3910@batcomputer.tn.cornell.edu>, padama@batcomputer.tn.cornell.edu (padama) writes: > Does anyone know of an algorithm for converting IEEE format floating point > numbers to bcd floating point? You're in luck. BCD and IEEE are two formats supported by the 68881 hardware. The machine co-instructions of the 68881-68020 combination include commands to fetch a number from either format into a register and write it back in either format. So you can accomplish what you want in two 68881 FMOVE.x instructions. See the manual for details. - Geof -- {decwrl,sun,saber}!imagen!geof