On 7/11/06, Patrick McNamara <[EMAIL PROTECTED]> wrote:
> For the sake of simplification of the hardware, I'm wasting half the > possible counter values. Ooops, perhaps my code is not quite correct after all. This I used the width of the bit field to calculate the max value when "complementing" a number. However since I defined the bit field as 20:9, I would use 4097 to calculate the complement. The actual argument goes in bits 19:9 and bit 20 should be 0.
The semantics of the number are "how many extra times, besides the first, should I execute this instruction." When the high bit it set (2048 or greater), the number of extra iterations is already zero. Now, since we like to think of total iterations, I mapped 0 extra to 1 total, so to compute the correct code to store in the field, we subtract x from 2049. _______________________________________________ Open-graphics mailing list [email protected] http://lists.duskglow.com/mailman/listinfo/open-graphics List service provided by Duskglow Consulting, LLC (www.duskglow.com)
