A85: Re: Re: Re: Scrolling


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

A85: Re: Re: Re: Scrolling



Whoops!  I relooked at the original question,(scroll 8 bts, not just 1)
so disregard all parts of my reply that say it wont work becasue of a whole byet.
but, the rest is still applicable.
Jonathan Kaus
 
-----Original Message-----
From: Kaus <kaus@cybrzn.com>
To: assembly-85@lists.ticalc.org <assembly-85@lists.ticalc.org>
Date: Friday, August 07, 1998 6:11 PM
Subject: A85: Re: Re: Scrolling

 
-----Original Message-----
From: Dines Christy Justesen <c958362@student.dtu.dk>
To: assembly-85 <assembly-85@lists.ticalc.org>
Date: Friday, August 07, 1998 9:41 AM
Subject: A85: Re: Scrolling

>
>Wouldn't the following work:
>
>SLeft:
>  LD HL,$FC00+1 ; Scroll left
>  LD DE,$FC00
>  lD BC,1023
>  LDIR
>  RET
>
>SRight:
>  LD HL,$FC00+1022 ; Scroll right
>  LD DE,$FC00+1023
>  lD BC,1023
>  LDDR
>  RET
>
>SUp:
>  LD HL,$FC00+16
>  LD DE,$FC00
>  LD BC,1024-16
>  LDIR
>  RET
>
>SDown:
>  LD HL,$FC00+1023-16
>  LD DE,$FC00+1023
>  LD BC,1024-16
>  LDDR
>  RET
>
>Dines
>-----Original Message-----
 
No.  this would do a lot of wierd stuff.
first of all, it moves 8 pixels over left and right
  Next of all, it dsnt keep the screen intact
the image that is
 
if  the screen looks like this: (greatly simplified)
 
 
abcdefg
hijklmn
opqrstu
 
after your move right routine, it would look like this:
 
aabcdef
ghijklm
nopqrst
 
see what i mean?
 
it should be:
 
aabcdef
hhijklm
oopqrst
 
In theses examples i didnt protray the 8pixel movments instead of one.  i greatly simplified.
 
Jonathan Kaus