IT lexicon › Programming › Opening the borders

Opening the borders

Programming På svenska → Updated: 2026-08-14

Fooling the VIC-II into never closing the border, so sprites can be drawn in the normally blank edge.

On the Commodore 64 the VIC-II draws a solid border around the screen and closes it at fixed raster and cycle positions. Change the row- or column-select bits ($D011/$D016) at the exact moment the chip makes its comparison and the comparison is missed, so the border stays open — top and bottom are easy, the side borders demand cycle-exact code.

Sprites can then move freely in the reclaimed area, giving a demo an image that bursts past the machine's "official" resolution. Mapped out during the 1980s, the trick became a signature of the C64 scene. The Amiga has equivalent overscan modes, but there it is a supported feature rather than an exploited bug.

← Back to the lexicon