|
Atari coding BBS
Re: Clear 1 bpl fast? |
Posted by: evil
|
Sep,12.2009-18:07
|
The blitter beats it easily.
Here's a full bliter setup for clearing one bpl:
lea.l $ffff8a00.w,a0 ;32 byte halftone ram
rept 16/2
clr.l (a0)+
endr
move.w #0,$ffff8a20.w ;source x inc
move.w #0,$ffff8a22.w ;source y inc
move.l empty_adr,$ffff8a24.w ;source address
move.w #-1,$ffff8a28.w ;endmask 1
move.w #-1,$ffff8a2a.w ;endmask 2
move.w #-1,$ffff8a2c.w ;endmask 3
move.w #8,$ffff8a2e.w ;dest x inc
move.w #8,$ffff8a30.w ;dest y inc
move.l screen_adr,$ffff8a32.w ;destination address
move.w #20,$ffff8a36.w ;x count (n words per line to copy)
move.w #200,$ffff8a38.w ;y count (n lines to copy)
move.b #%00000001,$ffff8a3a.w ;blit hop (halftone mix)
move.b #%00000000,$ffff8a3b.w ;blit op (logic op)
move.b #%11000000,$ffff8a3c.w ;blitter control, start blitter
Most registers can be inited in beforehand so you only need a couple for each clear (I forgot which so you have to do some tests there).
--
Anders Eriksson
ae@dhs.nu
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Clear 1 bpl fast?
|
Per Almered (XiA)
|
Sep,12.2009-13:05
|
Re: Clear 1 bpl fast?
|
frank_c_b
|
Sep,12.2009-14:31
|
Re: Clear 1 bpl fast?
|
RA/pdx
|
Sep,12.2009-15:38
|
Re: Clear 1 bpl fast?
|
evil
|
Sep,12.2009-18:07
|
Re: Clear 1 bpl fast?
|
Per Almered (XiA)
|
Sep,12.2009-21:53
|
Re: Clear 1 bpl fast?
|
Per Almered (XiA)
|
Sep,12.2009-22:13
|
Re: Clear 1 bpl fast?
|
Frank_c_b
|
Sep,12.2009-22:37
|
Re: Clear 1 bpl fast?
|
Per Almered (XiA)
|
Sep,12.2009-22:43
|
Re: Clear 1 bpl fast?
|
frank_c_b
|
Sep,12.2009-22:47
|
Re: Clear 1 bpl fast?
|
Per Almered (XiA)
|
Sep,12.2009-22:56
|
Re: Clear 1 bpl fast?
|
frank_c_b
|
Sep,12.2009-23:06
|
Re: Clear 1 bpl fast?
|
Frank_c_b
|
Sep,12.2009-23:12
|
Re: Clear 1 bpl fast?
|
ggn
|
Sep,12.2009-23:02
|
Re: Clear 1 bpl fast?
|
Bod
|
Sep,13.2009-20:23
|
Re: Clear 1 bpl fast?
|
Per Almered (XiA)
|
Sep,14.2009-21:11
|
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.
|