Re: A89: matrix


[Prev][Next][Index][Thread]

Re: A89: matrix




you dont have much of a choice more than move.l (Ax)+,(Ay)+
you can though speed it up some by makeing more moves per loop.
like this:
	move.w	(matrixlenght/16-1),d0
memcpy:
	move.l (a0)+,(a1)+
	move.l (a0)+,(a1)+
	move.l (a0)+,(a1)+
	move.l (a0)+,(a1)+
	dbra	d0,memcpy

the more moves in the loop, the faster it gets.. but bigger.. and the more moves
there already is, the less speed is gained by adding another..

//Olle

S43R80@aol.com wrote:
> 
> what is the BEST way to move a matrix to another memory address...for
> instance if i may need a matrix later and want to preserve it before i alter
> it then what is the best way to do this...
> ie:
> matrix:
>  dc.b 1234
>  dc.b 1234...or whatever...
> and i want to move it to memory positon 'matrix2'
> 
> i know how i would do this...but i would like to know of the most efficient
> way
> 
> -Steven


Follow-Ups: References: