From e86662c64047dfc1b8eb4ce17c08afee4e0e20d9 Mon Sep 17 00:00:00 2001 From: PsyK0p4T <87064902+PsyK0p4T@users.noreply.github.com> Date: Mon, 19 Jun 2023 15:05:32 +0200 Subject: [PATCH] Update PCE.ino MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add compatibility for "CD-ROM² Super System Card (v3.0)(Japan)" and "Arcade Card Pro CD-ROM²" carts. --- Cart_Reader/PCE.ino | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cart_Reader/PCE.ino b/Cart_Reader/PCE.ino index c1dee7f..5f8dc62 100644 --- a/Cart_Reader/PCE.ino +++ b/Cart_Reader/PCE.ino @@ -411,6 +411,12 @@ uint32_t detect_rom_size_PCE(void) { rom_size = 512; } } + if (rom_size == 384) { + //"CD-ROM² Super System Card (v3.0)(Japan)" or "Arcade Card Pro CD-ROM²" + if (read_byte_PCE(0x29D1) == 'V' && read_byte_PCE(0x29D2) == 'E' && read_byte_PCE(0x29D3) == 'R' && read_byte_PCE(0x29D4) == '.' && read_byte_PCE(0x29D5) == ' ' && read_byte_PCE(0x29D6) == '3' && read_byte_PCE(0x29D7) == '.' && read_byte_PCE(0x29D8) == '0' && read_byte_PCE(0x29D9) == '0') { + rom_size = 256; + } + } return rom_size; }