X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mappers%2F227.c;h=457e79e2379580e771a21374b21c16ef012c1091;hb=eec2623f6183dd0f9494b99065a16bf90f2a1ccf;hp=a006ce3cafa1065dd363b1df18264da7001d7ca1;hpb=c62d28102c77e19c291c78bf6bf7f0a81abd54b9;p=fceu.git diff --git a/mappers/227.c b/mappers/227.c index a006ce3..457e79e 100644 --- a/mappers/227.c +++ b/mappers/227.c @@ -1,7 +1,7 @@ /* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: - * Copyright (C) 2002 Ben Parnell + * Copyright (C) 2002 Xodnizel * * 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 @@ -30,11 +30,11 @@ static void DoSync(uint32 A) rg[1]=A>>8; MIRROR_SET((A>>1)&1); - if(A&1) //32 KB + if(A&1) //32 KB { ROM_BANK32(p); } - else //16 KB + else //16 KB { ROM_BANK16(0x8000,(p<<1)|((A&4)>>2)); ROM_BANK16(0xc000,(p<<1)|((A&4)>>2)); @@ -72,7 +72,7 @@ static void M227Restore(int version) void Mapper227_init(void) { - SetWriteHandler(0x8000,0xffff,Mapper227_write); + SetWriteHandler(0x6000,0xffff,Mapper227_write); MapperReset=M227Reset; GameStateRestore=M227Restore; M227Reset();