c64 Graphics.pdf

(2352 KB) Pobierz
Graphics on the
Commodore 64
Graphics on a 16kb Shoestring Budget
by
DeeKay/Crest
Part 1
Meet the Pixels
Basics
PAL-VIC: 312 Rasterlines, no halfpictures
(identical
lines in both half-pictures)
4 Banks
à
16KB, all displayed VIC-data needs to
be within the same bank
(Bitmap,
Chars, Sprites)
Rasterbeam goes linewise from the top left to the
lower right, VIC also works that way
320x200 screen plus border
(2
sprites=6 chars
each on left/right, about 2 sprites upper/lower)
Basics
Palette of 16 Colors,
fixed
1 Char
(Character)
= 1 CPU-cycle
No direct adressing of pixels
Some important VIC-Registers you
should remember:
$d020:
Border color
$d021:
Screen color
$d022/23:
Multicolors
$d016:
X-shift Register
$d012:
Rasterbeam counter
$d011:
Good for a great many things
(VIC-tricks)
Zgłoś jeśli naruszono regulamin