notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge mapper code from FCEUX
[fceu.git]
/
boards
/
dream.c
diff --git
a/boards/dream.c
b/boards/dream.c
index
16214f7
..
d2a9cb8
100644
(file)
--- a/
boards/dream.c
+++ b/
boards/dream.c
@@
-15,42
+15,42
@@
*
\r
* You should have received a copy of the GNU General Public License
\r
* along with this program; if not, write to the Free Software
\r
*
\r
* You should have received a copy of the GNU General Public License
\r
* along with this program; if not, write to the Free Software
\r
- * Foundation, Inc., 5
9 Temple Place, Suite 330, Boston, MA 02111-1307
USA
\r
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
\r
*/
\r
\r
#include "mapinc.h"
\r
\r
*/
\r
\r
#include "mapinc.h"
\r
\r
-static uint8 latch;
\r
+static uint8 latch
e
;
\r
\r
\r
-static void
DoPRG
(void)
\r
+static void
Sync
(void)
\r
{
\r
{
\r
- setprg16(0x8000,latch);
\r
+ setprg16(0x8000,latch
e
);
\r
setprg16(0xC000,8);
\r
}
\r
\r
static DECLFW(DREAMWrite)
\r
{
\r
setprg16(0xC000,8);
\r
}
\r
\r
static DECLFW(DREAMWrite)
\r
{
\r
- latch=V&7;
\r
-
DoPRG
();
\r
+ latch
e
=V&7;
\r
+
Sync
();
\r
}
\r
\r
static void DREAMPower(void)
\r
{
\r
}
\r
\r
static void DREAMPower(void)
\r
{
\r
- latch=0;
\r
+ latche=0;
\r
+ Sync();
\r
+ setchr8(0);
\r
SetReadHandler(0x8000,0xFFFF,CartBR);
\r
SetWriteHandler(0x5020,0x5020,DREAMWrite);
\r
SetReadHandler(0x8000,0xFFFF,CartBR);
\r
SetWriteHandler(0x5020,0x5020,DREAMWrite);
\r
- setchr8(0);
\r
- DoPRG();
\r
}
\r
\r
static void Restore(int version)
\r
{
\r
}
\r
\r
static void Restore(int version)
\r
{
\r
-
DoPRG
();
\r
+
Sync
();
\r
}
\r
\r
void DreamTech01_Init(CartInfo *info)
\r
{
\r
GameStateRestore=Restore;
\r
info->Power=DREAMPower;
\r
}
\r
\r
void DreamTech01_Init(CartInfo *info)
\r
{
\r
GameStateRestore=Restore;
\r
info->Power=DREAMPower;
\r
- AddExState(&latch, 1, 0, "LATCH");
\r
+ AddExState(&latch
e
, 1, 0, "LATCH");
\r
}
\r
}
\r