|
Atari coding BBS
Re: Blitter in ST / Falcon |
Posted by: Cyprian
|
Apr,01.2008-02:43
|
one year ago, during testing of STE blitter I prepared faster version of following C2P:
*
moveq #0,d2
move.w (a1)+,d2
lsl.w #4,d2
or.w (a1)+,d2
lsl.l #2,d2
move.l (a2,d2.l),d2
movep.l d2,Chunky_Render_licz(a0)
moveq #0,d2
move.w (a1)+,d2
lsl.w #4,d2
or.w (a1)+,d2
lsl.l #2,d2
move.l (a2,d2.l),d2
movep.l d2,1+Chunky_Render_licz(a0)
*
It bases on three blitter function: merge, clear and shift:
*
blitter_function_merge
blitter_function_clear
blitter_function_shift
move.l (a1)+,d2
move.l (a2,d2.l),d2
movep.l d2,Chunky_Render_licz(a0)
move.l (a1)+,d2
move.l (a2,d2.l),d2
movep.l d2,1+Chunky_Render_licz(a0)
*
As far as I remember It's faster about 10 or 20 percent.
The Second advantage is that during blitting we can do MUL or DIV instructions.
There are two disadvantages:
- orginal buffer is destroyed;
- the only real STE can do this Blitter-C2P faster than non-blitter C2P
(Steem, Hatari and SainT are not able to MUL/DIV during blitting)
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Blitter in ST / Falcon
|
mikro
|
Mar,19.2008-14:25
|
Re: Blitter in ST / Falcon
|
PeP
|
Mar,19.2008-14:50
|
Re: Blitter in ST / Falcon
|
earx
|
Mar,20.2008-12:41
|
Re: Blitter in ST / Falcon
|
frost
|
Mar,19.2008-17:02
|
Re: Blitter in ST / Falcon
|
havoc
|
Mar,20.2008-10:19
|
Re: Blitter in ST / Falcon
|
Peter
|
Mar,20.2008-10:25
|
Re: Blitter in ST / Falcon
|
earx
|
Mar,20.2008-12:43
|
Re: Blitter in ST / Falcon
|
PeP
|
Mar,20.2008-16:34
|
Re: Blitter in ST / Falcon
|
earx
|
Mar,20.2008-19:32
|
Re: Blitter in ST / Falcon
|
Cyprian
|
Apr,01.2008-02:43
|
Re: Blitter in ST / Falcon
|
quackmore
|
Apr,21.2008-08:18
|
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.
|