notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perfect vsync, bugfixes
[fceu.git]
/
boards
/
malee.c
diff --git
a/boards/malee.c
b/boards/malee.c
index
f575159
..
7feb95e
100644
(file)
--- a/
boards/malee.c
+++ b/
boards/malee.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,26
+20,22
@@
#include "mapinc.h"
#include "mapinc.h"
-DECLFW(MWrite)
-{
- (GameMemBlock-0x7000)[A]=V;
-}
+static uint8 WRAM[2048];
static void MALEEReset(void)
{
setprg2r(0x10,0x7000,0);
SetReadHandler(0x8000,0xFFFF,CartBR);
static void MALEEReset(void)
{
setprg2r(0x10,0x7000,0);
SetReadHandler(0x8000,0xFFFF,CartBR);
- SetReadHandler(0x6000,0x67
ff
,CartBR);
+ SetReadHandler(0x6000,0x67
FF
,CartBR);
SetReadHandler(0x7000,0x77FF,CartBR);
SetReadHandler(0x7000,0x77FF,CartBR);
- SetWriteHandler(0x7000,0x77FF,MWrite);
setprg2r(1,0x6000,0);
setprg32(0x8000,0);
setchr8(0);
}
setprg2r(1,0x6000,0);
setprg32(0x8000,0);
setchr8(0);
}
-void MALEE_Init(
void
)
+void MALEE_Init(
CartInfo *info
)
{
{
-
AddExState(GameMemBlock, 2048, 0,"RAM")
;
- SetupCartPRGMapping(0x10,
GameMemBlock,2048,
1);
-
BoardPower=MALEEReset
;
+
info->Power=MALEEReset
;
+ SetupCartPRGMapping(0x10,
WRAM, 2048,
1);
+
AddExState(WRAM, 2048, 0,"RAM")
;
}
}