|
|
Atari coding BBS
Optimisation question |
Posted by: Sallafranque/Thadoss
|
May,02.2012-19:07
|
Hi all,
A little question :
I want to copy a 559*155 image as fast as possible on Falcon.
First, I did a move.l (a0)+,(a1)+ copy with 2 loops (1 for x and 1 for y)
Then, I optimized a lot by using
movea.l screen_adr,a5
add.l #1152*155-512,a5
movea.l pictures_buffer,a6
add.w player_position,a6
add.w player_position,a6
rept 150
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d7/a0-a4
movem.l d0-d7/a0-a4,-(a5)
movem.l (a6)+,d0-d3
movem.l d0-d3,-(a5)
sub.l #512,a5
add.l #(559-320)*2,a6
endr
I have 2 questions :
- Is there a way to use also a7 without breaking everything ?
- Is there a faster way to do the job (on falcon) ?
Best regards
Thadoss
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Optimisation question
|
Sallafranque/Thadoss
|
May,02.2012-19:07
|
Re: Optimisation question
|
Sallafranque/Thadoss
|
May,02.2012-19:10
|
Re: Optimisation question
|
Cyprian
|
May,02.2012-19:39
|
Re: Optimisation question
|
Bod/STAX
|
May,02.2012-22:02
|
Re: Optimisation question
|
evil
|
May,03.2012-14:43
|
Re: Optimisation question
|
evil
|
May,03.2012-17:16
|
Re: Optimisation question
|
defjam
|
May,03.2012-17:33
|
Re: Optimisation question
|
mikro
|
May,03.2012-10:11
|
Re: Optimisation question
|
mikro
|
May,03.2012-10:12
|
Re: Optimisation question
|
gloky
|
May,03.2012-03:50
|
Re: Optimisation question
|
Sallafranque/Thadoss
|
May,03.2012-18:46
|
Re: Optimisation question
|
ggn
|
May,04.2012-08:01
|
Re: Optimisation question
|
gloky
|
May,04.2012-17:16
|
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.
|
|
|