Nintendo DMG-01 Manual - Page 24

V 1.01

Page 24 highlights

2.8.1. Tiles Game BoyTM CPU Manual WX may be changed during a scan line interrupt (to either cause a graphic distortion effect or to disable the window (WX>166) ) but changes to WY are not dynamic and won't be noticed until the next screen redraw. The tile images are stored in the Tile Pattern Tables. Each 8x8 image occupies 16 bytes, where each 2 bytes represent a line: Tile: Image: .33333.. 22...22. 11...11. 2222222. 01111100 -> $7C 01111100 -> $7C 22...22. -> 00000000 -> $00 11000110 -> $C6 11...11. -> 11000110 -> $C6 00000000 -> $00 2222222. -> 00000000 -> $00 11111110 -> $FE 33...33. -> 11000110 -> $C6 11000110 -> $C6 22...22. -> 00000000 -> $00 11000110 -> $C6 11...11. -> 11000110 -> $C6 00000000 -> $00 ........ -> 00000000 -> $00 00000000 -> $00 As it was said before, there are two Tile Pattern Tables at $8000-8FFF and at $8800-97FF. The first one can be used for sprites, the background, and the window display. Its tiles are numbered from 0 to 255. The second table can be used for the background and the window display and its tiles are numbered from -128 to 127. Page 24 V 1.01

  • 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

2.8.1. Tiles
Game Boy
TM
CPU Manual
WX may be changed during a scan line interrupt (to
either cause a graphic distortion effect or to disable
the window (WX>166) ) but changes to WY are not
dynamic and won't be noticed until the next screen
redraw.
The tile images are stored in the Tile Pattern
Tables. Each 8x8 image occupies 16 bytes, where each 2
bytes represent a line:
Tile:
Image:
.333
33..
.333
33.. -> 0111
1100 -> $7C
22...22.
0111
1100 -> $7C
1
1...11.
22...22. -> 00000000 -> $00
2222222. <-- digits
11000110 -> $C6
33...33.
represent
1
1...11. -> 1
1000110 -> $C6
22...
22.
color
0
0000000 -> $00
11...11.
numbers
2222222. -> 00000000 -> $00
........
11111110 -> $FE
33...33. -> 11000110 -> $C6
11000110 -> $C6
22...
22. -> 00000000 -> $00
11000
110 -> $C6
11...11. -> 11000
110 -> $C6
00000000 -> $00
........
-> 00000000 -> $00
00000000 -> $00
As it was said before, there are two Tile Pattern
Tables at $8000-8FFF and at $8800-97FF. The first one
can be used for sprites, the background, and the
window display. Its tiles are numbered from 0 to 255.
The second table can be used for the background and
the window display and its tiles are numbered from
-128 to 127.
Page 24
V 1.01