From ac9e53c2522890ddbb7c3c0257f8b10590ccf330 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Fri, 4 Feb 2005 22:33:11 +0000 Subject: [PATCH] Lets have a common file with all the global variables defined in it for sanity --- zsnes/src/glbvars.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 zsnes/src/glbvars.h diff --git a/zsnes/src/glbvars.h b/zsnes/src/glbvars.h new file mode 100644 index 00000000..f9dbf870 --- /dev/null +++ b/zsnes/src/glbvars.h @@ -0,0 +1,41 @@ +/* +Copyright (C) 1997-2005 ZSNES Team ( zsKnight, _Demo_, pagefault, Nach ) + +http://www.zsnes.com +http://sourceforge.net/projects/zsnes + +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 the Free Software Foundation; either +version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +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., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +extern unsigned int cycpbl, PH65816regsize; +extern unsigned int *wramdata, *vram, PHspcsave, PHdspsave, *C4Ram, *sfxramdata; +extern unsigned int PHnum2writesa1reg, SA1Mode, prevedi, SA1xpc, sa1dmaptr; +extern unsigned int soundcycleft, spc700read, timer2upd, xa, PHnum2writesfxreg; +extern unsigned int spcnumread, spchalted, opcd, HIRQCycNext, oamaddr; +extern unsigned int SfxR0, ReadHead, *setaramdata, ramsize, *sram; +extern unsigned int tempesi, tempedi, tempedx, tempebp; +extern unsigned int SPCMultA, PHnum2writespc7110reg; +extern unsigned char sndrot, spcRam[65472]; +extern unsigned char DSPMem[256], SA1Status, *SA1RAMArea, DSP1Type, DSP1COp; +extern unsigned char prevoamptr, BRRBuffer[32], *romdata, curcyc; +extern unsigned char vidmemch4[4096], vidmemch8[4096], vidmemch2[4096]; + +extern bool C4Enable, SFXEnable, SA1Enable, SPC7110Enable, SETAEnable, spcon, SRAMState; + +extern short C4WFXVal, C41FXVal, Op00Multiplicand, Op04Angle, Op08X, Op18X; +extern short Op28X, Op0CA, Op02FX, Op0AVS, Op06X, Op01m, Op0DX, Op03F, Op14Zr; +extern short Op0EH; +extern signed short Op10Coefficient;