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

Atari coding BBS
 
Re: 4 pixel rasters
Posted by: ultra Jun,09.2006-10:17 

hi crea,

yes i did yesterday some more test... and came to the same conclusion...

the "effect" just changes the background color
means:
a0 = $ff8240
d0 = $600
d1 = $000

so a:
add.w d0,(a0)
move.w d1,(a0)
produces a 4 pixel colorswitch...


the odd clockcycle count i already discovered is not resposible
for this... tried it with add.l which has a even count. which did not produce
a 4 cycle switch it was a 8 pixel one...

something like
lea $ff8240,a0
lea $ff8242,a1

add.l d0,(a0)
move.w d1,(a1)
ok this changes color #1...
but anyway the idea was rubbish


was you can see in your list:

0 nop - prefetch [ add.w d0,(a0) ]
1 add - read data from (a0)
2 add - prefetch [ move.w d1,(a0) ]
3 add - write-out color is changed after this writeout
4 move - write-out color is changed after this writeout
5 move - prefetch [ add.w d2,(a0) ]
6 add - read
7 add - prefetch [ move.w d3,(a0) ]
8 add - write-out

so quite logical 4 pixel colorswitch ...


i was wondering why it does not work when you do something like this:
move.w d0,(a0)
move.w d1,(a0)

this produces a 8 pixel switch...
but this is quite clear... (hope this is correctly)

0 nop - prefetch [ move.w d0,(a0) ]
1 move - write-out [ move.w d0,(a0) ] color is changed after this writeout
2 move - prefetch [ move.w d1,(a0) ]
3 move - write-out [ move.w d1,(a0) ] color is changed after this writeout
4 move - prefetch [ move.w d0,(a0) ]
....
so the explanation why it produces a 4 pixel colorswitch is that add prefetches the
move already when the add is executed... this is not possible in the move...
for example it works too with:

eor. w d0,(a0)
move.w d1,(a0)

same as add...


i hope i got it know correctly ;))

ultra








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

Topic Posted by  Date 
4 pixel rasters ultra Jun,08.2006-00:40
  Re: 4 pixel rasters ultra Jun,08.2006-00:43
    Re: 4 pixel rasters evil Jun,08.2006-08:20
      Re: 4 pixel rasters ultra Jun,08.2006-08:45
        Re: 4 pixel rasters earx Jun,08.2006-08:55
          Re: 4 pixel rasters earx Jun,08.2006-08:56
            Re: 4 pixel rasters utlra Jun,08.2006-09:00
              Re: 4 pixel rasters ultra Jun,08.2006-10:17
                Re: 4 pixel rasters ultra Jun,08.2006-11:02
                  Re: 4 pixel rasters earx Jun,08.2006-11:20
                    Re: 4 pixel rasters ultra Jun,08.2006-11:37
                      Re: 4 pixel rasters earx Jun,08.2006-16:35
                Re: 4 pixel rasters Creature XL Jun,09.2006-09:31
                  Re: 4 pixel rasters ultra Jun,09.2006-10:17
                    Re: 4 pixel rasters ultra Jun,09.2006-10:36
                Re: 4 pixel rasters Leonard Jun,13.2006-10:27
                  Re: 4 pixel rasters alien st/cnx Jun,15.2006-18:34
                    Re: 4 pixel rasters Leonard Jun,19.2006-11:12
                      Re: 4 pixel rasters alien st/cnx Jun,21.2006-03:08
                        Re: 4 pixel rasters Leonard Jun,21.2006-17:26
                          Re: 4 pixel rasters evil Jun,21.2006-18:30
                        Re: 4 pixel rasters ggn/KUA Jun,22.2006-08:48


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-2025 Dead Hackers Society Contact: Anders Eriksson