Resizing the screen (number of lines)

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Resizing the screen (number of lines)

Post by Shaun_B »

Hello ZX Fanz,

Is there a POKE or some simples BASIC way of reducing the number of lines that can be viewed on a ZX81 screen?

I remember some SInclair User 1K "Race car" program that did just this, but much of my collection was either lost to time or destroyed in a garage fire.

Thanks in advance for your help,

Shaun.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Resizing the screen (number of lines)

Post by mrtinb »

With this software from Wilf Rigter, can set the screen to any size, and giving more time to run code. When less time is used for display, then more can be used for code.

http://www.user.dccnet.com/wrigter/inde ... va2005.htm
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Resizing the screen (number of lines)

Post by Shaun_B »

Thanks for the link, but there was also a way to do this in BASIC on an unexpanded ZX81 - unless my memory really is failing me.

Regards,

Shaun.
User avatar
GCHarder
Posts: 427
Joined: Sat Dec 14, 2013 7:46 pm

Re: Resizing the screen (number of lines)

Post by GCHarder »

Maybe you're thinking of...

POKE 16418,X where X is the number of lines in the bottom part of the screen. This is normally 2, 0 gives 24 lines to the top part of the screen, 10 would devote 10 lines to the bottom and 14 to the top.

Not sure if this works on a 1K ZX81 though.

Regards;

Greg
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Resizing the screen (number of lines)

Post by Shaun_B »

Excellent, thanks!
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Resizing the screen (number of lines)

Post by XavSnap »

HI ,
I have already experienced any D_file problems using this Poke…
I don't know what's the problem… but, a CLS, seem to corrupt the new screen setting.
Perhaps we had to reset the Poke to the initial value… before clear the screen.
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Resizing the screen (number of lines)

Post by Shaun_B »

I found a work-around to what I wanted to do which meant not POKEing anything :-)

See my new Fruit Machine thread in this sub-forum.

Regards,

Shaun.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Resizing the screen (number of lines)

Post by dr beep »

A CLS wil set the screen to 25 newlines.

To use smaller screens you must not use CLS.
The smallest screen is a POKE start of screen (DFILE-pointer) with #E9.

You can do this also for rest of screen unused lines
Post Reply