Alex Rivera | Logout

Draw on screen border in Commodore 64

Asked 2009-11-17T16:51:37.313
61

I have this curiosity for 25 years and I would love to understand the trick.

In the Commodore 64 the border was not addressable by the 6569 VIC. All you could do was to draw pixels in the central area, the one where the cursor moved. The border was always uniform, although you could change its color with poke 53280,color if i remember correctly.

Nevertheless I clearly remember games intros where the border was featured with graphics, like it was fully addressable. I tried to understand how it worked but never got to the point. legends say it was a clever use of sprites, which could, under some circumstances, be drawn on the border, but I don't know if it's an urban legend.

edit: just read this from one of the provided links

Sprites were multiplexed across vertical raster lines (over 8 sprites, sometimes up to 120 sprites). Until the Group Crest released Krestage 3 in May 2007 there was the common perception that no more than 8 sprites could appear at one raster line, but assigning new Y coordinates made it reappear further down the screen.

This is evil.... you beat the raster and reposition the sprite before it gets there...

Edit
Report

2 Answers

4

Im going to take a stab in the dark here (havent done this myself). I found this on wikipedia.

The c64demo section explains that:

Effects thought impossible were achieved in demos, mostly due to undocumented side-effects pertaining to the MOS Technology VIC-II chip. Some examples for VIC-trickery:

One of the mentioned hacks was:

Sprite scrollers were placed in the border. By tricking the hardware not to draw the border around the screen, sprites could be moved into this area and displayed.

Of course, the interesting part of the question is how its done. I would suggest looking in some demo database which includes source code in search for a demo that employs the hack.

answered 2009-11-17T17:06:54.140
2

From what I understand, this is only possible for sprites.

Sprites are allowed to be in the border area, and the border gets drawn overtop. Through some trickery, the border can be removed.

answered 2009-11-17T17:00:36.337

Your Answer