Change screen size and position at a mid point?

Basic and Machine Language

Moderator: Moderators

Post Reply
User avatar
AndyH
Vic 20 Afficionado
Posts: 364
Joined: Thu Jun 17, 2004 5:51 am
Website: https://www.hewco.uk
Location: UK
Occupation: Developer

Change screen size and position at a mid point?

Post by AndyH »

Is it possible to change the Vic registers that affect the width (chars) of the screen and start horizontal position at a fixed point down the screen? Eg like a split screen you see on other computers.

What I would like to achieve is a small fixed area at the top or bottom for a score and status area, and a larger playing area that is wider and potentially scrolling on the horizontal position below.
--
AndyH
HEWCO | Vic 20 blog
User avatar
thegg
Vic 20 Amateur
Posts: 69
Joined: Mon Aug 30, 2021 4:49 am
Location: England
Occupation: retired

Re: Change screen size and position at a mid point?

Post by thegg »

Sure, see my first post http://sleepingelephant.com/ipw-web/bul ... ng#p114214 for an example. You need to use raster timing techniques so assembler is necessary. Mike's recent summary of how to synchronise VIA timers with raster lines to avoid flicker is a worthy read.
User avatar
tokra
Vic 20 Scientist
Posts: 1123
Joined: Tue Apr 27, 2010 5:32 pm
Location: Scheessel, Germany

Re: Change screen size and position at a mid point?

Post by tokra »

AndyH wrote: Thu Nov 02, 2023 6:02 am Is it possible to change the Vic registers that affect the width (chars) of the screen and start horizontal position at a fixed point down the screen? Eg like a split screen you see on other computers.

What I would like to achieve is a small fixed area at the top or bottom for a score and status area, and a larger playing area that is wider and potentially scrolling on the horizontal position below.
Yes, that is totally doable. I do so in my recent VICSTRIP for example. See the separate graphic and text-area.
User avatar
AndyH
Vic 20 Afficionado
Posts: 364
Joined: Thu Jun 17, 2004 5:51 am
Website: https://www.hewco.uk
Location: UK
Occupation: Developer

Re: Change screen size and position at a mid point?

Post by AndyH »

Brilliant, thanks both. And I'll check out Mike's info.
--
AndyH
HEWCO | Vic 20 blog
User avatar
AndyH
Vic 20 Afficionado
Posts: 364
Joined: Thu Jun 17, 2004 5:51 am
Website: https://www.hewco.uk
Location: UK
Occupation: Developer

Re: Change screen size and position at a mid point?

Post by AndyH »

Thanks Thegg and Tokra - cracked it.
--
AndyH
HEWCO | Vic 20 blog
Post Reply