Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!mcsun!ukc!tcdcs!swift.cs.tcd.ie!vax1.tcd.ie!smcgerty From: smcgerty@vax1.tcd.ie Newsgroups: comp.sys.amiga.programmer Subject: Re: New life for MOVEM! Message-ID: <1991Feb21.115145.7828@vax1.tcd.ie> Date: 21 Feb 91 11:51:45 GMT References: <1991Feb11.160212.7749@vax1.tcd.ie> <19100@cbmvax.commodore.com> Organization: Trinity College Dublin Lines: 37 In article <19100@cbmvax.commodore.com>, jesup@cbmvax.commodore.com (Randell Jesup) writes: > In article <1991Feb11.160212.7749@vax1.tcd.ie> smcgerty@vax1.tcd.ie writes: >>Here's a little trick that someone might find useful: >>(maybe its common knowlage?) > Yes. Not judging by the response I got... Remember, there's always someone lower than you on the learning curve.... > [example of movem-loop follows..] > Or you could use CopyMem() (or CopyMemQuick() when you know the source > and destination are aligned). They use movem-loops when possible. (In > fact, under 2.0 CopyMem is adaptive to the processor in use). > Suprising what you can do when you use the OS.... > -- > Randell Jesup, Keeper of AmigaDos, Commodore Engineering. Hey, I don't doubt the OS is very fast and neat; we all use it quite often, and its great etc etc.. However, as far as giving people a deeper understanding of 68000 programming is concerned , an example of a movem-loop in assembly is a bit better than a recommendation to use an OS routine. By writing my example, I wasn't really trying to fulfill someone's desire to have a fast-copy-memory routine, but instead I wanted to stimulate an interest in the techniques of using the 68000 efficiently. If everyone purely relied on OS routines, without knowing how they worked, then there would be a lot more ignorance about the nitty-gritty techniques of programming the Amiga. Re-inventing the wheel is often the best way of educating yourself. I find it helpful, and I reckon others do too. ---------------------------------------------------------------------------- | / T | / Stephen John McGerty | Amiga // | | / | |/ smcgerty@vax1.tcd.ie (C.Sci.) | "Hmm.. No, nothing." \\// | |__________________________________________|_______________________________|