Path: utzoo!utgpu!cunews!micor!latour!atronx!qpoint!dej From: dej@qpoint.amiga.ocunix.on.ca (David Jones) Message-ID: Newsgroups: comp.sys.amiga.programmer Subject: Re: New life for MOVEM! Distribution: world References: <1991Feb11.160212.7749@vax1.tcd.ie> Date: Sat Feb 23 12:13:53 1991 >In article <1991Feb11.160212.7749@vax1.tcd.ie> smcgerty@vax1.tcd.ie writes: >How about this, which takes about 2/3 of the time of the above: > > LEA Source,A0 > LEA Dest,A1 > MOVE.W #25,D0 ;25*48=1200 bytes >Loop: MOVEM.L (A0)+,D1-D7/A2-A6 ;12 LWs! = 48 bytes > MOVEM.L D1-D7/A2-A6,(A1) > ADDA.L #48,A1 ;since MOVEM can't have (A1)+ as Dest. operand > DBRA D0,Loop > >Anyone got any other tricks? Ya. Save yourself some code. Check out CopyMem() in exec.library (V33 or greater). Disassemble it. Essentially, it is the above code. -- | The Q-Point David Jones |\ Amiga S/W development UUCP: dej@qpoint.amiga.ocunix.on.ca | \ Fido: 1:163/109.8 | \ | \ "I can understand why someone would want to go out, get drunk | -\---- and wake up the next morning with a splitting headache and | / \ absolutely no memory of the night before, but I *cannot* | / \ understand why anyone would want to do that more than once." |/ \ +---------- - Don Elgee