Skip to content

Screen Memory

cbmeeks edited this page Feb 19, 2013 · 11 revisions

Video Bank

All graphics for the VIC-II are relative to the current video bank. There are four video banks available to the Commodore 64 and only one bank can be active at a time.

Address Mask Bank Yields
DD00 %xxxxxx11 bank0 0000 - 3FFF
DD00 %xxxxxx10 bank1 4000 - 7FFF
DD00 %xxxxxx01 bank2 8000 - BFFF
DD00 %xxxxxx00 bank3 C000 - FFFF

Character Memory

All addresses are relative to the video bank. For example, using Video Bank 1 and setting D018 to 0800 yields character memory being located at $4800.

Address Mask Type Yields
D018 %xxxx000x charmem 0000
D018 %xxxx001x charmem 0800
D018 %xxxx010x charmem 1000
D018 %xxxx011x charmem 1800
D018 %xxxx100x charmem 2000
D018 %xxxx101x charmem 2800
D018 %xxxx110x charmem 3000
D018 %xxxx111x charmem 3800

Clone this wiki locally