Color Palette Composition; Writing Data To A Color Palette - Nintendo GAME BOY Programming Manual

Hide thumbs Also See for GAME BOY:
Table of Contents

Advertisement

2.2 Color Palette Composition

1. BG Color Palettes
Color Palette No.
Color palette 0
Color palettes 1-7
   
2. OBJ Color Palettes
OBJ color palettes have the same composition as shown in the previous figure.

2.3 Writing Data to a Color Palette

Data are written to color palettes using the write-specification and write-data registers. The
lower 6 bits of the write-specification register specifies the write address. Data are written to the
write-data register, at the address specified by the write-specification register.
significant bit of the write-specification register is set to 1, the write address is then automatically
incremented to specify the next address. (The next address is read from the lower 6 bits of the
write-specification register.)
The write-specification and write-data registers also are used to read data from color palettes.
Data are read from the write-data register, and the read data are those at the address specified
by the write-specification register.
incremented even if the most-significant bit of the write-specification register is set to 1.
Color palette H00
Color palette H01
Color palette H02
Color palette H03
When data are read, the specified address is not
73
Chapter 2: Display Functions
Color palette L00
Color palette L01
Color palette L02
Color palette L03
Palette Data No.
0
1
2
3
If the most

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents