Commands - Nintendo DMG-01 - Game Boy Console Manual

Manual
Table of Contents

Advertisement

4.5. Commands

4.5. Commands
1. Set SGB color Palettes
0 & 1 ($00,data) - Download color palettes 0 & 1
2 & 3 ($01,data) - Download color palettes 2 & 3
0 & 3 ($02,data) - Download color palettes 0 & 3
1 & 2 ($03,data) - Download color palettes 1 & 2
--------------------------------------------------
Here is example data for setting SGB color
palettes 0 & 1:
DW
;Pallete 0
DW
DW
DW
;Palette 1
DW
DW
DW
Please note that all four SGB color palettes share the
same bit 00 color. The color most recently stored in
bit 00 will be used.
Information for calculating the DW color value is
given later in this text.
When using the following four Palette Direct Set
commands, the GameBoy image will be altered (colors
changed) even if you used the GameBoy Window Mask
command to freeze the screen. Therefore use arguments
Page 122
$7fff
;white
$7c00
;blue
$03e0
;green
$0000
;black
$03ff
;yellow
$001f
;red
$0000
;black
TM
Game Boy
CPU Manual
;bit 00 color
;bit 01 color
;bit 10 color
;bit 11 color
;bit 01 color
;bit 10 color
;bit 11 color
V 1.01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Game boy

Table of Contents