merge mapper code from FCEUX
[fceu.git] / mappers / 33.c
index f3362c0..1324663 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"
@@ -37,6 +37,7 @@ static DECLFW(Mapper33_write)
          case 0x8001:ROM_BANK8(0xA000,V); break;
          case 0x8002:VROM_BANK2(0x0000,V);break;
          case 0x8003:VROM_BANK2(0x0800,V);break;
+         case 0xe000:MIRROR_SET((V>>6)&1);break;
         }
 }
 
@@ -73,7 +74,7 @@ void Mapper33_init(void)
 
 void Mapper48_init(void)
 {
-        SetWriteHandler(0x8000,0xffff,Mapper33_write);
+        SetWriteHandler(0x8000,0xbfff,Mapper33_write);
         SetWriteHandler(0xc000,0xffff,Mapper48_HiWrite);
         GameHBIRQHook=heho;
         is48=1;