[Core/CD] fixed bootable cartridge (mode-1) corrupting loaded CD BIOS

This commit is contained in:
EkeEke 2016-05-03 17:19:26 +02:00
parent caaf82f2da
commit a0f161ed2d
6 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 MiB

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -76,12 +76,12 @@ typedef struct
/* Cartridge type */ /* Cartridge type */
typedef struct typedef struct
{ {
uint8 rom[MAXROMSIZE]; /* ROM area */
uint8 *base; /* ROM base (saved for OS/Cartridge ROM swap) */ uint8 *base; /* ROM base (saved for OS/Cartridge ROM swap) */
uint32 romsize; /* ROM size */ uint32 romsize; /* ROM size */
uint32 mask; /* ROM mask */ uint32 mask; /* ROM mask */
uint8 special; /* Lock-On, J-Cart or SMS 3-D glasses hardware */ uint8 special; /* custom external hardware (Lock-On, J-Cart, 3-D glasses, Terebi Oekaki,...) */
cart_hw_t hw; /* Extra mapping hardware */ cart_hw_t hw; /* cartridge internal hardware */
uint8 rom[MAXROMSIZE]; /* ROM area */
} md_cart_t; } md_cart_t;

View File

@ -2,7 +2,7 @@
* Genesis Plus * Genesis Plus
* CD compatible ROM/RAM cartridge support * CD compatible ROM/RAM cartridge support
* *
* Copyright (C) 2012-2015 Eke-Eke (Genesis Plus GX) * Copyright (C) 2012-2016 Eke-Eke (Genesis Plus GX)
* *
* Redistribution and use of this code or any derivative works are permitted * Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met: * provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
* Genesis Plus * Genesis Plus
* CD compatible ROM/RAM cartridge support * CD compatible ROM/RAM cartridge support
* *
* Copyright (C) 2012-2015 Eke-Eke (Genesis Plus GX) * Copyright (C) 2012-2016 Eke-Eke (Genesis Plus GX)
* *
* Redistribution and use of this code or any derivative works are permitted * Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met: * provided that the following conditions are met:
@ -40,7 +40,7 @@
/* CD compatible ROM/RAM cartridge */ /* CD compatible ROM/RAM cartridge */
typedef struct typedef struct
{ {
uint8 area[0x840000]; /* cartridge ROM/RAM area (max. 8MB ROM / 64KB backup memory + Pro Action Replay 128KB ROM / 64KB RAM) */ uint8 area[0x840080]; /* cartridge ROM/RAM area (max. 8MB ROM + 64KB backup memory + Pro Action Replay 128KB ROM / 64KB RAM + cartridge infos) */
uint8 boot; /* cartridge boot mode (0x00: boot from CD with ROM/RAM cartridge enabled, 0x40: boot from ROM cartridge with CD enabled) */ uint8 boot; /* cartridge boot mode (0x00: boot from CD with ROM/RAM cartridge enabled, 0x40: boot from ROM cartridge with CD enabled) */
uint8 id; /* RAM cartridge ID (related to RAM size, 0 if disabled) */ uint8 id; /* RAM cartridge ID (related to RAM size, 0 if disabled) */
uint8 prot; /* RAM cartridge write protection */ uint8 prot; /* RAM cartridge write protection */