map094.c
1 /* 2 ** Nofrendo (c) 1998-2000 Matthew Conte (matt@conte.com) 3 ** 4 ** 5 ** This program is free software; you can redistribute it and/or 6 ** modify it under the terms of version 2 of the GNU Library General 7 ** Public License as published by the Free Software Foundation. 8 ** 9 ** This program is distributed in the hope that it will be useful, 10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 ** Library General Public License for more details. To obtain a 13 ** copy of the GNU Library General Public License, write to the Free 14 ** Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 15 ** 16 ** Any permitted reproduction of these routines, in whole or in part, 17 ** must bear this legend. 18 ** 19 ** 20 ** map94.c 21 ** 22 ** mapper 94 interface 23 ** $Id: map094.c,v 1.2 2001/04/27 14:37:11 neil Exp $ 24 */ 25 26 #include "noftypes.h" 27 #include "nes_mmc.h" 28 29 /* mapper 94: Senjou no Ookami */ 30 static void map94_write(uint32 address, uint8 value) 31 { 32 UNUSED(address); 33 34 /* ($8000-$FFFF) D7-D2 = switch $8000-$BFFF */ 35 mmc_bankrom(16, 0x8000, value >> 2); 36 } 37 38 static const map_memwrite map94_memwrite[] = 39 { 40 { 0x8000, 0xFFFF, map94_write }, 41 { -1, -1, NULL } 42 }; 43 44 const mapintf_t map94_intf = 45 { 46 94, /* mapper number */ 47 "Mapper 94", /* mapper name */ 48 NULL, /* init routine */ 49 NULL, /* vblank callback */ 50 NULL, /* hblank callback */ 51 NULL, /* get state (snss) */ 52 NULL, /* set state (snss) */ 53 NULL, /* memory read structure */ 54 map94_memwrite, /* memory write structure */ 55 NULL /* external sound device */ 56 }; 57 58 /* 59 ** $Log: map094.c,v $ 60 ** Revision 1.2 2001/04/27 14:37:11 neil 61 ** wheeee 62 ** 63 ** Revision 1.1 2001/04/27 12:54:40 neil 64 ** blah 65 ** 66 ** Revision 1.1.1.1 2001/04/27 07:03:54 neil 67 ** initial 68 ** 69 ** Revision 1.1 2000/10/24 12:19:33 matt 70 ** changed directory structure 71 ** 72 ** Revision 1.5 2000/10/22 19:17:47 matt 73 ** mapper cleanups galore 74 ** 75 ** Revision 1.4 2000/10/21 19:33:38 matt 76 ** many more cleanups 77 ** 78 ** Revision 1.3 2000/08/16 02:50:11 matt 79 ** random mapper cleanups 80 ** 81 ** Revision 1.2 2000/07/06 02:48:43 matt 82 ** clearly labelled structure members 83 ** 84 ** Revision 1.1 2000/07/06 01:01:56 matt 85 ** initial revision 86 ** 87 */