X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=mappers%2F69.c;h=5d152433df5a49c6b87d422e5b6848d348fd615c;hp=948c30444a09a988cb496a851effeb4fbcac2f1c;hb=386f5371eb984fb9c2860c83e740890a75cd45c1;hpb=eec2623f6183dd0f9494b99065a16bf90f2a1ccf diff --git a/mappers/69.c b/mappers/69.c index 948c304..5d15243 100644 --- a/mappers/69.c +++ b/mappers/69.c @@ -15,15 +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., 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" static void AYSound(int Count); -//static void AYSoundHQ(void); +static void AYSoundHQ(void); static void DoAYSQ(int x); -//static void DoAYSQHQ(int x); +static void DoAYSQHQ(int x); #define sunselect mapbyte1[0] #define sungah mapbyte1[1] @@ -39,7 +39,7 @@ static DECLFR(SUN5AWRAM) { if((sungah&0xC0)==0x40) return X.DB; - return CartBR(A); + return CartBROB(A); } static DECLFW(Mapper69_SWL) @@ -51,22 +51,22 @@ static DECLFW(Mapper69_SWH) { int x; GameExpSound.Fill=AYSound; - GameExpSound.HiFill=0;//AYSoundHQ; - if(FSettings.SndRate); + GameExpSound.HiFill=AYSoundHQ; + if(FSettings.SndRate) switch(sunindex) { case 0: case 1: - case 8:/*if(FSettings.soundq>=1) DoAYSQHQ(0); else*/ DoAYSQ(0);break; + case 8:if(FSettings.soundq>=1) DoAYSQHQ(0); else DoAYSQ(0);break; case 2: case 3: - case 9:/*if(FSettings.soundq>=1) DoAYSQHQ(1); else*/ DoAYSQ(1);break; + case 9:if(FSettings.soundq>=1) DoAYSQHQ(1); else DoAYSQ(1);break; case 4: case 5: - case 10:/*if(FSettings.soundq>=1) DoAYSQHQ(2); else*/ DoAYSQ(2);break; + case 10:if(FSettings.soundq>=1) DoAYSQHQ(2); else DoAYSQ(2);break; case 7: for(x=0;x<2;x++) - /*if(FSettings.soundq>=1) DoAYSQHQ(x); else*/ DoAYSQ(x); + if(FSettings.soundq>=1) DoAYSQHQ(x); else DoAYSQ(x); break; } MapperExRAM[sunindex]=V; @@ -133,7 +133,6 @@ static void DoAYSQ(int x) CAYBC[x]=end; if(amp) - if(!(MapperExRAM[0x7]&(1<