3. PROGRAMMING GRAPHICS ON THE
COMMODORE64 ... 99
· Graphics Overview 100
Character Display Modes
.. ... ... .. .. ... ... ... ... ... 100
Bit Map Modes 100
Sprites 100
· GraphicsLocations 101
VideoBankSelection... ... ... ... .. ... ... .. ... ... .. 101
Screen Memory 102
ColorMemory .1.. . . .. . . .. . . .. 103
Character Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 103
. Standard CharacterMode. . . . . . . . . . . . . . . . . . . . . . . . . . .. 107
Character Definitions 107
· Programmable Characters 108
. Multi-Color Mode Graphics 115
Multi-Color Mode Bit 115
. Extended Background Color Mode 120
. BitMappedGraphics... .... .... ... ..... ..... .'" .... 121
Standard High-Resolution Bit Map Mode. . ... . ... . 122
HowItWorks. . ... .. ... ... .... . ... .. ... .... . .. 122
. Multi-ColorBitMap Mode. . .. . .. . . . . . . . . . . .. . . .. . . ... 127
. SmoothScrolling 128
. Sprites 131
Defining a Sprite 131
Sprite Poi nters
. .. ... ... .. ... ... ... .. ... .. ... ... ... 133
Turning Sprites On 134
Turning Sprites Off
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 135
Colors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 135
Multi-Color Mode 135
Setting a Sprite to Multi-ColorMode. . . . . . .. . . ... . ... 136
Expanded Sprites 136
Sprite Positioning 137
Sprite PositioningSummary.. . . . . . . . . . . . . . . . . . . . . . .. 143
SpriteDisplayPriorities.... .. ... .. ... ... .. ... .. .... 144
Collision Detects 144
. Other Graphics Features 150
Screen Blanking 150
Raster Reg ister
... .. ... ... .. ... ... .. ... ... .. ... .. .. 150
Interrupt Status Register. . . . . . . . . . . . . . . . . . . . . . . . . . .. 151
Suggested Screen and Character Color Combinations... 152
iv