Use for Reverse Graphics Mode?

Basic and Machine Language

Moderator: Moderators

Post Reply
RJBowman
Vic 20 Enthusiast
Posts: 198
Joined: Tue Oct 25, 2011 7:50 pm

Use for Reverse Graphics Mode?

Post by RJBowman »

I was just looking up something that I remembered from back in the day; certain values in register 36879 resulted in all the text on the screen being displayed in inverse. I never found this feature to be of any use, and never used it for anything. This feature doesn't seem to work in the emulator on the main page of VIC20 Denial, so I thought that It might have been a product of bad human recall, so I looked it up.

So I found a PDF of the Programmer's reference guide, and found it. One bit in the background/border color register puts the screen into inverse mode when switched on.

I can think of one trick that you can do with this feature: you can fill the screen with spaces the same color as the background, then draw block patterns with spaces of another color. Then when you switch on the reverse mode, the block patterns appear. A crude trick, but maybe useful for something.

Is there a use for this feature that I haven't thought of?
User avatar
GreyGhost
Vic 20 Nerd
Posts: 525
Joined: Wed Oct 05, 2005 11:10 pm

Post by GreyGhost »

You can use it to to make the text on the screen one of the high end colors (8-15). All of the text has to be one color unless a screen split is used. Just clear the screen and use {reverse on} with all the PRINT statements. IIRC.

Most likely everyone knew that one already.
Rob
User avatar
Mike
Herr VC
Posts: 4845
Joined: Wed Dec 01, 2004 1:57 pm
Location: Munich, Germany
Occupation: electrical engineer

Post by Mike »

The demo 'Ancient School' by sdw makes use of the inverse graphics mode in the dot, bob and vector parts.

Otherwise, this mode does not offer more capabilities than what could be achieved by working with inversed hires bit patterns within the character definitions in the first place (and it does not apply to multi-coloured characters!).

When a picture with inverse video is loaded into MINIPAINT, the first thing it does is recalculating the picture for normal video. The picture then still looks the same, but if MP wouldn't do that, such a picture would otherwise lead to an incorrect display of the editor user interface.
PhilRanger
Vic 20 Hobbyist
Posts: 143
Joined: Thu Aug 25, 2011 10:04 am

Post by PhilRanger »

GreyGhost wrote: All of the text has to be one color unless a screen split is used
What is a "split"?
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
Boray
Musical Smurf
Posts: 4064
Joined: Mon May 03, 2004 10:47 am

Post by Boray »

PhilRanger wrote:
GreyGhost wrote: All of the text has to be one color unless a screen split is used
What is a "split"?
Machine language is that fast that you can check where on the screen the TV beam is currently painting the picture and switch color, graphics mode, screen position or whatever in the middle of the screen. Here is for example a PAL program that changes the screen position to created a wave in the screen:
http://user.tninet.se/~pug510w/datormus ... sys828.prg
PRG Starter - a VICE helper / Vic Software (Boray Gammon, SD2IEC music player, Vic Disk Menu, Tribbles, Mega Omega, How Many 8K etc.)
PhilRanger
Vic 20 Hobbyist
Posts: 143
Joined: Thu Aug 25, 2011 10:04 am

Post by PhilRanger »

Thanks, for a moment I dreamed it could have been a mode I didn't know!
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
TBCVIC
Vic 20 Hobbyist
Posts: 127
Joined: Thu Mar 05, 2009 3:38 am

Post by TBCVIC »

I use reverse color for smooth scrolling vertically. I use a monochrome screen and use the screen positioning register to move the screen and a raster routine to hide the fact that the top and bottom border move.

You could make a game that scrolls freely in all directions with this technique, like a Sonic game. I've created a leveleditor for this:

http://sleepingelephant.com/ipw-web/bul ... php?t=4825
Ola Andersson
Image
Post Reply