Skip to content

Commit

Permalink
Merge branch 'ekeeke:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ds22x committed Feb 28, 2024
2 parents b38cdca + 302fe82 commit dc4d9ab
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Genesis Plus GX 1.7.5 (xx/xx/xxxx) (Eke-Eke)
* added emulation of Micro Machines USA on-board TMSS bypass logic hardware
* added SRAM support for games larger than 8MB
* improved console region auto-detection for a few PAL-only games (The Smurfs Travel the World & Williams Arcade's Greatest Hits)
* improved invalid SRAM header info detection (fixes crashes with some unlicensed hacks/translations)
* improved I2C EEPROM boards emulation accuracy
* improved SVP memory handlers accuracy (fixes Virtua Racing debug mode)
* improved accuracy of 68k access to Z80 bus delays
Expand Down
Binary file modified builds/genesis_plus_gx_libretro.dll
Binary file not shown.
Binary file modified builds/genplus_cube.dol
Binary file not shown.
Binary file modified builds/genplus_wii.dol
Binary file not shown.
15 changes: 12 additions & 3 deletions core/cart_hw/sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Genesis Plus
* Backup RAM support
*
* Copyright (C) 2007-2021 Eke-Eke (Genesis Plus GX)
* Copyright (C) 2007-2024 Eke-Eke (Genesis Plus GX)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
Expand Down Expand Up @@ -99,16 +99,25 @@ void sram_init(void)
sram.end = 0x203fff;
}

/* fixe games indicating internal RAM as volatile external RAM (Feng Kuang Tao Hua Yuan) */
/* fixes games indicating internal RAM as volatile external RAM (Feng Kuang Tao Hua Yuan) */
else if (sram.start == 0xff0000)
{
/* backup RAM should be disabled */
sram.on = 0;
}

/* fixe other bad header informations */
/* fixes games with invalid SRAM start address */
else if (sram.start >= 0x800000)
{
/* forces 64KB static RAM mapped to $200000-$20ffff (default) */
sram.start = 0x200000;
sram.end = 0x20ffff;
}

/* fixes games with invalid SRAM end address */
else if ((sram.start > sram.end) || ((sram.end - sram.start) >= 0x10000))
{
/* forces 64KB static RAM max */
sram.end = sram.start + 0xffff;
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/cart_hw/sram.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Genesis Plus
* Backup RAM support
*
* Copyright (C) 2007-2021 Eke-Eke (Genesis Plus GX)
* Copyright (C) 2007-2024 Eke-Eke (Genesis Plus GX)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
Expand Down

0 comments on commit dc4d9ab

Please sign in to comment.