X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=boards%2F222.c;h=a1da1393947179330093d42903491e9121faae43;hp=e2307517a35b3e4889c5ce4f4606d41ba0936ac2;hb=43725da7349c85fa13e828fdbf20cc7ac8d298d6;hpb=386f5371eb984fb9c2860c83e740890a75cd45c1 diff --git a/boards/222.c b/boards/222.c index e230751..a1da139 100644 --- a/boards/222.c +++ b/boards/222.c @@ -15,13 +15,15 @@ * * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * * (VRC4 mapper) + * */ #include "mapinc.h" -static uint8 IRQCount; +static uint8 IRQCount;//, IRQPre; static uint8 IRQa; static uint8 prg_reg[2]; static uint8 chr_reg[8]; @@ -52,12 +54,12 @@ static void M222IRQ(void) static void Sync(void) { - int i; setprg8(0x8000,prg_reg[0]); setprg8(0xA000,prg_reg[1]); + int i; for(i=0; i<8; i++) - setchr1(i<<10,chr_reg[i]); - setmirror(mirr^1); + setchr1(i<<10,chr_reg[i]); + setmirror(mirr^1); } static DECLFW(M222Write)