Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Retro-Go: ColecoVision games
Mason363858650af7e1a
diff --git a/customize/app.js b/customize/app.jsindex 6c55757a..dffb12c3 100644--- a/customize/app.js+++ b/customize/app.js@@ -18,8 +18,9 @@4: { tag: 'SMS', name: 'Master System', color: '#2f62c4', shell: '#cfd6e4' },5: { tag: 'GG', name: 'Game Gear', color: '#3b3b3b', shell: '#c8c8cc' },6: { tag: 'SG', name: 'SG-1000', color: '#c0392b', shell: '#2b2b2e' },+ 7: { tag: 'COL', name: 'ColecoVision', color: '#2c3e50', shell: '#1d1d1f' },};- const EXT = { gb: 1, gbc: 2, nes: 3, sms: 4, gg: 5, sg: 6 };+ const EXT = { gb: 1, gbc: 2, nes: 3, sms: 4, gg: 5, sg: 6, col: 7 };const ROM_ENTRY = 52, ROM_HEAD = 12;const PRESETS = { 'NumPlay': ['NumPlay', 'NumPlay'], 'NumPlay-Invisible': ['Invisible', ' '], 'NumPlay-Matrices': ['Matrices', 'Matrices'] };const LANGS = { en: ['EN', 'English'], fr: ['FR', 'Français'], zh: ['中文', '中文'] };diff --git a/customize/index.html b/customize/index.htmlindex 62477c8e..0234911b 100644--- a/customize/index.html+++ b/customize/index.html@@ -83,9 +83,9 @@<label id="drop" class="drop" for="rom-file"><span class="drop-art" aria-hidden="true"><i class="c1"></i><i class="c2"></i><i class="c3"></i></span><span class="drop-text">Add game files</span>- <span id="drop-sub" class="drop-sub">.gb .gbc .nes .sms .gg</span>+ <span id="drop-sub" class="drop-sub">.gb .gbc .nes .sms .gg .sg .col</span></label>- <input id="rom-file" type="file" multiple accept=".gb,.gbc,.nes,.sms,.gg">+ <input id="rom-file" type="file" multiple accept=".gb,.gbc,.nes,.sms,.gg,.sg,.col"><div id="carts" class="carts" aria-label="Your games"></div></section><section id="own" class="retro" aria-label="Your own apps">diff --git a/docs/play.md b/docs/play.mdindex bcc7c903..28b57710 100644--- a/docs/play.md+++ b/docs/play.md@@ -1125,9 +1125,10 @@ NumVisuals comes on its own, as NumVisuals.nwa, or in a NumPlay of your own from| **OK** | Open it. In a game: **A** (**2** on Sega's pads) || **Back** | Back to the systems. In a game: **B** (**1**) || **shift** / **EXE** | In a game: **Select** / **Start** (the Master System's **Pause**) |+| **0** to **9**, **×**, **÷** | The ColecoVision's keypad (**×** is \*, **÷** is #) || **Backspace** | Retro-Go's menu: save, load, reset, options || **Home** | Save and quit |-Game Boy, Game Boy Color, NES, Master System, Game Gear and SG-1000 games you pick on NumPlay's customizer website. Open a game for New game, or Resume game from one of its 4 save slots. In a game, Backspace opens Retro-Go's menu: Save & Continue, Save & Quit, Load game, Reset, Options, where the picture can be 1x, Fit or Full screen, and Controls, where you give any button the key you want: pick it, press **OK**, then its new key. The cartridges' own saves are kept as well.+Game Boy, Game Boy Color, NES, Master System, Game Gear, SG-1000 and ColecoVision games you pick on NumPlay's customizer website. Open a game for New game, or Resume game from one of its 4 save slots. In a game, Backspace opens Retro-Go's menu: Save & Continue, Save & Quit, Load game, Reset, Options, where the picture can be 1x, Fit or Full screen, and Controls, where you give any button the key you want: pick it, press **OK**, then its new key. The cartridges' own saves are kept as well.<br clear="right">diff --git a/games/retrogo/Makefile b/games/retrogo/Makefileindex 4c444fb5..87004d8f 100644--- a/games/retrogo/Makefile+++ b/games/retrogo/Makefile@@ -20,7 +20,7 @@ ROMS ?=GB_SRC = $(addprefix src/gb/,cpu.c hw.c mem.c lcdc.c rtc.c lcd.c gb.c)NES_SRC = $(addprefix src/nes/,nes6502.c nes_ppu.c nes_mmc.c mmclist.c nes_apu.c nes.c) \$(sort $(wildcard src/nes/mappers/*.c))-SMS_SRC = src/sms/z80.c src/sms/sms.c+SMS_SRC = src/sms/z80.c src/sms/sms.c src/sms/coleco_bios.cCORE_SRC = $(GB_SRC) $(NES_SRC) $(SMS_SRC)APP_SRC = src/main.c src/romtable.c src/pack.cCORE_H = $(wildcard src/*.h src/gb/*.h src/nes/*.h src/sms/*.h)diff --git a/games/retrogo/README.md b/games/retrogo/README.mdindex f9c7b7f2..38e25899 100644--- a/games/retrogo/README.md+++ b/games/retrogo/README.md@@ -1,6 +1,6 @@# Retro-Go-Play your own Game Boy, Game Boy Color, NES, Master System, Game Gear and SG-1000 games on the NumWorks calculator. Retro-Go is the launcher and emulators of handhelds like the ODROID-GO, whose screen is the calculator's size; this is its look and its menus, made for the keypad.+Play your own Game Boy, Game Boy Color, NES, Master System, Game Gear, SG-1000 and ColecoVision games on the NumWorks calculator. Retro-Go is the launcher and emulators of handhelds like the ODROID-GO, whose screen is the calculator's size; this is its look and its menus, made for the keypad.<img src="docs/shot.png" width="320" alt="Retro-Go's list of NES games, with Thwaite chosen">@@ -10,6 +10,7 @@ You pick the games on NumPlay's customizer website: it puts them inside your Num- **Game Boy and Game Boy Color** with gnuboy, the emulator Retro-Go started from: the cartridges with MBC1, MBC2, MBC3 (with its clock), MBC5, HuC1 and HuC3 bank controllers, up to 32 KB of cartridge RAM. Big games fit too, like the 2 MB Game Boy Color ones, in a NumPlay made for Epsilon 26 or Nwagra (NumPlay Studio says when a game needs it).- **NES** with nofrendo, Retro-Go's NES emulator at its start: 34 mappers, among them NROM, MMC1, UNROM, CNROM, MMC3, MMC5, AxROM, MMC2, Namco 163 and the Konami VRC chips.- **Master System, Game Gear and SG-1000** with a machine written for NumPlay around superzazu's Z80: Sega's, Codemasters' and the Korean mappers, the cartridges' RAM, the 224-line pictures, the European games that need 50 Hz, the Game Gear games made for the Master System's mode, and the SG-1000's TMS9918 pictures (Graphics I and II, Text, Multicolor and its sprites).+- **ColecoVision** on the same machine: its BIOS, its joystick and keypad, cartridges up to 32 KB and the Super Game Module's extra RAM.- **Full speed** on every calculator: as Retro-Go does, a frame is drawn, then at least one is skipped, more when the calculator can't keep up, so the game always runs at its own speed.- **Retro-Go's menu** in a game: Save & Continue, Save & Quit, Load game, Reset, Options, Controls, About and Quit.- **4 save slots** for each game, and the cartridges' own battery saves, kept a few seconds after the game writes them. Home saves and quits.@@ -32,6 +33,10 @@ You pick the games on NumPlay's customizer website: it puts them inside your Num<td align="center"><img src="docs/sgtab.png" width="320" alt="Retro-Go's SG-1000 tab: a red background with the console"><br><sub>The SG-1000 tab</sub></td><td align="center"><img src="docs/sg.png" width="320" alt="Cheril Perils Classic, an SG-1000 homebrew game, in Fit"><br><sub>Cheril Perils Classic on the SG-1000</sub></td></tr>+ <tr>+ <td align="center"><img src="docs/coltab.png" width="320" alt="Retro-Go's ColecoVision tab with two games"><br><sub>The ColecoVision tab</sub></td>+ <td align="center"><img src="docs/col.png" width="320" alt="Bankruptcy Builder, a ColecoVision homebrew game"><br><sub>Bankruptcy Builder on the ColecoVision</sub></td>+ </tr></table>## Controls@@ -39,8 +44,9 @@ You pick the games on NumPlay's customizer website: it puts them inside your Num| Key | In the launcher | In a game || --- | --- | --- || Arrows | Choose a system, then a game | The D-pad |-| OK | Open the system, then the game | A (Sega: 2) |-| Back | Back to the systems | B (Sega: 1) |+| OK | Open the system, then the game | A (Sega: 2, ColecoVision: left button) |+| Back | Back to the systems | B (Sega: 1, ColecoVision: right button) |+| 0 to 9, ×, ÷ | | The ColecoVision's keypad (× is *, ÷ is #) || shift | | Select || EXE | Like OK | Start (Master System: Pause) || Backspace | Options, Controls, About | Retro-Go's menu |@@ -55,6 +61,7 @@ In 1x on the Game Boy and the Game Gear, the keys are written on the side of the- The calculator has no clock for apps: a Game Boy game's clock runs while you play, and you can set it in Options, RTC config.- Cartridges with more than 32 KB of RAM (a few Game Boy Color games) and NES mappers nofrendo doesn't have say so instead of starting.- The light gun and 3-D glasses games of the Master System don't play, nor do the SC-3000's keyboard and BASIC.+- ColecoVision cartridges bigger than 32 KB (the MegaCart) and the ones for the Roller Controller, the Super Action Controller or the steering wheel don't play.## Credits@@ -62,9 +69,9 @@ In 1x on the Game Boy and the Game Gear, the keys are written on the side of the- **[gnuboy](https://github.com/rofl0r/gnuboy)** by Laguna and Gilgamesh and gnuboy's contributors (GPL-2.0-or-later, [COPYING](src/gb/COPYING)), from rofl0r's tree, emulates the Game Boy. Its picture is drawn by new code here: gnuboy's keeps 256 KB of decoded tiles, more than the calculator has.- **nofrendo** by Matthew Conte and nofrendo's contributors (version 2 of the GNU Library GPL, [COPYING.LGPL](src/nes/COPYING.LGPL), used under the GPL as its section 3 allows) emulates the NES. Its 2.0 release is the one used here.-- **[z80](https://github.com/superzazu/z80)** by Nicolas Allemand (superzazu) (MIT License, [LICENSE.z80](src/sms/LICENSE.z80)) is the Master System's and Game Gear's processor, changed to run faster on the calculator. The rest of those machines is NumPlay's, written from Charles MacDonald's notes on their hardware, Texas Instruments' TMS9918A manual and SMS Power's pages. Retro-Go's own Master System emulator, SMS Plus, can't be used: its Z80 may not be shared freely. The short list of games that need something of their own is [SMS Plus GX](https://github.com/libretro/smsplus-gx)'s (GPL-2.0-or-later).-- The tests run [Blargg's test ROMs](https://github.com/retrio/gb-test-roms), [dmg-acid2 and cgb-acid2](https://github.com/mattcurrie) by Matt Currie, [nestest](https://github.com/christopherpow/nes-test-roms) by kevtris, Frank Cringle's zexdoc and zexall, as [superzazu's z80](https://github.com/superzazu/z80) has them and in [Maxim's Master System port](https://github.com/maxim-zhao/zexall-sms), which aren't in NumPlay. The pictures show [Thwaite](https://github.com/pinobatch/thwaite-nes), [Concentration Room](https://github.com/pinobatch/croom-nes), [Libbet and the Magic Floor](https://github.com/pinobatch/libbet) and the [240p Test Suite](https://github.com/pinobatch/240p-test-mini) by Damian Yerrick and others, [µCity](https://github.com/AntonioND/ucity) by Antonio Niño Díaz, [Raposa do Sol](https://github.com/jflores82/raposadosol) by tibonev, [Waternet](https://github.com/joyrider3774/waternet) by Willems Davy, [Tunnel](https://github.com/liamhays/tunnel) by Liam Hays and [Cheril Perils Classic](https://www.mojontwins.com/) by the Mojon Twins, all free homebrew games.-- Game Boy, Game Boy Color and NES are trademarks of Nintendo, Master System, Game Gear and SG-1000 of Sega. Not affiliated with Nintendo or Sega.+- **[z80](https://github.com/superzazu/z80)** by Nicolas Allemand (superzazu) (MIT License, [LICENSE.z80](src/sms/LICENSE.z80)) is the Master System's and Game Gear's processor, changed to run faster on the calculator. The rest of those machines is NumPlay's, written from Charles MacDonald's notes on their hardware, Texas Instruments' TMS9918A manual and SMS Power's pages. Retro-Go's own Master System emulator, SMS Plus, can't be used: its Z80 may not be shared freely. The ColecoVision's BIOS is Coleco's (1982), in the version Retro-Go keeps, its title screen skipped by the fire button. The short list of games that need something of their own is [SMS Plus GX](https://github.com/libretro/smsplus-gx)'s (GPL-2.0-or-later).+- The tests run [Blargg's test ROMs](https://github.com/retrio/gb-test-roms), [dmg-acid2 and cgb-acid2](https://github.com/mattcurrie) by Matt Currie, [nestest](https://github.com/christopherpow/nes-test-roms) by kevtris, Frank Cringle's zexdoc and zexall, as [superzazu's z80](https://github.com/superzazu/z80) has them and in [Maxim's Master System port](https://github.com/maxim-zhao/zexall-sms), which aren't in NumPlay. The pictures show [Thwaite](https://github.com/pinobatch/thwaite-nes), [Concentration Room](https://github.com/pinobatch/croom-nes), [Libbet and the Magic Floor](https://github.com/pinobatch/libbet) and the [240p Test Suite](https://github.com/pinobatch/240p-test-mini) by Damian Yerrick and others, [µCity](https://github.com/AntonioND/ucity) by Antonio Niño Díaz, [Raposa do Sol](https://github.com/jflores82/raposadosol) by tibonev, [Waternet](https://github.com/joyrider3774/waternet) by Willems Davy, [Tunnel](https://github.com/liamhays/tunnel) by Liam Hays and [Cheril Perils Classic](https://www.mojontwins.com/) by the Mojon Twins, and [Bankruptcy Builder](http://www.colecovision.eu/ColecoVision/games/Bankruptcy%20Builder.shtml) by Philip Klaus Krause and Breakout by Daniel Bienvenu from [retrobrews' ColecoVision homebrew](https://github.com/retrobrews/colecovision-games), all free homebrew games.+- Game Boy, Game Boy Color and NES are trademarks of Nintendo, Master System, Game Gear and SG-1000 of Sega, ColecoVision of Coleco. Not affiliated with Nintendo, Sega or Coleco.Made by Mason Chen as part of NumPlay. It comes from the customizer website with your games in it, inside [NumPlay](https://github.com/Mason363/NumPlay) or on its own.diff --git a/games/retrogo/docs/col.png b/games/retrogo/docs/col.pngnew file mode 100644index 00000000..43f1f95eBinary files /dev/null and b/games/retrogo/docs/col.png differdiff --git a/games/retrogo/docs/coltab.png b/games/retrogo/docs/coltab.pngnew file mode 100644index 00000000..5a536fd0Binary files /dev/null and b/games/retrogo/docs/coltab.png differdiff --git a/games/retrogo/lang/fr.txt b/games/retrogo/lang/fr.txtindex 3f8f5e55..19ba2715 100644--- a/games/retrogo/lang/fr.txt+++ b/games/retrogo/lang/fr.txt@@ -86,7 +86,8 @@ Welcome to Retro-Go! Bienvenue dans Retro-Go !Add games on NumPlay's Ajoute des jeux sur le sitecustomizer website: de personnalisation de NumPlay :Game Boy, Game Boy Color, NES, des jeux Game Boy, Game Boy Color, NES,-Master System, Game Gear, SG-1000. Master System, Game Gear et SG-1000.+Master System, Game Gear, SG-1000, Master System, Game Gear, SG-1000+ColecoVision. et ColecoVision.Home: quit Accueil : quitterLeft/Right: system OK: games Home: quit Gauche/Droite : console OK : jeux Accueil : quitterOK: play Back: systems Left/Right: system OK : jouer Retour : consoles Gauche/Droite : console@@ -109,3 +110,10 @@ B, 1 B, 1Start, Pause Start, PausePause Pausez80 by superzazu z80 de superzazu+Joystick Joystick+Left button Bouton gauche+Right button Bouton droit+Keypad Clavier+0 to 9 0 à 9+* and # * et #+x and / x et /diff --git a/games/retrogo/lang/zh.txt b/games/retrogo/lang/zh.txtindex 2a756445..9ee42497 100644--- a/games/retrogo/lang/zh.txt+++ b/games/retrogo/lang/zh.txt@@ -86,7 +86,8 @@ Welcome to Retro-Go! 欢迎使用 Retro-Go!Add games on NumPlay's 请在 NumPlay 的customizer website: 定制网站上添加Game Boy, Game Boy Color, NES, Game Boy、Game Boy Color、NES、-Master System, Game Gear, SG-1000. Master System、Game Gear 和 SG-1000 游戏。+Master System, Game Gear, SG-1000, Master System、Game Gear、SG-1000+ColecoVision. 和 ColecoVision 游戏。Home: quit 主页:退出Left/Right: system OK: games Home: quit 左/右:主机 OK:游戏 主页:退出OK: play Back: systems Left/Right: system OK:开始 返回:主机 左/右:切换主机@@ -109,3 +110,10 @@ B, 1 B, 1Start, Pause Start, 暂停Pause 暂停z80 by superzazu superzazu 的 z80+Joystick 摇杆+Left button 左键+Right button 右键+Keypad 数字键盘+0 to 9 0 到 9+* and # * 和 #+x and / x 和 /diff --git a/games/retrogo/src/main.c b/games/retrogo/src/main.cindex f37a9f89..52d79f8b 100644--- a/games/retrogo/src/main.c+++ b/games/retrogo/src/main.c@@ -158,14 +158,15 @@ static void cfg_save(void) { np_file_write(CFG_NAME, &cfg, sizeof cfg); }static rg_rom_t roms[RG_MAX_ROMS];static int nroms;/* Retro-Go's tabs, in its order */-static const uint8_t tab_order[] = {RG_SYS_NES, RG_SYS_GB, RG_SYS_GBC, RG_SYS_SMS, RG_SYS_GG, RG_SYS_SG};+static const uint8_t tab_order[] = {RG_SYS_NES, RG_SYS_GB, RG_SYS_GBC, RG_SYS_SMS, RG_SYS_GG, RG_SYS_SG, RG_SYS_CV};static uint8_t tabs[sizeof tab_order], ntabs;-static const char *const sys_short[RG_SYS_COUNT] = {"", "GB", "GBC", "NES", "SMS", "GG", "SG"};+static const char *const sys_short[RG_SYS_COUNT] = {"", "GB", "GBC", "NES", "SMS", "GG", "SG", "COL"};/* the tab's banner: the maker, then the system, as Retro-Go's banners show them */-static const char *const sys_maker[RG_SYS_COUNT] = {"", "Nintendo", "Nintendo", "Nintendo", "SEGA", "SEGA", "SEGA"};+static const char *const sys_maker[RG_SYS_COUNT] = {"", "Nintendo", "Nintendo", "Nintendo", "SEGA", "SEGA", "SEGA", "Coleco"};static const char *const sys_model[RG_SYS_COUNT] = {"Retro-Go", "Game Boy", "Game Boy Color", "Entertainment System",- "Master System", "Game Gear", "SG-1000"};+ "Master System", "Game Gear", "SG-1000", "ColecoVision"};static bool is_sega(int sys) { return sys == RG_SYS_SMS || sys == RG_SYS_GG || sys == RG_SYS_SG; }+static bool is_z80(int sys) { return is_sega(sys) || sys == RG_SYS_CV; } /* (the Master System's machine runs them) */static int tab_first(int sys) {for (int i = 0; i < nroms; i++)@@ -305,7 +306,7 @@ static void set_view(void) {sy = cfg.overscan ? 8 : 0;sx = cfg.crop_sides ? 8 : 0;sw = NES_WIDTH - 2 * sx, sh = NES_HEIGHT - 2 * sy;- } else if (is_sega(sys_now)) {+ } else if (is_z80(sys_now)) {sms_view(&sx, &sy, &sw, &sh); /* (the Game Gear's screen, or the taller pictures of some games) */}view.src_x = sx, view.src_y = sy, view.src_w = sw, view.src_h = sh;@@ -345,6 +346,10 @@ static const shape_t sms_shape[] = {static const shape_t sg_shape[] = {{-140, -56, 140, 56, 4, 0}, {-110, -40, 10, -20, 3, 1}, {-110, 0, 10, 40, 2, 1}, {40, -30, 70, 0, 4, 1},{85, -30, 115, 0, 4, 1}, {40, 16, 115, 26, 2, 1}};+static const shape_t cv_shape[] = { /* the console, its cartridge slot and vents, and the controller with its keypad */+ {-140, -50, 140, 50, 6, 0}, {-120, -36, -20, -26, 2, 1}, {-120, -16, -20, -10, 2, 1}, {-120, 0, -20, 6, 2, 1},+ {30, -40, 120, 44, 8, 0}, {44, -30, 106, -14, 3, 1}, {44, -4, 60, 10, 2, 1}, {67, -4, 83, 10, 2, 1},+ {90, -4, 106, 10, 2, 1}, {44, 18, 60, 32, 2, 1}, {67, 18, 83, 32, 2, 1}, {90, 18, 106, 32, 2, 1}};static const shape_t gg_shape[] = {{-140, -62, 140, 62, 40, 0}, {-56, -46, 56, 40, 6, 1}, {-112, -12, -84, 0, 2, 1}, {-104, -20, -92, 8, 2, 1},{84, -8, 100, 8, 8, 1}, {106, -18, 122, -2, 8, 1}};@@ -356,6 +361,7 @@ static const look_t looks[RG_SYS_COUNT] = {{0x3199DB, 0x2481BA, "1986", sms_shape, sizeof sms_shape / sizeof sms_shape[0]},{0x0EA186, 0x13BC9D, "1990", gg_shape, sizeof gg_shape / sizeof gg_shape[0]},{0xC0392B, 0xA93226, "1983", sg_shape, sizeof sg_shape / sizeof sg_shape[0]},+ {0x2C3E50, 0x22313F, "1982", cv_shape, sizeof cv_shape / sizeof cv_shape[0]},};static bool in_shape(const shape_t *s, int u, int v) {@@ -400,7 +406,7 @@ static void header(int sys, int y) {gfx_rrect(1, y + 1, LOGO_W - 2, HEADER_H - 2, 4, WHITE, 256);gfx_rrect_outline(1, y + 1, LOGO_W - 2, HEADER_H - 2, 4, 1, HEX(0x9AA0A6), 256);/* a little console: the body, its screen or its pad */- if (sys == RG_SYS_NES || sys == RG_SYS_SMS || sys == RG_SYS_SG) {+ if (sys == RG_SYS_NES || sys == RG_SYS_SMS || sys == RG_SYS_SG || sys == RG_SYS_CV) {gfx_fill(7, y + 11, 32, 15, HEX(0x8C8C8C));gfx_fill(7, y + 22, 32, 4, HEX(0x3C3C3C));gfx_fill(10, y + 14, 12, 4, HEX(0xD8D8D8));@@ -873,6 +879,10 @@ static const char *button_name(int k) {static const char *const both[] = {NULL, T("A, 2"), T("B, 1"), NULL, T("Start, Pause")};return any && both[k] ? both[k] : names[k];}+ if (sys_now == RG_SYS_CV) {+ static const char *const cv[] = {T("Joystick"), T("Left button"), T("Right button"), NULL, NULL};+ return cv[k];+ }if (!sega) return names[k];static const char *const sms[] = {T("D-pad"), "2", "1", NULL, T("Pause")};return k == 4 && sys_now == RG_SYS_GG ? T("Start") : sms[k];@@ -1095,6 +1105,10 @@ static int controls(void) {const char *label = button_name(i);items[i] = (item_t){0, label ? label : "", "", label ? IT_NORMAL : IT_HIDDEN, 1, key_cb, i ? i + 3 : 0};}+ if (sys_now == RG_SYS_CV && game) { /* (its keypad, on the two buttons it doesn't have) */+ items[3] = (item_t){0, T("Keypad"), "", IT_MESSAGE, 1, NULL, 0}, strcpy(items[3].value, T("0 to 9"));+ items[4] = (item_t){0, T("* and #"), "", IT_MESSAGE, 1, NULL, 0}, strcpy(items[4].value, T("x and /"));+ }items[5] = (item_t){0, T("Menu"), "", IT_MESSAGE, 1, NULL, 0}, strcpy(items[5].value, T("Backspace"));items[6] = (item_t){0, T("Quit"), "", IT_MESSAGE, 1, NULL, 0}, strcpy(items[6].value, T("Home (saves)"));items[7] = (item_t){0, T("Default keys"), "", IT_NORMAL, 0, default_keys_cb, 0};@@ -1107,7 +1121,7 @@ static int controls(void) {static int about(void) {item_t items[] = {{0, T("Retro-Go"), "ducalex", IT_MESSAGE, 1, NULL, 0}, {0, "Game Boy", "gnuboy", IT_MESSAGE, 1, NULL, 0},- {0, "NES", "nofrendo", IT_MESSAGE, 1, NULL, 0}, {0, "SMS, GG, SG", T("z80 by superzazu"), IT_MESSAGE, 1, NULL, 0},+ {0, "NES", "nofrendo", IT_MESSAGE, 1, NULL, 0}, {0, "SMS, GG, SG, COL", T("z80 by superzazu"), IT_MESSAGE, 1, NULL, 0},{0, T("Port"), "NumPlay", IT_MESSAGE, 1, NULL, 0}, MESSAGE(T("Not affiliated with Retro-Go")),ITEM(1, T("OK"))};return dialog_run(T("About Retro-Go"), items, 7, 6);@@ -1208,13 +1222,16 @@ uint32_t perf_frames, perf_drawn;static int play(const rg_rom_t *r, int slot) {sys_now = r->system;- core = sys_now == RG_SYS_NES ? CORE_NES : is_sega(sys_now) ? CORE_SMS : CORE_GB;+ core = sys_now == RG_SYS_NES ? CORE_NES : is_z80(sys_now) ? CORE_SMS : CORE_GB;game = r;game_crc = rom_crc(r);int err = core == CORE_GB ? gb_load(r->data, r->size): core == CORE_NES ? nes_load(r->data, r->size): sms_load(r->data, r->size, game_crc,- sys_now == RG_SYS_GG ? SMS_GG : sys_now == RG_SYS_SG ? SMS_SG : SMS_SMS);+ sys_now == RG_SYS_GG ? SMS_GG+ : sys_now == RG_SYS_SG ? SMS_SG+ : sys_now == RG_SYS_CV ? SMS_CV+ : SMS_SMS);if (err != RG_OK) {game = NULL;const char *why = err == RG_ERR_MAPPER ? T("This cartridge type isn't supported.")@@ -1266,6 +1283,15 @@ static int play(const rg_rom_t *r, int slot) {for (int i = 0; i < 8; i++)if (k & KEY(cfg.keys[i])) pad |= pad_bits[i];+ if (sys_now == RG_SYS_CV) { /* its keypad: the calculator's digits, x for * and / for # (when not a button) */+ static const uint8_t pad_keys[12] = {eadk_key_zero, eadk_key_one, eadk_key_two, eadk_key_three, eadk_key_four,+ eadk_key_five, eadk_key_six, eadk_key_seven, eadk_key_eight, eadk_key_nine,+ eadk_key_multiplication, eadk_key_division};+ int key = -1;+ for (int i = 0; i < 12 && key < 0; i++)+ if ((k & KEY(pad_keys[i])) && !memchr(cfg.keys, pad_keys[i], sizeof cfg.keys)) key = i;+ sms_set_keypad(key);+ }uint32_t t0 = millis();bool draw = skip == 0;if (core == CORE_GB) gb_set_pad(pad), gb_run_frame(draw);@@ -1323,8 +1349,8 @@ static void picker_scene(void *ctx) {if (!ntabs) { /* (no games: Retro-Go's welcome, and where they come from) */header(0, 0);static const char *const lines[] = {T("Welcome to Retro-Go!"), "", T("Add games on NumPlay's"),- T("customizer website:"), T("Game Boy, Game Boy Color, NES,"), T("Master System, Game Gear, SG-1000."),- "", T("Home: quit")};+ T("customizer website:"), T("Game Boy, Game Boy Color, NES,"), T("Master System, Game Gear, SG-1000,"),+ T("ColecoVision."), T("Home: quit")};for (int i = 0; i < 8; i++) gfx_text(&np_font_body, 8, 80 + 18 * i, lines[i], i ? 0xAD55 : WHITE, 256);return;}diff --git a/games/retrogo/src/romtable.h b/games/retrogo/src/romtable.hindex 1f585919..e3f029e4 100644--- a/games/retrogo/src/romtable.h+++ b/games/retrogo/src/romtable.h@@ -11,7 +11,7 @@#define RG_ROMS_NAME 40#define RG_MAX_ROMS 96-enum { RG_SYS_GB = 1, RG_SYS_GBC, RG_SYS_NES, RG_SYS_SMS, RG_SYS_GG, RG_SYS_SG, RG_SYS_COUNT };+enum { RG_SYS_GB = 1, RG_SYS_GBC, RG_SYS_NES, RG_SYS_SMS, RG_SYS_GG, RG_SYS_SG, RG_SYS_CV, RG_SYS_COUNT };typedef struct {const uint8_t *data;diff --git a/games/retrogo/src/sms/coleco_bios.c b/games/retrogo/src/sms/coleco_bios.cnew file mode 100644index 00000000..bb451bf6--- /dev/null+++ b/games/retrogo/src/sms/coleco_bios.c@@ -0,0 +1,347 @@+/* The ColecoVision's BIOS, as Retro-Go's SMS Plus keeps it (smsplus/coleco_bios.h): Coleco's 1982 BIOS, its+ * title screen skipped by the fire button. */+#include <stdint.h>+const uint8_t coleco_bios[8192] = {+ 0x31, 0xb9, 0x73, 0xc3, 0x6e, 0x00, 0xff, 0xff, 0xc3, 0x0c, 0x80, 0x11, 0xe8, 0x00, 0x18, 0x03, 0xc3, 0x0f, 0x80, 0xd3, 0xc0, 0x00, 0x18, 0x03,+ 0xc3, 0x12, 0x80, 0xdb, 0xfc, 0x47, 0x18, 0x03, 0xc3, 0x15, 0x80, 0xdb, 0xff, 0xa0, 0x18, 0x03, 0xc3, 0x18, 0x80, 0xe6, 0x40, 0x28, 0x04, 0xc9,+ 0xc3, 0x1b, 0x80, 0xe1, 0x00, 0x00, 0x00, 0xc9, 0xc3, 0x1e, 0x80, 0x2a, 0xc8, 0x73, 0xcb, 0x7c, 0x28, 0x06, 0xcb, 0x44, 0x28, 0x06, 0x18, 0x07,+ 0xcb, 0x44, 0x28, 0x03, 0x37, 0x18, 0x01, 0xb7, 0xcb, 0x15, 0xcb, 0x14, 0x22, 0xc8, 0x73, 0x7d, 0xc9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc3, 0x21, 0x80, 0x3c, 0xab, 0x16, 0x23, 0x16, 0x2a, 0x00, 0x80, 0x7d, 0xfe, 0x55, 0xc2, 0x81, 0x00, 0x7c,+ 0xfe, 0xaa, 0xc2, 0x81, 0x00, 0x2a, 0x0a, 0x80, 0xe9, 0xcd, 0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 0x18, 0xf9, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x01, 0x94, 0x0f, 0x11, 0xba, 0x73, 0xcd, 0x98, 0x00, 0x2a, 0xba, 0x73, 0xed, 0x5b,+ 0xbc, 0x73, 0x22, 0xd3, 0x73, 0x36, 0x30, 0xeb, 0x22, 0xd5, 0x73, 0xc9, 0x01, 0x00, 0x01, 0x00, 0x01, 0xb4, 0x0f, 0x11, 0xbe, 0x73, 0xcd, 0x98,+ 0x00, 0x3a, 0xbe, 0x73, 0x4f, 0x2a, 0xd3, 0x73, 0x47, 0x11, 0x03, 0x00, 0xb7, 0x28, 0x08, 0xcb, 0x66, 0x20, 0x6a, 0x19, 0x0d, 0x20, 0xf8, 0xcb,+ 0x6e, 0x20, 0x62, 0xcb, 0xee, 0xcb, 0x76, 0x28, 0x5c, 0xcb, 0x5e, 0x28, 0x58, 0x23, 0x5e, 0x23, 0x56, 0xd5, 0x2a, 0xd3, 0x73, 0xe5, 0xcb, 0x66,+ 0x20, 0x2e, 0xcb, 0x6e, 0x20, 0x23, 0x7e, 0xe6, 0x48, 0xfe, 0x48, 0x20, 0x1c, 0x23, 0x23, 0x7e, 0xba, 0x38, 0x16, 0x20, 0x08, 0x2b, 0x7e, 0xbb,+ 0x38, 0x0f, 0x28, 0x31, 0x23, 0x56, 0x2b, 0x5e, 0x1b, 0x1b, 0x1b, 0x1b, 0x73, 0x23, 0x72, 0x18, 0x00, 0xe1, 0x23, 0x23, 0x23, 0xe5, 0x18, 0xce,+ 0x06, 0x00, 0xb7, 0xe1, 0xd1, 0xe5, 0x2a, 0xd5, 0x73, 0xed, 0x52, 0x4d, 0x6b, 0x62, 0x23, 0x23, 0x23, 0x23, 0xed, 0xb0, 0x01, 0x08, 0x00, 0xed,+ 0x42, 0x22, 0xd5, 0x73, 0xe1, 0xc9, 0x02, 0x00, 0x01, 0x00, 0x02, 0x00, 0x01, 0x3e, 0x10, 0x11, 0xbf, 0x73, 0xcd, 0x98, 0x00, 0x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0xd5, 0x7e, 0xfe, 0xff, 0x28, 0x1b, 0x47,+ 0x04, 0x21, 0xc3, 0x14, 0x11, 0x08, 0x00, 0x10, 0x15, 0xd1, 0xd5, 0xfd, 0x21, 0x01, 0x00, 0x3e, 0x03, 0xcd, 0xbe, 0x1f, 0xd1, 0xe1, 0x13, 0x23,+ 0x18, 0xde, 0xd1, 0xe1, 0x18, 0x03, 0x19, 0x18, 0xe6, 0x21, 0x4d, 0x14, 0x11, 0x85, 0x00, 0xfd, 0x21, 0x16, 0x00, 0x3e, 0x02, 0xcd, 0xbe, 0x1f,+ 0x21, 0x63, 0x14, 0x11, 0xa5, 0x00, 0xfd, 0x21, 0x16, 0x00, 0x3e, 0x02, 0xcd, 0xbe, 0x1f, 0x21, 0xc1, 0x14, 0x11, 0x9b, 0x00, 0xfd, 0x21, 0x02,+ 0x00, 0x3e, 0x02, 0xcd, 0xbe, 0x1f, 0x21, 0xb4, 0x14, 0x11, 0xaa, 0x02, 0xfd, 0x21, 0x0d, 0x00, 0x3e, 0x02, 0xcd, 0xbe, 0x1f, 0x21, 0x3b, 0x14,+ 0x11, 0x00, 0x00, 0x3e, 0x04, 0xfd, 0x21, 0x12, 0x00, 0xcd, 0xbe, 0x1f, 0x06, 0x01, 0x0e, 0xc0, 0xcd, 0xd9, 0x1f, 0x21, 0x00, 0x80, 0x7e, 0xfe,+ 0xaa, 0x20, 0x4c, 0x23, 0x7e, 0xfe, 0x55, 0x20, 0x46, 0x21, 0x24, 0x80, 0xcd, 0x46, 0x19, 0x11, 0x24, 0x80, 0x21, 0x01, 0x02, 0xcd, 0x51, 0x19,+ 0x21, 0x24, 0x80, 0xcd, 0x46, 0x19, 0x23, 0x54, 0x5d, 0xcd, 0x46, 0x19, 0x21, 0xc1, 0x01, 0xcd, 0x51, 0x19, 0x21, 0x24, 0x80, 0xcd, 0x46, 0x19,+ 0x23, 0xcd, 0x46, 0x19, 0x23, 0x11, 0xac, 0x02, 0xfd, 0x21, 0x04, 0x00, 0x3e, 0x02, 0xcd, 0xbe, 0x1f, 0xcd, 0x68, 0x19, 0x06, 0x01, 0x0e, 0x80,+ 0xcd, 0xd9, 0x1f, 0x2a, 0x0a, 0x80, 0xe9, 0x21, 0x79, 0x14, 0x11, 0xaa, 0x01, 0xfd, 0x21, 0x0d, 0x00, 0x3e, 0x02, 0xcd, 0xbe, 0x1f, 0x21, 0x86,+ 0x14, 0x11, 0xe4, 0x01, 0xfd, 0x21, 0x1a, 0x00, 0x3e, 0x02, 0xcd, 0xbe, 0x1f, 0x21, 0xa0, 0x14, 0x11, 0x27, 0x02, 0xfd, 0x21, 0x14, 0x00, 0x3e,+ 0x02, 0xcd, 0xbe, 0x1f, 0x21, 0x00, 0x8a, 0xcd, 0x6b, 0x19, 0x06, 0x01, 0x0e, 0x80, 0xcd, 0xd9, 0x1f, 0x18, 0xfe, 0x00, 0x00, 0x00, 0xf0, 0xf0,+ 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xd0, 0x80, 0x90, 0xb0, 0x30, 0x40, 0x60, 0x61, 0x68, 0x69, 0x70, 0x71, 0x78, 0x79, 0x80, 0x81, 0x88,+ 0x89, 0x64, 0x65, 0x6c, 0x74, 0x75, 0x7c, 0x84, 0x85, 0x8c, 0x8d, 0x62, 0x63, 0x6a, 0x6b, 0x72, 0x73, 0x7a, 0x7b, 0x82, 0x83, 0x8a, 0x8b, 0x66,+ 0x67, 0x6d, 0x76, 0x77, 0x7d, 0x86, 0x87, 0x8e, 0x8f, 0x54, 0x55, 0x52, 0x4e, 0x20, 0x47, 0x41, 0x4d, 0x45, 0x20, 0x4f, 0x46, 0x46, 0x42, 0x45,+ 0x46, 0x4f, 0x52, 0x45, 0x20, 0x49, 0x4e, 0x53, 0x45, 0x52, 0x54, 0x49, 0x4e, 0x47, 0x20, 0x43, 0x41, 0x52, 0x54, 0x52, 0x49, 0x44, 0x47, 0x45,+ 0x4f, 0x52, 0x20, 0x45, 0x58, 0x50, 0x41, 0x4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00, 0x00, 0x00, 0x00,+ 0x00, 0x00, 0x00, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0x00, 0x00, 0x1f, 0x01, 0x79, 0x7f, 0x3f, 0x1f, 0x00, 0x00, 0xe0, 0xe0, 0xe0, 0xe0, 0xc0,+ 0x80, 0x00, 0x00, 0xff, 0xf7, 0xf7, 0xf7, 0xf3, 0xf3, 0x00, 0x00, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x7e, 0x81, 0xbd, 0xa1, 0xa1,+ 0xbd, 0x81, 0x7e, 0x1f, 0x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x44, 0x6c, 0x54, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,+ 0x00, 0x00, 0x00, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x20, 0x00, 0x50, 0x50, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x50, 0x50, 0xf8, 0x50, 0xf8,+ 0x50, 0x50, 0x00, 0x20, 0x78, 0xa0, 0x70, 0x28, 0xf0, 0x20, 0x00, 0xc0, 0xc8, 0x10, 0x20, 0x40, 0x98, 0x18, 0x00, 0x40, 0xa0, 0xa0, 0x40, 0xa8,+ 0x90, 0x68, 0x00, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x40, 0x80, 0x80, 0x80, 0x40, 0x20, 0x00, 0x20, 0x10, 0x08, 0x08, 0x08,+ 0x10, 0x20, 0x00, 0x20, 0xa8, 0x70, 0x20, 0x70, 0xa8, 0x20, 0x00, 0x00, 0x20, 0x20, 0xf8, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,+ 0x20, 0x40, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x08, 0x10, 0x20, 0x40,+ 0x80, 0x00, 0x00, 0x70, 0x88, 0x98, 0xa8, 0xc8, 0x88, 0x70, 0x00, 0x20, 0x60, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, 0x70, 0x88, 0x08, 0x30, 0x40,+ 0x80, 0xf8, 0x00, 0xf8, 0x08, 0x10, 0x30, 0x08, 0x88, 0x70, 0x00, 0x10, 0x30, 0x50, 0x90, 0xf8, 0x10, 0x10, 0x00, 0xf8, 0x80, 0xf0, 0x08, 0x08,+ 0x88, 0x70, 0x00, 0x38, 0x40, 0x80, 0xf0, 0x88, 0x88, 0x70, 0x00, 0xf8, 0x08, 0x10, 0x20, 0x40, 0x40, 0x40, 0x00, 0x70, 0x88, 0x88, 0x70, 0x88,+ 0x88, 0x70, 0x00, 0x70, 0x88, 0x88, 0x78, 0x08, 0x10, 0xe0, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20,+ 0x20, 0x40, 0x00, 0x10, 0x20, 0x40, 0x80, 0x40, 0x20, 0x10, 0x00, 0x00, 0x00, 0xf8, 0x00, 0xf8, 0x00, 0x00, 0x00, 0x40, 0x20, 0x10, 0x08, 0x10,+ 0x20, 0x40, 0x00, 0x70, 0x88, 0x10, 0x20, 0x20, 0x00, 0x20, 0x00, 0x70, 0x88, 0xa8, 0xb8, 0xb0, 0x80, 0x78, 0x00, 0x20, 0x50, 0x88, 0x88, 0xf8,+ 0x88, 0x88, 0x00, 0xf0, 0x88, 0x88, 0xf0, 0x88, 0x88, 0xf0, 0x00, 0x70, 0x88, 0x80, 0x80, 0x80, 0x88, 0x70, 0x00, 0xf0, 0x88, 0x88, 0x88, 0x88,+ 0x88, 0xf0, 0x00, 0xf8, 0x80, 0x80, 0xf0, 0x80, 0x80, 0xf8, 0x00, 0xf8, 0x80, 0x80, 0xf0, 0x80, 0x80, 0x80, 0x00, 0x78, 0x80, 0x80, 0x80, 0x98,+ 0x88, 0x78, 0x00, 0x88, 0x88, 0x88, 0xf8, 0x88, 0x88, 0x88, 0x00, 0x70, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, 0x08, 0x08, 0x08, 0x08, 0x08,+ 0x88, 0x70, 0x00, 0x88, 0x90, 0xa0, 0xc0, 0xa0, 0x90, 0x88, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xf8, 0x00, 0x88, 0xd8, 0xa8, 0xa8, 0x88,+ 0x88, 0x88, 0x00, 0x88, 0x88, 0xc8, 0xa8, 0x98, 0x88, 0x88, 0x00, 0x70, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, 0xf0, 0x88, 0x88, 0xf0, 0x80,+ 0x80, 0x80, 0x00, 0x70, 0x88, 0x88, 0x88, 0xa8, 0x90, 0x68, 0x00, 0xf0, 0x88, 0x88, 0xf0, 0xa0, 0x90, 0x88, 0x00, 0x70, 0x88, 0x80, 0x70, 0x08,+ 0x88, 0x70, 0x00, 0xf8, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, 0x88, 0x88, 0x88, 0x88, 0x88,+ 0x50, 0x20, 0x00, 0x88, 0x88, 0x88, 0xa8, 0xa8, 0xd8, 0x88, 0x00, 0x88, 0x88, 0x50, 0x20, 0x50, 0x88, 0x88, 0x00, 0x88, 0x88, 0x50, 0x20, 0x20,+ 0x20, 0x20, 0x00, 0xf8, 0x08, 0x10, 0x20, 0x40, 0x80, 0xf8, 0x00, 0xf8, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xf8, 0x00, 0x00, 0x80, 0x40, 0x20, 0x10,+ 0x08, 0x00, 0x00, 0xf8, 0x18, 0x18, 0x18, 0x18, 0x18, 0xf8, 0x00, 0x00, 0x00, 0x20, 0x50, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,+ 0x00, 0x00, 0xf8, 0x40, 0x20, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x88, 0xf8, 0x88, 0x88, 0x00, 0x00, 0x00, 0xf0, 0x48, 0x70,+ 0x48, 0xf0, 0x00, 0x00, 0x00, 0x78, 0x80, 0x80, 0x80, 0x78, 0x00, 0x00, 0x00, 0xf0, 0x48, 0x48, 0x48, 0xf0, 0x00, 0x00, 0x00, 0xf0, 0x80, 0xe0,+ 0x80, 0xf0, 0x00, 0x00, 0x00, 0xf0, 0x80, 0xe0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x78, 0x80, 0xb8, 0x88, 0x70, 0x00, 0x00, 0x00, 0x88, 0x88, 0xf8,+ 0x88, 0x88, 0x00, 0x00, 0x00, 0xf8, 0x20, 0x20, 0x20, 0xf8, 0x00, 0x00, 0x00, 0x70, 0x20, 0x20, 0xa0, 0xe0, 0x00, 0x00, 0x00, 0x90, 0xa0, 0xc0,+ 0xa0, 0x90, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0xf8, 0x00, 0x00, 0x00, 0x88, 0xd8, 0xa8, 0x88, 0x88, 0x00, 0x00, 0x00, 0x88, 0xc8, 0xa8,+ 0x98, 0x88, 0x00, 0x00, 0x00, 0xf8, 0x88, 0x88, 0x88, 0xf8, 0x00, 0x00, 0x00, 0xf0, 0x88, 0xf0, 0x80, 0x80, 0x00, 0x00, 0x00, 0xf8, 0x88, 0xa8,+ 0x90, 0xe0, 0x00, 0x00, 0x00, 0xf8, 0x88, 0xf8, 0xa0, 0x90, 0x00, 0x00, 0x00, 0x78, 0x80, 0x70, 0x08, 0xf0, 0x00, 0x00, 0x00, 0xf8, 0x20, 0x20,+ 0x20, 0x20, 0x00, 0x00, 0x00, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, 0x00, 0x00, 0x88, 0x88, 0x90, 0xa0, 0x40, 0x00, 0x00, 0x00, 0x88, 0x88, 0xa8,+ 0xd8, 0x88, 0x00, 0x00, 0x00, 0x88, 0x60, 0x20, 0x60, 0x88, 0x00, 0x00, 0x00, 0x88, 0x50, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xf8, 0x10, 0x20,+ 0x40, 0xf8, 0x00, 0x38, 0x40, 0x20, 0xc0, 0x20, 0x40, 0x38, 0x00, 0x40, 0x20, 0x10, 0x08, 0x10, 0x20, 0x40, 0x00, 0xe0, 0x10, 0x20, 0x18, 0x20,+ 0x10, 0xe0, 0x00, 0x40, 0xa8, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x50, 0xa8, 0x50, 0xa8, 0x50, 0xa8, 0x55, 0x01, 0x02, 0x0e, 0x0f, 0x08,+ 0x09, 0x12, 0x13, 0x03, 0x04, 0x0e, 0x0f, 0x05, 0x14, 0x00, 0x00, 0x05, 0x00, 0x10, 0x11, 0x0a, 0x0b, 0x15, 0x16, 0x06, 0x07, 0x10, 0x11, 0x05,+ 0x14, 0x00, 0x00, 0x01, 0x02, 0x0e, 0x0f, 0x03, 0x04, 0x0e, 0x0f, 0x03, 0x04, 0x0e, 0x0f, 0x0c, 0x0d, 0x17, 0x18, 0xff, 0x4f, 0x7d, 0xd3, 0xbf,+ 0x7c, 0xf6, 0x40, 0xd3, 0xbf, 0x79, 0xd3, 0xbe, 0x1b, 0x7a, 0xb3, 0x20, 0xf8, 0xcd, 0xdc, 0x1f, 0xc9, 0x06, 0x00, 0x0e, 0x00, 0xcd, 0xd9, 0x1f,+ 0x06, 0x01, 0x0e, 0x80, 0xcd, 0xd9, 0x1f, 0x3e, 0x02, 0x21, 0x00, 0x18, 0xcd, 0xb8, 0x1f, 0x3e, 0x04, 0x21, 0x00, 0x20, 0xcd, 0xb8, 0x1f, 0x3e,+ 0x03, 0x21, 0x00, 0x00, 0xcd, 0xb8, 0x1f, 0x3e, 0x00, 0x21, 0x00, 0x1b, 0xcd, 0xb8, 0x1f, 0x3e, 0x01, 0x21, 0x00, 0x38, 0xcd, 0xb8, 0x1f, 0x06,+ 0x07, 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xc3, 0x5a, 0x1c, 0xc3,+ 0x76, 0x1c, 0xc3, 0x9a, 0x0f, 0xc3, 0xb8, 0x0f, 0xc3, 0x44, 0x10, 0xc3, 0xbf, 0x10, 0xc3, 0xbc, 0x1c, 0xc3, 0xed, 0x1c, 0xc3, 0x2a, 0x1d, 0xc3,+ 0x55, 0x06, 0xc3, 0x03, 0x02, 0xc3, 0x51, 0x02, 0xc3, 0x1d, 0x1b, 0xc3, 0xa3, 0x1b, 0xc3, 0x27, 0x1c, 0xc3, 0x66, 0x1c, 0xc3, 0x82, 0x1c, 0xc3,+ 0xaa, 0x0f, 0xc3, 0xc4, 0x0f, 0xc3, 0x53, 0x10, 0xc3, 0xcb, 0x10, 0xc3, 0x37, 0x0f, 0xc3, 0x3b, 0x02, 0xc3, 0xca, 0x1c, 0xc3, 0x57, 0x1d, 0xc3,+ 0x01, 0x1d, 0xc3, 0x3e, 0x1d, 0xc3, 0x64, 0x06, 0xc3, 0x79, 0x06, 0xc3, 0xc1, 0x11, 0xc3, 0x13, 0x02, 0xc3, 0x5e, 0x02, 0xc3, 0x7f, 0x02, 0xc3,+ 0xa3, 0x04, 0xc3, 0xd8, 0x06, 0xc3, 0x3b, 0x00,+};diff --git a/games/retrogo/src/sms/sms.c b/games/retrogo/src/sms/sms.cindex 17891b91..12c4034b 100644--- a/games/retrogo/src/sms/sms.c+++ b/games/retrogo/src/sms/sms.c@@ -2,7 +2,9 @@* (Sega's, Codemasters', the Korean one), the work RAM, the pads, the Game Gear's ports and the* video chip (mode 4: the tiles, their scrolling and priorities, the sprites, the line and frame* interrupts, the counters; and the TMS9918's modes the SG-1000 draws with: Graphics I and II,- * Text and Multicolor, with its sprites), drawn a line at a time. Written for NumPlay from the+ * Text and Multicolor, with its sprites), drawn a line at a time. The ColecoVision is the same Z80+ * and TMS9918 with its own memory, ports and controllers, and its BIOS (coleco_bios.c); its memory+ * and ports follow SMS Plus's as Retro-Go has them, with the Super Game Module's RAM. Written for NumPlay from the* hardware's public descriptions (Charles MacDonald's notes on the VDP and the Master System,* Texas Instruments' TMS9918A manual, SMS Power's pages); no sound, the calculator has no* speaker. The short list of games that need something of their own (their CRC32s) is SMS Plus@@ -55,7 +57,8 @@ typedef struct {uint8_t io3f; /* the pads' lines (port $3F) */uint8_t sram_on; /* the game turned its cartridge RAM on */uint8_t pause; /* the pause button, held */- uint8_t pad_[3];+ uint8_t cv_joy; /* the ColecoVision's controllers read: the joystick (1) or the keypad (0) */+ uint8_t sgm53, sgm7f; /* the Super Game Module's ports: its 24 KB of RAM on (bit 0), the BIOS on (bit 1) */} state_t;/* a line's registers as it was drawn (sms_redraw draws the frame again from them) */@@ -63,15 +66,17 @@ typedef struct { uint8_t r0, r1, r2, r3, r4, r5, r6, r7, hs, vs; } line_regs_t;static z80 cpu;static state_t st;-static uint8_t *ram, *vram, *sram, *sram_slot;+static uint8_t *ram, *vram, *sram, *sram_slot, *tail; /* tail: the ROM's last 1 KB when it isn't whole, padded */static uint32_t *expand; /* a byte of a tile's plane -> its 8 pixels, a bit in each nibble */static line_regs_t *snap;static int snap_lines;static const uint8_t *rom;static uint32_t rom_size, banks;static uint8_t mapper_kind;-static bool gg, gg_vdp, sg, pal, sram_dirty;-static uint8_t pad_bits;+static bool gg, gg_vdp, sg, cv, pal, sram_dirty;+static uint8_t pad_bits, cv_nmi;+static int cv_key = -1;+extern const uint8_t coleco_bios[8192];static bool start_button;static uint32_t line_start, line_end;static uint16_t pal565[32];@@ -87,17 +92,23 @@ static const uint8_t open_bus[0x400] = {[0 ... 0x3FF] = 0xFF};const uint8_t *z80_rmap[64];/* ------------------------------------------------------------ memory */-static const uint8_t *rom_page(uint32_t bank, int k) {- uint32_t at = (bank % banks) * 0x4000 + (uint32_t)k * 0x400;- return at + 0x400 <= rom_size ? rom + at : open_bus;+static const uint8_t *rom_at(uint32_t at) { /* the 1 KB of ROM from at */+ return at + 0x400 <= rom_size ? rom + at : at < rom_size ? tail : open_bus;}+static const uint8_t *rom_page(uint32_t bank, int k) { return rom_at((bank % banks) * 0x4000 + (uint32_t)k * 0x400); }static void map_update(void) {sram_slot = NULL;+ if (cv) { /* the BIOS (or the module's RAM), the module's RAM, 1 KB of RAM over and over, 32 KB of cartridge */+ for (int k = 0; k < 8; k++) z80_rmap[k] = st.sgm7f & 2 ? coleco_bios + k * 0x400 : sram + k * 0x400;+ for (int k = 8; k < 32; k++) z80_rmap[k] = st.sgm53 & 1 ? sram + k * 0x400 : k >= 24 ? ram : open_bus;+ for (int k = 32; k < 64; k++) z80_rmap[k] = rom_at((uint32_t)(k - 32) * 0x400);+ return;+ }if (sg) { /* the SG-1000: 48 KB of cartridge in a row (the smaller ones with RAM after them), 1 KB of RAM */for (int k = 0; k < 48; k++) {uint32_t at = (uint32_t)k * 0x400;- z80_rmap[k] = at + 0x400 <= rom_size ? rom + at : k >= 32 && rom_size <= 0x8000 ? sram + (at & 0x3FFF) : open_bus;+ z80_rmap[k] = at < rom_size ? rom_at(at) : k >= 32 && rom_size <= 0x8000 ? sram + (at & 0x3FFF) : open_bus;}for (int k = 0; k < 16; k++) z80_rmap[48 + k] = ram;return;@@ -119,6 +130,15 @@ static void map_update(void) {}void z80_bus_write(uint16_t a, uint8_t v) {+ if (cv) {+ if (a < 0x2000) {+ if (!(st.sgm7f & 2)) sram[a] = v;+ } else if (a < 0x8000) {+ if (st.sgm53 & 1) sram[a] = v;+ else if (a >= 0x6000) ram[a & 0x3FF] = v;+ }+ return;+ }if (sg) {if (a >= 0xC000) ram[a & 0x3FF] = v;else if (a >= 0x8000 && rom_size <= 0x8000) sram[a & 0x3FFF] = v; /* (The Castle's and Othello's RAM) */@@ -154,6 +174,12 @@ static int height_of(uint8_t r0, uint8_t r1) {static int height(void) { return height_of(st.reg[0], st.reg[1]); }static void irq_update(void) {+ if (cv) { /* the ColecoVision: the video chip's interrupt is an NMI, when it starts */+ uint8_t on = st.vint && (st.reg[1] & 0x20);+ if (on && !cv_nmi) z80_gen_nmi(&cpu);+ cv_nmi = on;+ return;+ }cpu.irq_line = (st.vint && (st.reg[1] & 0x20)) || (st.hint && (st.reg[0] & 0x10) && !sg);}@@ -250,7 +276,31 @@ static uint8_t pad_dd(void) {return v;}+/* the ColecoVision's controller: the joystick and the left button, or the keypad and the right button */+static uint8_t cv_pad(void) {+ static const uint8_t keymask[12] = {0x7A, 0x7D, 0x77, 0x7C, 0x72, 0x73, 0x7E, 0x75, 0x71, 0x7B, 0x79, 0x76};+ uint8_t v = 0x7F;+ if (st.cv_joy) {+ if (pad_bits & 0x01) v &= (uint8_t)~1;+ else if (pad_bits & 0x02) v &= (uint8_t)~4;+ if (pad_bits & 0x04) v &= (uint8_t)~8;+ else if (pad_bits & 0x08) v &= (uint8_t)~2;+ if (pad_bits & 0x20) v &= (uint8_t)~0x40;+ } else {+ if (cv_key >= 0 && cv_key < 12) v = keymask[cv_key];+ if (pad_bits & 0x10) v &= (uint8_t)~0x40;+ }+ return v;+}+uint8_t z80_bus_in(uint8_t port) {+ if (cv) {+ switch (port & 0xE0) {+ case 0xA0: return port & 1 ? vdp_status() : vdp_read();+ case 0xE0: return port & 2 ? 0x7F : cv_pad(); /* (one controller) */+ }+ return port == 0x53 ? st.sgm53 : port == 0x7F ? st.sgm7f : 0xFF;+ }if (gg && port < 7) { /* the Game Gear's: Start, outside Japan, 60 Hz; the link port, idle */static const uint8_t idle[7] = {0, 0x7F, 0xFF, 0x00, 0xFF, 0x00, 0xFF};return port ? idle[port] : (uint8_t)(0x40 | (start_button ? 0 : 0x80));@@ -267,6 +317,17 @@ uint8_t z80_bus_in(uint8_t port) {}void z80_bus_out(uint8_t port, uint8_t v) {+ if (cv) {+ switch (port & 0xE0) {+ case 0x80: st.cv_joy = 0; return;+ case 0xC0: st.cv_joy = 1; return;+ case 0xA0: port & 1 ? vdp_control(v) : vdp_write(v); return;+ case 0xE0: return; /* (the sound chip) */+ }+ if (port == 0x53) st.sgm53 = v, map_update();+ else if (port == 0x7F) st.sgm7f = v, map_update();+ return;+ }if (gg && port < 7) return; /* (the link port and the stereo sound) */switch (port & 0xC1) {case 0x01: st.io3f = v; break;@@ -498,10 +559,13 @@ void sms_redraw(void) {st.status = status;}+void sms_set_keypad(int key) { cv_key = key; }+void sms_set_pad(int p) {pad_bits = (uint8_t)((p & RG_PAD_UP ? 0x01 : 0) | (p & RG_PAD_DOWN ? 0x02 : 0) | (p & RG_PAD_LEFT ? 0x04 : 0) |(p & RG_PAD_RIGHT ? 0x08 : 0) | (p & RG_PAD_B ? 0x10 : 0) | (p & RG_PAD_A ? 0x20 : 0));bool start = p & RG_PAD_START;+ if (cv) return;if (gg_vdp) {start_button = start;} else { /* the Master System's pause button (or the Game Gear's Start in its mode): an NMI */@@ -513,6 +577,7 @@ void sms_set_pad(int p) {uint32_t sms_frame_us(void) { return pal ? 20120 : 16688; } /* (313 or 262 lines of 228 clocks) */bool sms_is_gg(void) { return gg; }bool sms_is_sg(void) { return sg; }+bool sms_is_cv(void) { return cv; }void sms_reset(bool hard) {if (hard) {@@ -530,6 +595,7 @@ void sms_reset(bool hard) {st.mapper[0] = 0, st.mapper[1] = 0, st.mapper[2] = 1;st.mapper[3] = mapper_kind == MAP_SEGA ? 2 : 0;st.line = 0, st.pause = 0;+ st.cv_joy = 0, st.sgm53 = 0, st.sgm7f = 0xFF, cv_nmi = 0;map_update();z80_init(&cpu);if (!sg) cpu.sp = 0xDFF0; /* (where the BIOS leaves it; a few games count on it) */@@ -542,8 +608,10 @@ int sms_load(const uint8_t *data, uint32_t size, uint32_t crc, int machine) {if (size < 0x400) return RG_ERR_ROM;rg_alloc_reset();ram = rg_alloc(0x2000), vram = rg_alloc(0x4000), sram = rg_alloc(0x8000);- expand = rg_alloc(256 * sizeof *expand), snap = rg_alloc(240 * sizeof *snap);- if (!ram || !vram || !sram || !expand || !snap) return RG_ERR_MEMORY;+ expand = rg_alloc(256 * sizeof *expand), snap = rg_alloc(240 * sizeof *snap), tail = rg_alloc(0x400);+ if (!ram || !vram || !sram || !expand || !snap || !tail) return RG_ERR_MEMORY;+ memset(tail, 0xFF, 0x400);+ memcpy(tail, data + (size & ~0x3FFu), size & 0x3FF);for (int b = 0; b < 256; b++) {uint32_t v = 0;for (int i = 0; i < 8; i++)@@ -561,9 +629,10 @@ int sms_load(const uint8_t *data, uint32_t size, uint32_t crc, int machine) {}mapper_kind = flags & DB_CODIES ? MAP_CODIES : flags & DB_KOREA ? MAP_KOREA : MAP_SEGA;pal = flags & DB_PAL;- gg = machine == SMS_GG, gg_vdp = gg && !(flags & DB_GGMS), sg = machine == SMS_SG;- if (sg) pal = false;- pad_bits = 0, start_button = false, sram_dirty = false;+ cv = machine == SMS_CV;+ gg = machine == SMS_GG, gg_vdp = gg && !(flags & DB_GGMS), sg = machine == SMS_SG || cv;+ if (sg) pal = false, mapper_kind = MAP_SEGA;+ pad_bits = 0, cv_key = -1, start_button = false, sram_dirty = false;sms_reset(true);return RG_OK;}@@ -593,7 +662,8 @@ void sms_state_loaded(void) {line_start = line_end = 0;if (st.line >= lines_per_frame()) st.line = 0;st.addr &= 0x3FFF, st.code &= 3, st.pending &= 1, st.vint &= 1, st.hint &= 1;- st.sram_on &= 1, st.pause &= 1;+ st.sram_on &= 1, st.pause &= 1, st.cv_joy &= 1;+ cv_nmi = st.vint && (st.reg[1] & 0x20); /* (not again for an interrupt the state was in) */if (st.counter < -1 || st.counter > 255) st.counter = st.reg[10];map_update();for (int i = 0; i < 32; i++) palette_update(i);diff --git a/games/retrogo/src/sms/sms.h b/games/retrogo/src/sms/sms.hindex 6dbb14b7..402225f8 100644--- a/games/retrogo/src/sms/sms.h+++ b/games/retrogo/src/sms/sms.h@@ -1,5 +1,5 @@-/* The Sega Master System, Game Gear and SG-1000 (sms.c and superzazu's Z80), as Retro-Go's- * screens drive them. */+/* The Sega Master System, Game Gear and SG-1000, and the ColecoVision (sms.c and superzazu's Z80), as+ * Retro-Go's screens drive them. */#ifndef SMS_H#define SMS_H#include "../rg.h"@@ -7,14 +7,16 @@#define SMS_WIDTH 256#define SMS_HEIGHT 240 /* (the tallest picture; most games show 192 lines) */-/* Loads a ROM read in place, for a Master System, a Game Gear or an SG-1000 (machine); crc is its- CRC32, for the few games that need something of their own (the mapper, 50 Hz, Master System- mode on the Game Gear). RG_OK or an RG_ERR_ code. */-enum { SMS_SMS, SMS_GG, SMS_SG };+/* Loads a ROM read in place, for a Master System, a Game Gear, an SG-1000 or a ColecoVision (machine);+ crc is its CRC32, for the few games that need something of their own (the mapper, 50 Hz, Master+ System mode on the Game Gear). RG_OK or an RG_ERR_ code. */+enum { SMS_SMS, SMS_GG, SMS_SG, SMS_CV };int sms_load(const uint8_t *data, uint32_t size, uint32_t crc, int machine);void sms_reset(bool hard);void sms_run_frame(bool draw);void sms_set_pad(int rg_pad);+/* the ColecoVision's keypad: 0 to 9, 10 for *, 11 for #, -1 for none */+void sms_set_keypad(int key);/* the picture shown: its first line and column and its size (the Game Gear's screen is a part ofits video chip's) */void sms_view(int *x, int *y, int *w, int *h);@@ -22,6 +24,7 @@ void sms_view(int *x, int *y, int *w, int *h);uint32_t sms_frame_us(void);bool sms_is_gg(void);bool sms_is_sg(void);+bool sms_is_cv(void);/* the last frame drawn, line by line through rg_line again (under the menus) */void sms_redraw(void);diff --git a/games/retrogo/tests/host_core.c b/games/retrogo/tests/host_core.cindex 6c5c4cde..b46b6cfa 100644--- a/games/retrogo/tests/host_core.c+++ b/games/retrogo/tests/host_core.c@@ -1,7 +1,7 @@/* Retro-Go's emulators on a computer: runs a ROM for some frames, with random keys if asked,* and writes the last frame as a PPM picture.* host_core ROM FRAMES OUT.ppm [SEED] [SCRIPT] (SEED: random pad presses; 0 for none)- * The system comes from the file's extension (.gb .gbc .nes .sms .gg .sg). */+ * The system comes from the file's extension (.gb .gbc .nes .sms .gg .sg .col). */#include <stdio.h>#include <stdlib.h>#include <string.h>@@ -83,9 +83,11 @@ int main(int argc, char **argv) {int frames = atoi(argv[2]);unsigned seed = argc > 4 ? (unsigned)atoi(argv[4]) : 0;const char *ext = strrchr(argv[1], '.');- kind = ext && !strcmp(ext, ".nes") ? NES : ext && (!strcmp(ext, ".sms") || !strcmp(ext, ".gg") || !strcmp(ext, ".sg")) ? SMS : GB;+ bool col = ext && !strcmp(ext, ".col");+ kind = ext && !strcmp(ext, ".nes") ? NES : ext && (!strcmp(ext, ".sms") || !strcmp(ext, ".gg") || !strcmp(ext, ".sg") || col) ? SMS : GB;int r = kind == NES ? nes_load(rom, size)- : kind == SMS ? sms_load(rom, size, crc32(rom, size), !strcmp(ext, ".gg") ? SMS_GG : !strcmp(ext, ".sg") ? SMS_SG : SMS_SMS)+ : kind == SMS ? sms_load(rom, size, crc32(rom, size),+ !strcmp(ext, ".gg") ? SMS_GG : !strcmp(ext, ".sg") ? SMS_SG : col ? SMS_CV : SMS_SMS): gb_load(rom, size);if (r != RG_OK) return fprintf(stderr, "load failed: %d\n", r), 1;int pad = 0;@@ -102,6 +104,7 @@ int main(int argc, char **argv) {const char *comma = strchr(eq, ',');script = comma ? comma + 1 : "";}+ if (col) sms_set_keypad(((pad >> 8) & 15) - 1); /* (the ColecoVision's keypad: 256 times the key plus one) */set_pad(pad), run_frame();}int vx, vy, vw, vh;diff --git a/games/retrogo/tests/test_cores.py b/games/retrogo/tests/test_cores.pyindex 0414a74a..9d6e1531 100644--- a/games/retrogo/tests/test_cores.py+++ b/games/retrogo/tests/test_cores.py@@ -3,7 +3,8 @@behaviour sanitizers, the ROM read only like the calculator's flash):- test ROMs give the pictures they should (Blargg's cpu_instrs and instr_timing, dmg-acid2 and- cgb-acid2, nestest, zexdoc for the Master System, Cheril Perils Classic for the SG-1000), when they are in+ cgb-acid2, nestest, zexdoc for the Master System, Cheril Perils Classic for the SG-1000, Bankruptcy+ Builder for the ColecoVision), when they are inthe test ROM folder, and theMaster System's Z80 runs the CP/M instruction exercisers (prelim; zexdoc and zexall with ZEX=1)to the clock;@@ -36,10 +37,12 @@ EXPECTED = {"sega/zexall/x/zexdoc.sms": (3000, "", "e20e5a6fb45d"),# (the SG-1000: the Mojon Twins' homebrew, its title, the menu, then Cheril in the first room)"sg1000/cheril_perils_ntsc.sg": (1500, "900=2,910=0,1000=2,1010=0,1100=128,1300=129,1320=128", "fd4688405166"),+ # (the ColecoVision: Philip Klaus Krause's homebrew, keypad 1 for one player, then its first level)+ "coleco/bankruptcybuilder.col": (1500, "300=1,310=0,400=512,410=0,500=16,510=0", "390bab2011d9"),}# the CP/M exercisers and the clocks superzazu's z80 takes for themZEX = [("z80/prelim.com", 8721), ("z80/zexdoc.cim", 46734978649), ("z80/zexall.cim", 46734978649)]-SYSTEMS = (".gb", ".gbc", ".nes", ".sms", ".gg", ".sg")+SYSTEMS = (".gb", ".gbc", ".nes", ".sms", ".gg", ".sg", ".col")def run(rom, frames, seed=0, script=""):@@ -98,7 +101,7 @@ if z80 and folder:# don't crash itfor rel in ("libbet.gb", "ucity_compat.gbc", "cgb-acid2.gbc", "thwaite.nes", "croom.nes", "240pee.nes","sega/raposa/x/raposadosol_v20.sms", "sega/waternet/sms/waternet.sms", "sega/waternet/gg/waternet.gg",- "sega/tunnel/tunnel.gg"):+ "sega/tunnel/tunnel.gg", "coleco/bankruptcybuilder.col", "coleco/breakout.col"):path = os.path.join(folder, rel) if folder else ""if not os.path.exists(path):continuediff --git a/tools/romtable.py b/tools/romtable.pyindex e3de2c1c..2d9b3ef7 100644--- a/tools/romtable.py+++ b/tools/romtable.py@@ -5,7 +5,7 @@ The table (the customizer website makes the same one; games/retrogo reads it inis one read-only section, .rodata.np_roms, 4-byte aligned, global symbol np_roms:u32 magic 0x4D52504E ("NPRM"), u32 version 1, u32 count;count entries of 52 bytes: u32 offset (from the start of np_roms to the ROM's bytes), u32 size,- u8 system (1 Game Boy, 2 Game Boy Color, 3 NES, 4 Master System, 5 Game Gear), u8 reserved[3]+ u8 system (1 Game Boy, 2 Game Boy Color, 3 NES, 4 Master System, 5 Game Gear, 6 SG-1000, 7 ColecoVision), u8 reserved[3](zero), char name[40] (UTF-8, zero-padded);then the ROMs' bytes, each starting 4-byte aligned.All numbers are little-endian. To be the same byte for byte as the website's for the same files:@@ -13,7 +13,7 @@ All numbers are little-endian. To be the same byte for byte as the website's foreach next one at the end of the one before rounded up to a multiple of 4, zeros in between;- the table ends with the last ROM's bytes, then zeros up to a multiple of 4 (no ROMs: the 12-byteheader with count 0);-- the system comes from the file's extension, in any case: .gb 1, .gbc 2, .nes 3, .sms 4, .gg 5, .sg 6;+- the system comes from the file's extension, in any case: .gb 1, .gbc 2, .nes 3, .sms 4, .gg 5, .sg 6, .col 7;- the name is the file's name without its last extension, its UTF-8 bytes cut to the longeststart of at most 40 bytes that ends on a whole letter, zero-padded to 40 (no ending zero when ittakes all 40).@@ -29,7 +29,7 @@ import structimport sysMAGIC, VERSION, ENTRY, NAME = 0x4D52504E, 1, 52, 40-SYSTEMS = {".gb": 1, ".gbc": 2, ".nes": 3, ".sms": 4, ".gg": 5, ".sg": 6}+SYSTEMS = {".gb": 1, ".gbc": 2, ".nes": 3, ".sms": 4, ".gg": 5, ".sg": 6, ".col": 7}def entry_name(path):@@ -45,7 +45,7 @@ def table(paths):for p in paths:ext = os.path.splitext(p)[1].lower()if ext not in SYSTEMS:- sys.exit(f"romtable: {p}: not a .gb, .gbc, .nes, .sms, .gg or .sg file")+ sys.exit(f"romtable: {p}: not a .gb, .gbc, .nes, .sms, .gg, .sg or .col file")roms.append((open(p, "rb").read(), SYSTEMS[ext], entry_name(p)))out = bytearray(struct.pack("<III", MAGIC, VERSION, len(roms)))out += bytes(ENTRY * len(roms))