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

Re: A85: Why do anything and another question.




Erik L Gillespie wrote:
> 
> The ROM square root would be helpful but I'd like one as optimized as
> possible and the one in ROM definitely is not.
> 
> A 32-bit floating point can't be really fast but an optimized ASM version
> could be fastER than the default one on the calc.  Simple things like
> plotting a point have even been proven to be faster with optimized asm in
> something such as ZShell.

What do think the ROM code is written in?  The ROM code is written in
the Z80's native machine code, so barring incompetence, TI's routines
are probably as good as any other.  Considering square root routines are
useful for many platforms, TI probably modified an existing square root
routine to work with its specific floating-point number format.  So if
you use TI's routines, you not only don't have to write them yourself,
but you can also store floating-point variabes in your program in TI's
format.

Ben


References: