Skip to content

Commit

Permalink
[NES] Experimental workaround for PSRAM issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
OtherCrashOverride committed Jul 2, 2018
1 parent d6010cd commit 57dcabe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions nesemu-go/components/nofrendo/mappers/map004.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
**
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of version 2 of the GNU Library General
** modify it under the terms of version 2 of the GNU Library General
** Public License as published by the Free Software Foundation.
**
** This program is distributed in the hope that it will be useful,
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Library General Public License for more details. To obtain a
** copy of the GNU Library General Public License, write to the Free
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Library General Public License for more details. To obtain a
** copy of the GNU Library General Public License, write to the Free
** Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**
** Any permitted reproduction of these routines, in whole or in part,
Expand Down Expand Up @@ -46,7 +46,7 @@ static void map4_write(uint32 address, uint8 value)
case 0x8000:
command = value;
vrombase = (command & 0x80) ? 0x1000 : 0x0000;

if (reg != (value & 0x40))
{
if (value & 0x40)
Expand Down Expand Up @@ -138,6 +138,11 @@ static void map4_write(uint32 address, uint8 value)
break;

default:
//printf("map004: unhandled write: address=%p, value=0x%x\n", (void*)address, value);
__asm__("nop");
__asm__("nop");
__asm__("nop");
__asm__("nop");
break;
}

Expand Down
2 changes: 1 addition & 1 deletion nesemu-go/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ CONFIG_SPIRAM_TYPE_ESPPSRAM32=y
CONFIG_SPIRAM_SIZE=4194304
CONFIG_SPIRAM_SPEED_40M=y
CONFIG_SPIRAM_MEMTEST=
CONFIG_SPIRAM_CACHE_WORKAROUND=y
CONFIG_SPIRAM_CACHE_WORKAROUND=
CONFIG_MEMMAP_TRACEMEM=
CONFIG_MEMMAP_TRACEMEM_TWOBANKS=
CONFIG_ESP32_TRAX=
Expand Down

0 comments on commit 57dcabe

Please sign in to comment.