Re: 16 bit subtraction with ABS function
- From: "BLuRry" <brendan.robert@xxxxxxxxx>
- Date: 22 Mar 2006 07:17:06 -0800
Well... you don't necessarily need fancy fixed-point math. You could
hack it by doing 16-bit integer math and discard the low-byte when you
want the "whole" number. That way, your sine table can have values 0
throught 255 and you only have to use the high-byte for the "whole"
number bit. This is more or less how I implemented it in the raycaster
engine, except I used values 0-127 so I could do signed math more
easily. Of course, now that I think about it, I didn't have to do
that. :-) Ah well, it's a learning experience.
.
- References:
- 16 bit subtraction with ABS function
- From: aiiadict
- Re: 16 bit subtraction with ABS function
- From: Michael J. Mahon
- Re: 16 bit subtraction with ABS function
- From: aiiadict
- 16 bit subtraction with ABS function
- Prev by Date: Re: 16 bit subtraction with ABS function
- Next by Date: Re: work in progress (circle draw from assembly)
- Previous by thread: Re: 16 bit subtraction with ABS function
- Next by thread: APU ARITHMETIC 9511 CCS7811
- Index(es):
Relevant Pages
|