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

Atari coding BBS
 
Re: x+y + offset in screen
Posted by: Defjam Mar,15.2009-23:23 


I used this one:

lea xtab,a0
lea ytab,a1
;---
; D0...x
; D1...y
; A6...screen
add.w d0,d0
add.w d0,d0
move.l (a0,d0.w),d0 ; pixel_data | offset
add.w d1,d1
add.w (a1,d1.w),d0 ; + y offset
move d0,d1 ; offset
swap d0 ; pixel_data
or.w d0,(a6,d1.w) ; set pixel

I guess it's easy to see how xtab & ytab have to look like..

Regards,
Defjam













[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