merge mapper code from FCEUX
[fceu.git] / boards / deirom.c
index 7a1ed43..2d28bd0 100644 (file)
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 #include "mapinc.h"
@@ -32,9 +32,9 @@ static SFORMAT DEI_StateRegs[]=
 
 static void Sync(void)
 {
+  int x;
   setchr2(0x0000,DRegs[0]);
   setchr2(0x0800,DRegs[1]);
-  int x;
   for(x=0;x<4;x++)
      setchr1(0x1000+(x<<10),DRegs[2+x]);
   setprg8(0x8000,DRegs[6]);