Nintendo DMG-01 Manual - Page 119

Super Game Boy commands

Page 119 highlights

Game BoyTM CPU Manual 4. Super Game Boy commands 4. Super Game Boy commands 4.1. Foreword Super GameBoy Commands, Extracted by kOOPa, 15-Feb-98 Last updated by: Bowser, 13-June-98 Updates: Block Area mode ($04) control codes updated Line mode ($05) written Divide mode ($06) written 1CHR mode ($07) written A SGB command transfer is 128 bits + a zero bit. The first five bits of the first byte is the command byte. The last 3 bits of the first byte represent the number of 128 bit packages to be sent. Unused bits in a SGB command transfer should be set to 0. Most of the commands listed below only transfer one package. The command bytes below are preceded by the # character to remind you that they have to be shifted left three times before used. 4.2. Palettes There are several different types of palettes in the SGB. One type is the System color palette. It is a virtual palette rather than a hardware palette. The hardware color palette is shown at the bottom of this document and contains what are called the SGB color palettes and also holds the SGB Border palette. As far as SGB onscreen colors are concerned there are only really two palette types: SGB color palettes and by DP Page 119

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139

Game Boy
TM
CPU Manual
4. Super Game Boy commands
4.
Super Game Boy commands
4.1.
Foreword
Super GameBoy Commands, Extracted by kOOPa, 15-Feb-98
-----------------------------------------------------
Last updated by:
Bowser, 13-June-98
Updates:
Block Area mode ($04) control codes updated
Line mode ($05) written
Divide mode ($06) written
1CHR mode ($07) written
A SGB command transfer is 128 bits + a zero bit. The
first five bits of the first byte is the command byte.
The last 3 bits of the first byte represent the number
of 128 bit packages to be sent. Unused bits in a SGB
command transfer should be set to 0.
Most of the commands listed below only transfer one
package. The command bytes below are preceded by the #
character to remind you that they have to be shifted
left three times before used.
4.2.
Palettes
There are several different types of palettes in the
SGB. One type is the System color palette. It is a
virtual palette rather than a hardware palette. The
hardware color palette is shown at the bottom of this
document and contains what are called the SGB color
palettes and also holds the SGB Border palette.
As far as SGB onscreen colors are concerned there are
only really two palette types: SGB color palettes and
by DP
Page 119