Skip to content

Commit 9f6814b

Browse files
authored
Reformat Specifications table (#338)
* Reformat Specifications table Fixes #332 * Replace "model" with "revision" where relevant * Change "RGB555" to "15-bit RGB" As per #338 (comment)
1 parent 545565f commit 9f6814b

File tree

1 file changed

+69
-15
lines changed

1 file changed

+69
-15
lines changed

src/Specifications.md

Lines changed: 69 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,71 @@
11
# Specifications
22

3-
 | Game Boy | Game Boy Pocket | Game Boy Color | Super Game Boy |
4-
----------------|--------------------------------|-----------------|-----------------|----------------|
5-
CPU | 8-bit Sharp LR35902 | | | |
6-
Clock | 4.194304 MHz | | 8.388608 MHz | 4.295454MHz (SGB1, NTSC)|
7-
Work RAM | 8 KB | | 32 KB | |
8-
Video RAM | 8 KB | | 16 KB | |
9-
Screen Size | LCD 4,7 x 4,3 cm | LCD 4,8 x 4,4 cm| TFT 4,4 x 4 cm | |
10-
Resolution | 160x144 | | | 256x224 (including border)|
11-
Sprites | Max 40 per screen, 10 per line | | | |
12-
Palettes | 1x4 BG, 2x3 OBJ | | 8x4 BG, 8x3 OBJ | 1+4x3, 4x15 (border) |
13-
Colors | 4 grayshades | | 32768 colors | |
14-
Horizontal Sync | 9.198 KHz | | | 9.41986 KHz |
15-
Vertical Sync | 59.73 Hz | | | 61.1679 Hz |
16-
Sound | 4 channels with stereo sound | | | |
17-
Power | DC6V 0.7W | DC3V 0.7W | DC3V 0.6W | |
3+
<style>
4+
td {
5+
text-align: center;
6+
}
7+
td:first-child {
8+
text-align: left;
9+
}
10+
</style>
11+
12+
<table>
13+
<thead>
14+
<tr>
15+
<th></th><th>Game Boy (DMG)</th><th>Game Boy Pocket (MGB)</th><th>Super Game Boy (SGB)</th><th>Game Boy Color (CGB)</th>
16+
</tr>
17+
</thead>
18+
<tbody>
19+
<tr>
20+
<td>CPU</td><td colspan="4">8-bit 8080-like Sharp CPU (speculated to be a SM83 core)</td>
21+
</tr>
22+
<tr>
23+
<td>CPU freq</td><td colspan="2">4.194304&nbsp;MHz</td><td>Depends on revision<sup class="footnote-reference"><a href="#sgb_clk">1</a></sup></td><td>Up to 8.388608&nbsp;MHz</td>
24+
</tr>
25+
<tr>
26+
<td>Work RAM</td><td colspan="3">8&nbsp;KiB</td><td>32&nbsp;KiB<sup class="footnote-reference"><a href="#compat">2</a></sup> (4&nbsp;+&nbsp;7&nbsp;×&nbsp;4&nbsp;KiB)</td>
27+
</tr>
28+
<tr>
29+
<td>Video RAM</td><td colspan="3">8&nbsp;KiB</td><td>16&nbsp;KiB<sup class="footnote-reference"><a href="#compat">2</a></sup> (2&nbsp;×&nbsp;8&nbsp;KiB)</td>
30+
</tr>
31+
<tr>
32+
<td>Screen</td><td>LCD 4.7&nbsp;×&nbsp;4.3&nbsp;cm</td><td>LCD 4.8&nbsp;×&nbsp;4.4&nbsp;cm</td><td>CRT TV</td><td>TFT 4.4&nbsp;×&nbsp;4&nbsp;cm</td>
33+
</tr>
34+
<tr>
35+
<td>Resolution</td><td colspan="2">160&nbsp;×&nbsp;144</td><td>160&nbsp;×&nbsp;144 within 256&nbsp;×&nbsp;224 border</td><td>160&nbsp;×&nbsp;144</td>
36+
</tr>
37+
<tr>
38+
<td>OBJ ("sprites")</td><td colspan="4">8&nbsp;×&nbsp;8 or 8&nbsp;×16 ; max 40 per screen, 10 per line</td>
39+
</tr>
40+
<tr>
41+
<td>Palettes</td><td colspan="2">BG: 1&nbsp;×&nbsp;4, OBJ: 2&nbsp;×&nbsp;3</td><td>BG/OBJ: 1&nbsp;+&nbsp;4&nbsp;×&nbsp;3, border: 4&nbsp;×&nbsp;15</td><td>BG: 8&nbsp;×&nbsp;4, OBJ: 8&nbsp;×&nbsp;3<sup class="footnote-reference"><a href="#compat">2</a></sup></td>
42+
</tr>
43+
<tr>
44+
<td>Colors</td><td>4 shades of green</td><td>4 shades of gray</td><td colspan="2">32768 colors (15-bit RGB)</td>
45+
</tr>
46+
<tr>
47+
<td>Horizontal sync</td><td colspan="2">9.198&nbsp;KHz</td><td>Complicated<sup class="footnote-reference"><a href="#sgb_vid">3</a></sup></td><td>9.198&nbsp;KHz</td>
48+
</tr>
49+
<tr>
50+
<td>Vertical sync</td><td colspan="2">59.73&nbsp;Hz</td><td>Complicated<sup class="footnote-reference"><a href="#sgb_vid">3</a></sup></td><td>59.73&nbsp;Hz</td>
51+
</tr>
52+
<tr>
53+
<td>Sound</td><td colspan="2">4 channels with stereo output</td><td>4 GB channels + SNES audio</td><td>4 channels with stereo output</td>
54+
</tr>
55+
<tr>
56+
<td>Power</td><td>DC 6V, 0.7&nbsp;W</td><td>DC 3V, 0.7&nbsp;W</td><td>Powered by SNES</td><td>DC 3V, 0.6&nbsp;W</td>
57+
</tr>
58+
</tbody>
59+
</table>
60+
61+
[^sgb_clk]:
62+
SGB1 cartridges derive the GB CPU clock from the SNES' clock, [yielding a clock speed a bit higher](<#SGB System Clock>), which differs slightly between NTSC and PAL systems.
63+
SGB2 instead uses a clock internal to the cartridge, and so has the same speed as the handhelds.
64+
65+
[^compat]:
66+
The same value as on DMG is used in compatibility mode.
67+
68+
[^sgb_vid]:
69+
The SGB runs two consoles: a Game Boy within the SGB cartridge, and the SNES itself.
70+
The GB LCD output is captured and displayed by the SNES, but the two consoles' frame rates don't quite sync up, leading to duplicated and/or dropped frames.
71+
The GB side of the vertical sync depends on the CPU clock[^sgb_clk], with the same ratio as the handhelds.

0 commit comments

Comments
 (0)