notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
undocumented opcodes added to ncpu
[fceu.git]
/
boards
/
novel.c
diff --git
a/boards/novel.c
b/boards/novel.c
index
7d620db
..
26e70ec
100644
(file)
--- a/
boards/novel.c
+++ b/
boards/novel.c
@@
-1,7
+1,7
@@
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
- * Copyright (C) 2002
Ben Parnel
l
+ * Copyright (C) 2002
Xodnize
l
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-20,16
+20,18
@@
#include "mapinc.h"
#include "mapinc.h"
+static uint8 latch;
+
static void DoNovel(void)
{
static void DoNovel(void)
{
-
setprg32(0x8000,GameMemBlock[0]
&3);
-
setchr8(GameMemBlock[0]
&7);
+
setprg32(0x8000,latch
&3);
+
setchr8(latch
&7);
}
static DECLFW(NovelWrite)
{
}
static DECLFW(NovelWrite)
{
-
GameMemBlock[0]
=A&0xFF;
- DoNovel();
+
latch
=A&0xFF;
+
DoNovel();
}
static void NovelReset(void)
}
static void NovelReset(void)
@@
-42,12
+44,12
@@
static void NovelReset(void)
static void NovelRestore(int version)
{
static void NovelRestore(int version)
{
- DoNovel();
+
DoNovel();
}
}
-void Novel_Init(
void
)
+void Novel_Init(
CartInfo *info
)
{
{
- AddExState(&
GameMemBlock[0]
, 1, 0,"L1");
-
Board
Power=NovelReset;
+ AddExState(&
latch
, 1, 0,"L1");
+
info->
Power=NovelReset;
GameStateRestore=NovelRestore;
}
GameStateRestore=NovelRestore;
}