Maximum screen size that works

Basic and Machine Language

Moderator: Moderators

Post Reply
PhilRanger
Vic 20 Hobbyist
Posts: 143
Joined: Thu Aug 25, 2011 10:04 am

Maximum screen size that works

Post by PhilRanger »

Hi everyone,

The VIC's default screen size is 22X23. Now it can be expanded by appropriate pokes, as nicely explained in vintage Compute! magazines and al.

But if you inflate it too much, you'll lose some things because they are going to be "outside" the tv screen.

What is the maximum size that is safe to use. I think it probably depends on NTSC vs PAL, monitor or regular TV, exact tv setups, etc. I want to find what I can safely assume to get just a bit more than 23X22.

Thanks!
Phil Ranger
-------------
"Don't eat the trees 2" for the VIC 20 : http://www.box.net/shared/u398kj0nr0lkauzm1k67
on line: http://www.mdawson.net/vic20chrome/vic2 ... otrees.prg
User avatar
Mike
Herr VC
Posts: 4901
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

On the other extreme, one thread here in Denial featured an NTSC setup with a B/W CRT which could barely show more than the standard screen size.

For a PAL VIC-20, 26x32 characters is about the maximum you can display on most CRTs. With NTSC, much less, more like 24x28 characters.

If you reposition the screen, the necessary values for the registers $9000 and $9001 are different for PAL and NTSC. The kernal ROM contains the default VIC register values at $EDE4..$EDF3. For example, if you show 24 columns, you'd shift the x-position 1 character to the left to recenter the screen, as follows:

Code: Select all

POKE 36866,(PEEK(36866)AND128)+24 ; display 24 columns
POKE 36864,PEEK(60900)-2          ; 2x4 pixels to the left
... which works on both PAL and NTSC.
PhilRanger
Vic 20 Hobbyist
Posts: 143
Joined: Thu Aug 25, 2011 10:04 am

Post by PhilRanger »

So if I stick to 24X28 I should be safe and get a bit more playfield. Thanks!
Phil Ranger
-------------
"Don't eat the trees 2" for the VIC 20 : http://www.box.net/shared/u398kj0nr0lkauzm1k67
on line: http://www.mdawson.net/vic20chrome/vic2 ... otrees.prg
Post Reply