Re: A82: Fixed point math & trig routines needed!


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

Re: A82: Fixed point math & trig routines needed!




It uses 16 bit fix point numbers. 8 bits is used for the integer part the
rest for the fraction. Example :

0080 = 1/2

Dines

_______________________________________

Dines Justesen
Email: dines@post1.com or
       c958362@student.dtu.dk
WWW  : http://www.gbar.dtu.dk/~c958362/
_______________________________________

On Wed, 24 Jun 1998 ADAMMAN106@aol.com wrote:

> 
> I think I'm going to start writing a demo raycasting maze while I wait for
> breakthroughs from OBD and Will Dempster, the people who are trying to find
> the fatal Dr. Mario bug.  I have a working raycaster on my calculator, but
> it's in BASIC and runs at a speed of about 1 frame per 2 minutes, not exactly
> realtime.
> So here's what I need:
> 
> 1.) addition/subtraction/multiplication/division routines that input and
> output numbers with a fixed decimal of 2 or 3 places.
> 
> 2.) I don't really need a trig routine, but I will use the format of the math
> routines to make trig tables.
> 
> I would make the routines myself, but small and fast routines aren't exactly
> my expertise.
> Thank you in advance for any help!
> 
> ~Adamman
> 
> PS: I found Dines' math routines on ticalc.org but it doesn't say the format
> of the numbers in the file.  If Dines could explain this than maybe I will use
> those routines.  Nice work, Dines!
> 


References: