From: MagerValp on
On 25 Apr, 20:14, Glenn Holmer <glenn.hol...(a)gmail.com> wrote:
> On Apr 25, 6:17 am, MagerValp <magerv...(a)gmail.com> wrote:
> > On 25 Apr, 11:57, Glenn Holmer <glenn.hol...(a)gmail.com> wrote:
>
> > > I'm looking for code to quickly scroll the C64 hi-res screen (data
> > > only, not caring about color). I want to scroll 160 scan lines upward
> > > from line 24 to line 15. What's the fastest way to do it?
>
> > Linecrunch:
>
> >  http://noname.c64.org/csdb/forums/index.php?roomid=11&topicid=3607
>
> Thanks, but I was looking for something a bit less exotic (just a good
> algorithm to move the memory).

Linecrunch is the only *quick* way to scroll a hires screen more than
7 pixels. The only other option is a straight memory copy from A to B
(with the usual trade-off between unrolling and generality), which is
about 100x slower.