[A83] Re: The Working Of Floating Point Numbers


[Prev][Next][Index][Thread]

[A83] Re: The Working Of Floating Point Numbers




What is the DAA instruction and what is 8.8 format?

Thanks


Quoting David Phillips <david@acz.org>:

> 
> That is certainly easier.  Usually for scores or health, you can use
> whole
> numbers, which are easy to display as base 10.  Another good trick is
> to
> keep them as hex, which are significantly easier to display (no
> division).
> You can do this easily with the DAA instruction.  Fixed point is very
> easy
> to do in 8.8 format.
> 
> > Just a word of advice to anyone working with fractions: use
> > fixed point arithmetic and powers of 2 if you have to do
> > things in real time (like displaying scores or HP...), and
> > when you don't really need to calculate with those 14
> > digits provided by the builtin FP routines.
> 
> 
> 



Follow-Ups: References: