Scroll Down

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Scroll Down

Post by MrVertigo »

Is it possible to make the screen scroll down using basic on the ZX81, or only up? Like for a skiing program using scroll. Does the skier always have to be at the top of the screen for that simple BASIC trick, or is there a way to have the skier at the bottom?
User avatar
Paul
Posts: 1517
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: Scroll Down

Post by Paul »

In pure basic only scrolling up is possible in a reasonable time.
So Horace is always on top of the Hill, not at the bottom ;)
In theory, there is no difference between theory and practice. But, in practice, there is.
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: Scroll Down

Post by MrVertigo »

Is there an unpure BASIC way to do it, or does it need full machine code?
User avatar
Paul
Posts: 1517
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: Scroll Down

Post by Paul »

There are small machine code routines that offer scrolling in any direction and much more.

Search for
"Inline" BASIC Extensions
In theory, there is no difference between theory and practice. But, in practice, there is.
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: Scroll Down

Post by MrVertigo »

Brilliant! Thanks.
Moggy
Posts: 3267
Joined: Wed Jun 18, 2008 2:00 pm

Re: Scroll Down

Post by Moggy »

Here's an 8-way scroll routine in M/Code, it should be easy enough for you to adapt to your needs. :D
Attachments
8WSCROLL.P
(1.36 KiB) Downloaded 127 times
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: Scroll Down

Post by MrVertigo »

Thanks very much 🙏
Post Reply