Dead Hackers Society
Other BBSes »
 
 
Demoscene  Coding  CT60  Buy/sell

Atari coding BBS
 
Re: x+y + offset in screen
Posted by: wiztom Mar,10.2009-23:13 

i counted cycles out of vague memory :P i know there is no barreshift, it takes 6+2n where n is shift count. and i meant better then precalc in memory, not cycles. with cycles it's ofcoz better to have table with x-offset and bit pattern.

consulting my ancient and dusted clocktable (might contain errors, 9pin matrix letters are fading)
lsl.w #5,d1 16 (6+5*2)
move.w d1,d4 4
lsl.w #2,d1 12 (6+2*2)
( better to use add.w d1,d1; add.w d1,d1; for total on 8)
add.w d1,d4 4
: 36 (or 32 with adds.)

versus multiplication which is on nicer side of cycles as 160 has only 2 bits set.

move.w d1,d4 4
mulu #160,d4 44 (38+2*2)
swap d4 8
: 56

or did i still miss something?

sleepy and fluish wiztom.







[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
x+y + offset in screen gloky Mar,08.2009-17:19
  Re: x+y + offset in screen Randy Mar,09.2009-13:19
    Re: x+y + offset in screen nerve Mar,09.2009-14:03
      Re: x+y + offset in screen gloky Mar,09.2009-18:58
        Re: x+y + offset in screen gloky Mar,09.2009-19:04
        Re: x+y + offset in screen gloky Mar,09.2009-19:21
          Re: x+y + offset in screen wiztom Mar,09.2009-22:09
            Re: x+y + offset in screen nerve Mar,10.2009-13:22
              Re: x+y + offset in screen wiztom Mar,10.2009-23:13
            Re: x+y + offset in screen glokyy Mar,10.2009-22:58
              Re: x+y + offset in screen gloky Mar,10.2009-23:00
                Re: x+y + offset in screen h3rrv Mar,11.2009-11:08
                  Re: x+y + offset in screen gloky Mar,11.2009-17:41
              Re: x+y + offset in screen nerve Mar,13.2009-12:44
  Re: x+y + offset in screen Defjam Mar,15.2009-23:23
    Re: x+y + offset in screen nerve Mar,16.2009-14:31
    Re: x+y + offset in screen gloky Mar,21.2009-14:49


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson