Re: A89: Re: HW1/2 Grayscale Speed (was Re: Grayscale Troubles)
[Prev][Next][Index][Thread]
Re: A89: Re: HW1/2 Grayscale Speed (was Re: Grayscale Troubles)
Scott Noveck wrote:
> movem.l (a0),d0-d4 ;12+8n= 52
> movem.l d0-d4,(a1) ;8 +8n= 48
> adda.w #10,a0 ; 6
> adda.w #10,a1 ; + 6
> ;----------
> ;[repeat 100 times] ; 112 x 100 = 11,200 clocks
> ;Big thanks for Niklas for helping me shave off those 2,000 clocks
>
hmmm. I think you have some errors in your calculations here.
acording to my books, adda.w takes 8+ea calculation, wich is 8 cycles for an
immediate. that changes thoose 6+6 to 16+16. totals 13,200 cycles then.
lea 10(a0),a0 and lea 10(a1),a1 takes only 8 cycles each, and needs no ea calc.
that takes it down to 11600 cycles.
adda.l takes 6 cycles, maybe that is what you have seen? But if so, you have
forgotten to add ea calculation time anyway.
//Olle
References: