Re: [cc65] Scrolling

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2001-08-12 15:38:10


Hello Ullrich,

Sunday, August 12, 2001, 3:26:58 PM, you wrote:


UvB> Hi!

UvB> On Sun, Aug 12, 2001 at 02:25:24PM +0200, Dominique Biesmans wrote:
>> Well, the cprintf() function works fine for me too, _except_ that the screen
>> doesn't scroll automatically when printing below the bottom line. Any idea
>> on how to work around that?.

UvB> If you just need to scroll the whole screen, you may use the scroll function
UvB> of the PET ROM, or something like

UvB>         #define scroll()                \
UvB>                 asm ("\tldx\t#$4F");    \
UvB>                 asm ("\tldy\t#$18");    \
UvB>                 asm ("\tclc");          \
UvB>                 asm ("\tjsr\t$FFF0");   \
UvB>                 asm ("\tlda\t#$0D");    \
UvB>                 asm ("\tjsr\t$FFD2")

UvB> Note: The code is untested but you will probably get the idea.

UvB> An additional cscroll() function would be a useful enhancement for the conio
UvB> module, but it has to be implemented separately for each platform.

mmmmh just curious.... shouldn't library-calls be independent of the kernal?
(as in, cscroll() couldnt just call the respective kernal routine?)
just wondering 'coz you are using kernal calls in your tip.... (and eg
$ffd2 also wouldnt exactly be the 'correct' routine to use since -we
had that topic just one mail before ;D- it is _file_ i/o ;=))

-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:40 CET