debian/0000755000000000000000000000000012176527003007171 5ustar debian/rules0000755000000000000000000000424612172172566010265 0ustar #!/usr/bin/make -f # debian/rules for zsnes # 2001-2005 Aaron Lehmann # 2006 Joshua Kwan # 2007 Josh Triplett # 2010 Michael Leuchtenburg # 2010 Etienne Millon # # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v CFLAGS += $(CPPFLAGS) CXXFLAGS += $(CPPFLAGS) export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -lpthread %: dh $@ --sourcedirectory=src --with autoreconf override_dh_auto_configure: dh_auto_configure --sourcedirectory=src -- \ --enable-opengl \ --disable-cpucheck --enable-release \ force_arch=i486 override_dh_clean: rm -f src/Makefile src/cfg.h src/config.h src/config.log src/config.status src/input.h src/makefile.dep src/md.h src/parsegen src/tools/depbuild src/zsnes find src/ -type f -name '*.o' -delete dh_clean override_dh_install: dh_install for res in 16 32 48 64; do \ mkdir -p debian/zsnes/usr/share/icons/hicolor/$${res}x$${res}/apps; \ cp -f src/icons/$${res}x$${res}x32.png \ debian/zsnes/usr/share/icons/hicolor/$${res}x$${res}/apps/zsnes.png; \ done override_dh_installchangelogs: dh_installchangelogs docs/readme.txt/history.txt override_dh_installexamples: mkdir -p debian/zsnes/usr/share/doc/zsnes/examples/source uudecode -o debian/zsnes/usr/share/doc/zsnes/examples/debian.smc.gz \ debian/examples/debian.smc.gz.uu uudecode -o debian/zsnes/usr/share/doc/zsnes/examples/source/deb.set \ debian/examples/source/deb.set.uu uudecode -o debian/zsnes/usr/share/doc/zsnes/examples/source/deb.map \ debian/examples/source/deb.map.uu uudecode -o debian/zsnes/usr/share/doc/zsnes/examples/source/col.map \ debian/examples/source/deb.col.uu cp -f debian/examples/source/debian.asm \ debian/zsnes/usr/share/doc/zsnes/examples/source/ cp -f debian/examples/README \ debian/zsnes/usr/share/doc/zsnes/examples/ override_dh_installdocs: dh_installdocs # Install HTML documentation install -d debian/zsnes/usr/share/doc/zsnes cp -a docs/readme.htm debian/zsnes/usr/share/doc/zsnes/html rm debian/zsnes/usr/share/doc/zsnes/html/license.htm override_dh_compress: dh_compress -Xdeb.set debian/autoreconf0000644000000000000000000000000411617470177011263 0ustar src debian/source/0000755000000000000000000000000011477735466010512 5ustar debian/source/format0000644000000000000000000000001411477735466011720 0ustar 3.0 (quilt) debian/zsnes.desktop0000644000000000000000000000040712172462502011725 0ustar [Desktop Entry] Name=ZSNES Comment=Super Nintendo Entertainment System (TM) emulator Exec=zsnes %f Icon=zsnes Terminal=false Type=Application Categories=Game;Emulator; MimeType=application/x-snes-rom; Keywords=emulator;snes;nintendo;super nintendo;super famicom; debian/menu0000644000000000000000000000023011477735466010074 0ustar ?package(zsnes): \ needs="X11" \ section="Applications/Emulators" \ title="ZSNES" \ command="/usr/bin/zsnes" \ icon="/usr/share/pixmaps/zsnes.xpm" debian/zsnes.xpm0000644000000000000000000001343011477735466011103 0ustar /* XPM */ static char *zsnes[] = { /* columns rows colors chars-per-pixel */ "32 32 227 2", " c #000000", ". c #050409", "X c #090705", "o c #08070B", "O c #0A0905", "+ c #0A0A0B", "@ c #030511", "# c #030518", "$ c #06091B", "% c #001500", "& c #001C00", "* c #140203", "= c #1A1508", "- c #121212", "; c #1C1613", ": c #1B1B1B", "> c #050E2D", ", c #060E35", "< c #061233", "1 c #06103F", "2 c #11183C", "3 c #002400", "4 c #072608", "5 c #003900", "6 c #03292D", "7 c #20080D", "8 c #201509", "9 c #201B14", "0 c #33080B", "q c #3D090F", "w c #3A1014", "e c #330F24", "r c #262008", "t c #2B2412", "y c #2A2319", "u c #232323", "i c #2C2C2C", "p c #333333", "a c #3A3A3A", "s c #0A1741", "d c #061857", "f c #162D58", "g c #18265E", "h c #162D61", "j c #123A79", "k c #2B3A64", "l c #004500", "z c #005200", "x c #284A28", "c c #430B0E", "v c #53050D", "b c #5A0810", "n c #431835", "m c #453B14", "M c #42362C", "N c #483E24", "B c #720F17", "V c #75242B", "C c #594D26", "Z c #5F5222", "A c #6B5722", "S c #73642C", "D c #796422", "F c #7B6A2C", "G c #434343", "H c #4B4B4B", "J c #405740", "K c #545454", "L c #5A5A5A", "P c #646464", "I c #6B6B6B", "U c #747474", "Y c #7E7E7E", "T c #0B2786", "R c #0D2689", "E c #1B2B90", "W c #1D3188", "Q c #1C3C8F", "! c #1A3F90", "~ c #113ED8", "^ c #2A50AD", "/ c #315ABD", "( c #23629D", ") c #3466BF", "_ c #1240C9", "` c #1849C1", "' c #1B49DF", "] c #0F45F1", "[ c #154CEF", "{ c #1154FE", "} c #1F6DDA", "| c #1B62FF", " . c #1A6CFF", ".. c #1D75FF", "X. c #1D7EFF", "o. c #2E7FD5", "O. c #2065EF", "+. c #008400", "@. c #008F00", "#. c #00A500", "$. c #00AC00", "%. c #00B700", "&. c #00BE00", "*. c #10B600", "=. c #20A620", "-. c #2FBB2E", ";. c #07C600", ":. c #01CF00", ">. c #00D700", ",. c #04DB00", "<. c #0DDB00", "1. c #10CE00", "2. c #03E300", "3. c #06E800", "4. c #0AED00", "5. c #0DF400", "6. c #10F600", "7. c #1BFD00", "8. c #20ED00", "9. c #21FF00", "0. c #2AFF00", "q. c #57BF53", "w. c #68B968", "e. c #4BD646", "r. c #1E86FF", "t. c #2085FF", "y. c #288FF4", "u. c #2493FF", "i. c #259BFF", "p. c #3093F1", "a. c #25A1FF", "s. c #24ACFF", "d. c #29B0FF", "f. c #2DB9FF", "g. c #3BB2EA", "h. c #2FD5FE", "j. c #30C7FF", "k. c #37CBFF", "l. c #39C5FF", "z. c #30D5FF", "x. c #36DBFF", "c. c #3DD8FF", "v. c #3BECFF", "b. c #3AF8FF", "n. c #40ADF7", "m. c #900B16", "M. c #96101F", "N. c #8B1728", "B. c #912131", "V. c #962F3F", "C. c #AF0D1B", "Z. c #B30D1F", "A. c #A2152E", "S. c #A91C2B", "D. c #AC2737", "F. c #983840", "G. c #B33E4B", "H. c #85722C", "J. c #89702C", "K. c #9D404F", "L. c #A04753", "P. c #A14956", "I. c #A55460", "U. c #C20F22", "Y. c #D20C22", "T. c #DB0C23", "R. c #D11025", "E. c #D6172B", "W. c #DD122B", "Q. c #D41A34", "!. c #E60C25", "~. c #E3122B", "^. c #E41B3A", "/. c #F40D28", "(. c #FD0E2C", "). c #FF0F33", "_. c #FE102E", "`. c #FE1033", "'. c #FE133A", "]. c #F9183E", "[. c #D63148", "{. c #FF1540", "}. c #B57780", "|. c #AB8D2C", " X c #B1932C", ".X c #BB9E2C", "XX c #CEA92C", "oX c #D4AD2C", "OX c #D6B22B", "+X c #D8B32C", "@X c #E0BD2C", "#X c #EABE2C", "$X c #EDC92C", "%X c #F1C72C", "&X c #F4CC2C", "*X c #FACE2C", "=X c #FAD02C", "-X c #838383", ";X c #8D8D8D", ":X c #9B8A8C", ">X c #939393", ",X c #9A9A9A", "X", "fXfXI.I.I.P.N.fX>XH G K 2XK G ;XG a uXfX;XK G L fXfXK K L Y fX>X", "fXfXfXfXfX}.I.fX: U fXdX6XK H fXaXH U 5XG dXfXH ;X-XH fXfX5XfX;X", "fXfXfXfX}.I.rXfX: u H ;XdXK K dXdXL L U : H H u P -Xu K Y dXfX>X", "fXfXfX1XK.8XfXfX6XI a - U K K dXdXL L I L dXdXdXdXdXY L i i dX>X", "fXfX1XP.eXfXfXfX3XfXfXa U K L dXdXL L 5Xi 6XsXuX5X5XsXsXU i dX>X", "fXfXB.V.I.I.I.fXU H G K dXK K sXdXL L sXY H G G >X>XL G H ;XsX>X", "fXfXfXfXfXfXfXfXfXfXfXfXsXsXsXsXsXsXsXsXsXsXsXsXsXsXsXsXsXsXsX>X", "0XfXfXfXfXfXfXfXfXfXfXsXpX0X8X;Xa u - u H 2X9X0XaXsXsXaXsXsXaX>X", "fX0X9XfXfXfXfXfXfXfXsXtX6XU k ^ ) / W @ + a -X9XtXaXsXaXsXsX>X", "fXfXfXfXfXfXfXfXdXaXtX5Xp g g.c.x.l.p.! $ X K 9XtXaXaXaXaX>X", "2XfX2XfX,XfXfXsXsXtX6Xp h g.b.v.x.k.f.y.! @ . L 9XtXaXaXaX>X", "fXfXfXfXdXsXsXaXuX9Xa ( h.h.j.f.d.i.u.O.> . L 0XaXaXaX>X", "sXsXsXaXaXaXpXaX0XU 2 o.s.s.a.i.u.r.X...< * 0 q w :XtXpXpX>X", "pXaXpXaXpXpXaXpX9Xi $ h j } r.t.t... .{ < c M.Q.^.Q.D.7XpXpX>X", "pXpXpXpXpXpXpXpX>X. s ` . . .{ ' n E.'.'.'.{.{.[.rXpX>X", "pXpXpXpXpXpXpXyXJ & 3 & & % , ~ { { ] E A.`.`.`.'.'.'.'.S.pX>X", "uXuXpXuXuXpXwXq.*.1.<.<.;.#.l & j ] ~ R e R._._._.`.`.`.`.W.pX>X", "uXpXuXpXuXuXe.8.0.9.7.7.5.4.:.+.6 d 1 # * v Z.~.(.(.(._.).~.uX>X", "uXuXK K uXuX4.7.7.5.5.4.3.2.>.%.5 * v Y./.(.(.(.U.uX>X", "uXK K uXuX-.,.3.3.,.,.>.:.&.+.& . + + + o b Y././.T.V.uX>X", "K K tXuXuXqXw.=.#.$.$.#.@.z 4 t C F H.H.S m 9 7 Z.!.Y.G.eX>XgX", " . tXtXuXtXtXtXXgX", "tXtXtXtXtXtXtXyX6X;XX r OX*X*X=X=X=X=X=X&X|.8 ; 5X0XyX>XgX", ">XtX>X>XtXtXtXtX0X0XK = X%X*X*X*X*X*X*X#XJ.= Y 9XtX>XgXgX", "tXtXtXtXtXtXtXtXtX0X9XL X t D XoX@XOXXX|.A y U 6XtXtX>XgXgX", "tXtXtXtXtXtXtXtXtXtXtX9XL + X = t M M 9 = : Y 8X9XtX>XgXgXgX", "tXtXtXtXtXtXtXtXtXtXtXtX0X2XK ; u P 5X9XtXtX>XgXgXgXgX", ">X>X>X>X;X>X>X>X>X>X>XtXtX0X6X5X-XH p K ;X6X6X0XtXtX>XgXgXgXgXgX", "gXgXgXgXgXgXgXgXgXgXgX>X>XtXtXtXtXtXtXtXtXtXtXtX>X>XgXgXgXgXgXgX", "gXgXgXgXgXgXgXgXgXgXgXgXgX>X>X>XtXtXtXtXtX>X>X>XgXgXgXgXgXgXgXgX", "gXgXgXgXgXgXgXgXgXgXgXgXgXgXgXgX>X>X>X>X>XgXgXgXgXgXgXgXgXgXgXgX" }; debian/zsnes.install0000644000000000000000000000013111760357177011731 0ustar debian/zsnes.desktop usr/share/applications debian/zsnes.xpm usr/share/pixmaps debian/copyright0000644000000000000000000000067511760357177011147 0ustar This package was debianized by Aaron Lehmann on Sat, 28 Apr 2001 22:51:31 -0700. It was downloaded from http://www.zsnes.com Copyright (C) 1997-2007 ZSNES Team ( zsKnight, _Demo_, pagefault, Nach ) The zsnes package is released under the terms of the GNU General Public License version 2. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. debian/patches/0000755000000000000000000000000012172173525010622 5ustar debian/patches/0012-Fix-build-with-gcc-4.7.patch0000644000000000000000000000132511777771662016100 0ustar From: Etienne Millon Date: Thu, 12 Apr 2012 18:01:45 +0200 Subject: Fix build with gcc 4.7 Headers in the new C++ library do not implicitly import unistd.h, so it is necessary to do it in the source. Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667429 --- src/tools/depbuild.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/depbuild.cpp b/src/tools/depbuild.cpp index 1e4bbc5..ea0854c 100644 --- a/src/tools/depbuild.cpp +++ b/src/tools/depbuild.cpp @@ -25,6 +25,7 @@ This program generates dependencies for all C/C++/Assembly files #include #include #include +#include using namespace std; #include "fileutil.h" debian/patches/0003-gcc-4.3-ftbfs.patch0000644000000000000000000000354711777771662014414 0ustar From: Etienne Millon Date: Tue, 2 Nov 2010 17:04:53 +0100 Subject: gcc-4.3-ftbfs Miscellaneous fixes to build with gcc 4.3: - missing headers - argc should have type int, not size_t --- src/parsegen.cpp | 3 ++- src/tools/depbuild.cpp | 3 ++- src/tools/strutil.h | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/parsegen.cpp b/src/parsegen.cpp index e664dc5..9f78fb4 100644 --- a/src/parsegen.cpp +++ b/src/parsegen.cpp @@ -26,6 +26,7 @@ Config file handler creator by Nach (C) 2005-2007 #include #include #include +#include #include #include #include @@ -1822,7 +1823,7 @@ void parser_generate(istream& psr_stream, ostream& c_stream, ostream& cheader_st } } -int main(size_t argc, const char *const *const argv) +int main(int argc, const char *const *const argv) { const char *cheader_file = 0; bool compile = false; diff --git a/src/tools/depbuild.cpp b/src/tools/depbuild.cpp index 5c332c4..1e4bbc5 100644 --- a/src/tools/depbuild.cpp +++ b/src/tools/depbuild.cpp @@ -24,6 +24,7 @@ This program generates dependencies for all C/C++/Assembly files #include #include #include +#include using namespace std; #include "fileutil.h" @@ -183,7 +184,7 @@ void dependency_calculate(const char *filename, struct stat& stat_buffer) } } -int main(size_t argc, const char *const *const argv) +int main(int argc, const char *const *const argv) { if (argc < 5) { diff --git a/src/tools/strutil.h b/src/tools/strutil.h index cd32638..850f944 100644 --- a/src/tools/strutil.h +++ b/src/tools/strutil.h @@ -23,6 +23,7 @@ This is part of a toolkit used to assist in ZSNES development #define STRUTIL_H #include +#include #include #include debian/patches/0009-hat-events.patch0000644000000000000000000000363111777771662014332 0ustar From: Etienne Millon Date: Sun, 7 Aug 2011 13:05:06 +0200 Subject: hat-events Properly reset directions on joysticks. This patch was pulled from Simeon Maxein's Ubuntu PPA : https://launchpad.net/~smaxein/+archive/ppa/+packages Its original author is hakonrk from the zsnes forum : http://board.zsnes.com/phpBB3/viewtopic.php?t=12544 Ubuntu bug report : https://bugs.launchpad.net/ubuntu/+source/zsnes/+bug/519845 =================================================================== --- src/linux/sdllink.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/linux/sdllink.c b/src/linux/sdllink.c index 05c52b1..4274c9d 100644 --- a/src/linux/sdllink.c +++ b/src/linux/sdllink.c @@ -307,6 +307,8 @@ int Main_Proc(void) case SDL_HAT_UP: pressed[offset + 3] = 1; pressed[offset + 2] = 0; + pressed[offset + 1] = 0; + pressed[offset + 0] = 0; break; case SDL_HAT_RIGHTUP: pressed[offset] = 1; @@ -317,6 +319,8 @@ int Main_Proc(void) case SDL_HAT_RIGHT: pressed[offset] = 1; pressed[offset + 1] = 0; + pressed[offset + 2] = 0; + pressed[offset + 3] = 0; break; case SDL_HAT_RIGHTDOWN: pressed[offset] = 1; @@ -326,6 +330,8 @@ int Main_Proc(void) break; case SDL_HAT_DOWN: pressed[offset + 2] = 1; + pressed[offset + 0] = 0; + pressed[offset + 1] = 0; pressed[offset + 3] = 0; break; case SDL_HAT_LEFTDOWN: @@ -337,6 +343,8 @@ int Main_Proc(void) case SDL_HAT_LEFT: pressed[offset + 1] = 1; pressed[offset] = 0; + pressed[offset + 2] = 0; + pressed[offset + 3] = 0; break; case SDL_HAT_LEFTUP: pressed[offset + 1] = 1; debian/patches/0010-Fix-build-with-libpng-1.5.patch0000644000000000000000000000142311777771662016607 0ustar From: Nobuhiro Iwamatsu Date: Thu, 24 Nov 2011 16:57:40 +0900 Subject: Fix build with libpng 1.5 Fixes #649801. --- src/zip/zpng.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/zip/zpng.c b/src/zip/zpng.c index 1e95a0c..8721ac4 100644 --- a/src/zip/zpng.c +++ b/src/zip/zpng.c @@ -129,7 +129,6 @@ int Png_Dump(const char *filename, unsigned short width, unsigned short height, png_set_IHDR(png_ptr, info_ptr, width, height, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT); - info_ptr->color_type = PNG_COLOR_TYPE_RGB; //Allocate an array of scanline pointers row_pointers = (png_bytep*)malloc(height*sizeof(png_bytep)); debian/patches/0013-Fix-sound-with-libao.patch0000644000000000000000000000232312160335735016135 0ustar From: Etienne Millon Date: Tue, 1 May 2012 23:45:40 +0200 Subject: Fix sound with libao Origin: http://board.zsnes.com/phpBB3/viewtopic.php?f=2&t=10918 Applied-Upstream: https://zsnes.bountysource.com/svn/!source/5200/trunk/src/linux/audio.c Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470410 --- src/linux/audio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- a/src/linux/audio.c +++ b/src/linux/audio.c @@ -33,8 +33,8 @@ Foundation, Inc., 675 Mass Ave, Cambridg #ifdef __LIBAO__ static pthread_t audio_thread; -static pthread_mutex_t audio_mutex; -static pthread_cond_t audio_wait; +static pthread_mutex_t audio_mutex = PTHREAD_MUTEX_INITIALIZER; +static pthread_cond_t audio_wait = PTHREAD_COND_INITIALIZER; static ao_device *audio_device = 0; static volatile unsigned int samples_waiting = 0; #endif @@ -181,14 +181,6 @@ static int SoundInit_ao() { puts("pthread_create() failed."); } - else if (pthread_mutex_init(&audio_mutex, 0)) - { - puts("pthread_mutex_init() failed."); - } - else if (pthread_cond_init(&audio_wait, 0)) - { - puts("pthread_cond_init() failed."); - } InitSampleControl(); } debian/patches/0004-manpage-in-usr-share-man.patch0000644000000000000000000000153411777771662016743 0ustar From: Etienne Millon Date: Tue, 30 Nov 2010 13:19:05 +0100 Subject: manpage-in-usr-share-man Manpage should go in /usr/share/man, not /usr/man. --- src/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index 4c49a79..31a8c6e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -144,8 +144,8 @@ config.status: configure.in install: @INSTALL@ -d -m 0755 $(DESTDIR)/@prefix@/bin @INSTALL@ -m 0755 @ZSNESEXE@ $(DESTDIR)/@prefix@/bin - @INSTALL@ -d -m 0755 $(DESTDIR)/@prefix@/man/man1 - @INSTALL@ -m 0644 linux/zsnes.1 $(DESTDIR)/@prefix@/man/man1 + @INSTALL@ -d -m 0755 $(DESTDIR)/@prefix@/share/man/man1 + @INSTALL@ -m 0644 linux/zsnes.1 $(DESTDIR)/@prefix@/share/man/man1 uninstall: rm -f @prefix@/bin/$(notdir @ZSNESEXE@) @prefix@/man/man1/zsnes.1 debian/patches/0014-Initialize-driver_format.matrix-with-NULL.patch0000644000000000000000000000125412160335735022215 0ustar From: Fabian Greffrath Date: Mon, 2 Jul 2012 11:15:52 +0200 Subject: Initialize driver_format.matrix with NULL; Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679826 --- src/linux/audio.c | 2 ++ 1 file changed, 2 insertions(+) --- a/src/linux/audio.c +++ b/src/linux/audio.c @@ -166,6 +166,7 @@ static int SoundInit_ao() if (driver_id < 0) { driver_id = ao_default_driver_id(); } ao_sample_format driver_format; + memset(&driver_format, 0, sizeof(driver_format)); driver_format.bits = 16; driver_format.channels = StereoSound+1; driver_format.rate = freqtab[SoundQuality = ((SoundQuality > 6) ? 1 : SoundQuality)]; debian/patches/0006-spelling-error-separately.patch0000644000000000000000000000143711777771662017366 0ustar From: Etienne Millon Date: Tue, 30 Nov 2010 17:29:56 +0100 Subject: spelling-error-separately This patch fixes a spelling error in src/md.psr. --- src/md.psr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/md.psr b/src/md.psr index 0634b83..2f0cb57 100644 --- a/src/md.psr +++ b/src/md.psr @@ -20,7 +20,7 @@ %define PSR_HASH md_raw_file times 50 db "rawvideo.bin" @ Only for Raw Videos -md_pcm_audio times 50 db "audio.wav" @ AVI dumping always dumps audio seperatly +md_pcm_audio times 50 db "audio.wav" @ AVI dumping always dumps audio separately md_compressed_audio times 50 db "audio.mp3" @ For when selecting compressed md_logo times 50 db "" @If you want a logo, specify a logo file. It should be a series of frames 256x224x24. @ debian/patches/0007-removed-license-in-html-doc.patch0000644000000000000000000004677411777771662017463 0ustar From: Etienne Millon Date: Tue, 30 Nov 2010 19:02:39 +0100 Subject: removed-license-in-html-doc The license in HTML format is redundant with respect to the copyright information available at /usr/share/doc/zsnes/copyright. This patch prevents the installation of license.htm and replaces references to it by the former. --- docs/readme.htm/about.htm | 8 ++++---- docs/readme.htm/advanced.htm | 6 +++--- docs/readme.htm/faq.htm | 6 +++--- docs/readme.htm/games.htm | 6 +++--- docs/readme.htm/gui.htm | 8 ++++---- docs/readme.htm/history.htm | 6 +++--- docs/readme.htm/index.htm | 8 ++++---- docs/readme.htm/netplay.htm | 6 +++--- docs/readme.htm/readme.htm | 8 ++++---- docs/readme.htm/support.htm | 6 +++--- 10 files changed, 34 insertions(+), 34 deletions(-) diff --git a/docs/readme.htm/about.htm b/docs/readme.htm/about.htm index 5d8135b..9b82bf0 100644 --- a/docs/readme.htm/about.htm +++ b/docs/readme.htm/about.htm @@ -14,9 +14,9 @@ - + - + @@ -51,7 +51,7 @@
  • Credits
  • -
  • License
  • +
  • License





    • @@ -1145,7 +1145,7 @@
    • Documentation button (Win/SDL only) - Opens your default web browser and loads the ZSNES Documentation Home Page.
    • Coded By: - Main developers are listed. More information in the About page of the documentation.
    • Assistant Coders: - Assistant developers are listed. More information in the About page of the documentation.
    • -
    • Disclaimer. Please read the GNU General Public License.
    • +
    • Disclaimer. Please read the GNU General Public License.
    @@ -1214,7 +1214,7 @@ Valid CSS! -

    Copyright (C) ZSNES Team & ZSNES Documentation Team

    +

    Copyright (C) ZSNES Team & ZSNES Documentation Team

    diff --git a/docs/readme.htm/history.htm b/docs/readme.htm/history.htm index 3665ea8..2ae2841 100644 --- a/docs/readme.htm/history.htm +++ b/docs/readme.htm/history.htm @@ -16,7 +16,7 @@ - + @@ -45,7 +45,7 @@
  • Getting Support
  • History
  • About
  • -
  • License
  • +
  • License


  • -
  • License
  • +
  • License
  • @@ -171,7 +171,7 @@ Valid CSS! -

    Copyright (C) ZSNES Team & ZSNES Documentation Team

    +

    Copyright (C) ZSNES Team & ZSNES Documentation Team

    diff --git a/docs/readme.htm/netplay.htm b/docs/readme.htm/netplay.htm index fa383de..5f23bd6 100644 --- a/docs/readme.htm/netplay.htm +++ b/docs/readme.htm/netplay.htm @@ -16,7 +16,7 @@ - + @@ -54,7 +54,7 @@
  • Getting Support
  • History
  • About
  • -
  • License
  • +
  • License


    • @@ -83,7 +83,7 @@

      Disclaimer

      -

      The ZSNES Development Team, including all developers and contributors, is in no way responsible for any damage caused by the use of this software. Please read the license for more details.

      +

      The ZSNES Development Team, including all developers and contributors, is in no way responsible for any damage caused by the use of this software. Please read the license for more details.

      Due to legal issues, the ZSNES Development Team can provide you neither with ROMs nor links to them. In addition, ZSNES may not be distributed with ROM images. However, as with many cases like this, Google is your friend.

      There are still many bugs left in ZSNES, so don't expect it to run all your favorite games. If ZSNES doesn't work for you, then don't use it. Use Snes9x, SNEeSe, Super Sleuth, or bsnes instead! In fact, even if you use ZSNES, use those emulators too!

      @@ -921,7 +921,7 @@ Valid CSS! -

      Copyright (C) ZSNES Team & ZSNES Documentation Team

      +

      Copyright (C) ZSNES Team & ZSNES Documentation Team

      diff --git a/docs/readme.htm/support.htm b/docs/readme.htm/support.htm index e0d848b..cd9661d 100644 --- a/docs/readme.htm/support.htm +++ b/docs/readme.htm/support.htm @@ -16,7 +16,7 @@ - + @@ -52,7 +52,7 @@
    • History
    • About
    • -
    • License
    • +
    • License

      @@ -187,7 +187,7 @@ Valid CSS! -

      Copyright (C) ZSNES Team & ZSNES Documentation Team

      +

      Copyright (C) ZSNES Team & ZSNES Documentation Team

      debian/patches/series0000644000000000000000000000100012172172534012025 0ustar 0003-gcc-4.3-ftbfs.patch 0004-manpage-in-usr-share-man.patch 0005-hyphens-as-minus-signs-in-manpage.patch 0006-spelling-error-separately.patch 0007-removed-license-in-html-doc.patch 0008-manpage-debugger.patch 0009-hat-events.patch 0010-Fix-build-with-libpng-1.5.patch 0011-Don-t-strip-binaries-upstream.patch 0012-Fix-build-with-gcc-4.7.patch 0013-Fix-sound-with-libao.patch 0014-Initialize-driver_format.matrix-with-NULL.patch zsnes-linux-resume-freeze-fix.patch fortify-source.patch fortify-source-load.patch debian/patches/fortify-source.patch0000644000000000000000000000753712160335735014637 0ustar Subject: Fix compilation with FORTIFY_SOURCE. Origin: http://cvs.rpmfusion.org/viewvc/rpms/zsnes/devel/zsnes-1.51-FORTIFY_SOURCE.patch?root=free&view=markup Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/intrepid/+source/zsnes/+bug/250425 --- a/src/initc.c +++ b/src/initc.c @@ -1464,8 +1464,8 @@ void clearmem() clearmem2(); } -extern unsigned char BRRBuffer[32]; -extern unsigned char echoon0; +extern unsigned char BRRBuffer[]; +extern unsigned char echoon0[]; extern unsigned int PHdspsave; extern unsigned int PHdspsave2; unsigned char echobuf[90000]; @@ -1479,7 +1479,7 @@ void clearvidsound() memset(vidmemch4, 0, 4096); memset(vidmemch8, 0, 4096); memset(BRRBuffer, 0, PHdspsave); - memset(&echoon0, 0, PHdspsave2); + memset(echoon0, 0, PHdspsave2); memset(echobuf, 0, 90000); memset(spcBuffera, 0, 65536*4+4096); memset(DSPMem, 0, 256); @@ -1822,7 +1822,7 @@ unsigned int showinfogui() extern unsigned int nmiprevaddrl, nmiprevaddrh, nmirept, nmiprevline, nmistatus; extern unsigned char spcnumread, yesoutofmemory; -extern unsigned char NextLineCache, sramsavedis, sndrot, regsbackup[3019]; +extern unsigned char NextLineCache, sramsavedis, sndrot[], regsbackup[3019]; extern unsigned int Voice0Freq, Voice1Freq, Voice2Freq, Voice3Freq; extern unsigned int Voice4Freq, Voice5Freq, Voice6Freq, Voice7Freq; extern unsigned int dspPAdj; @@ -2621,7 +2621,7 @@ void powercycle(bool sramload, bool roml } sramsavedis = 0; - memcpy(&sndrot, regsbackup, 3019); + memcpy(sndrot, regsbackup, 3019); if (yesoutofmemory) { asm_call(outofmemfix); } asm_call(GUIDoReset); --- a/src/zstate.c +++ b/src/zstate.c @@ -99,15 +99,15 @@ static void copy_snes_data(unsigned char copy_func(buffer, &cycpbl, 4); copy_func(buffer, &cycpblt, 4); //SNES PPU Register status - copy_func(buffer, &sndrot, 3019); + copy_func(buffer, sndrot, 3019); } static void copy_spc_data(unsigned char **buffer, void (*copy_func)(unsigned char **, void *, size_t)) { //SPC stuff, DSP stuff copy_func(buffer, SPCRAM, PHspcsave); - copy_func(buffer, &BRRBuffer, PHdspsave); - copy_func(buffer, &DSPMem, sizeof(DSPMem)); + copy_func(buffer, BRRBuffer, PHdspsave); + copy_func(buffer, DSPMem, sizeof(DSPMem)); } static void copy_extra_data(unsigned char **buffer, void (*copy_func)(unsigned char **, void *, size_t)) @@ -156,7 +156,7 @@ static void copy_state_data(unsigned cha /* if (buffer) //Rewind stuff { - copy_func(&buffer, &echoon0, PHdspsave2); + copy_func(&buffer, echoon0, PHdspsave2); } */ } --- a/src/gblvars.h +++ b/src/gblvars.h @@ -33,9 +33,9 @@ extern unsigned int nmirept, nmiprevline extern unsigned int SfxR0, *setaramdata, ramsize, *sram, nmiprevaddrh; extern unsigned int tempesi, tempedi, tempedx, tempebp; extern unsigned int SPCMultA, PHnum2writespc7110reg, PHdspsave2; -extern unsigned char sndrot, SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea; -extern unsigned char DSP1Enable, DSP1COp, prevoamptr, BRRBuffer[32], *romdata; -extern unsigned char curcyc, echoon0, spcnumread, NextLineCache, HIRQNextExe; +extern unsigned char sndrot[], SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea; +extern unsigned char DSP1Enable, DSP1COp, prevoamptr, BRRBuffer[], *romdata; +extern unsigned char curcyc, echoon0[], spcnumread, NextLineCache, HIRQNextExe; extern unsigned char vidmemch4[4096], vidmemch8[4096], vidmemch2[4096]; extern bool C4Enable, SFXEnable, SA1Enable, SPC7110Enable, SETAEnable, DSP4Enable, spcon; --- a/src/Makefile.in +++ b/src/Makefile.in @@ -95,7 +95,7 @@ Z_OBJS=$(MAIN_O) $(CHIP_O) $(CPU_O) $(DE %.o: %.cpp @CXX@ @CXXFLAGS@ -o $@ -c $< %.o %.h: %.psr $(PSR) - ./$(PSR) @PSRFLAGS@ -gcc @CC@ -compile -flags "@CFLAGS@ -O1" -cheader $*.h -fname $* $*.o $< + ./$(PSR) @PSRFLAGS@ -gcc @CC@ -compile -flags "@CFLAGS@" -cheader $*.h -fname $* $*.o $< default: main all: main tools debian/patches/0008-manpage-debugger.patch0000644000000000000000000000111011777771662015433 0ustar From: Etienne Millon Date: Thu, 2 Dec 2010 10:44:05 +0100 Subject: manpage-debugger This documents the use of the '-d' switch. --- src/linux/zsnes.1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/linux/zsnes.1 b/src/linux/zsnes.1 index 5ecef60..c925c95 100644 --- a/src/linux/zsnes.1 +++ b/src/linux/zsnes.1 @@ -24,6 +24,9 @@ Set controls for Player 1/2 \fI0\fP = None \fI1\fP = Keyboard/Gamepad .fi .TP +.B \-d +Enable the debugger (start zsnes in a terminal emulator and press F1) +.TP .B \-dd Disable sound DSP emulation .TP debian/patches/0011-Don-t-strip-binaries-upstream.patch0000644000000000000000000000334012001754606017766 0ustar From: Etienne Millon Date: Sun, 4 Mar 2012 15:24:34 +0100 Subject: Don't strip binaries upstream In order to honor DEB_BUILD_OPTIONS=nostrip, upstream build system should not strip binaries. Bug-Debian: http://bugs.debian.org/438384 --- src/configure.in | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/configure.in b/src/configure.in index 8eece58..410add1 100644 --- a/src/configure.in +++ b/src/configure.in @@ -58,7 +58,6 @@ CFLAGS="$CFLAGS -D__UNIXSDL__" NFLAGS="$NFLAGS -w-orphan-labels -D__UNIXSDL__" PSRFLAGS="$PSRFLAGS -D__UNIXSDL__" MMLIB_FILES="\$(MMLIB_D)/mm.o" -STRIP="-s" case x$target in *-*-linux*) NFLAGS="$NFLAGS -f elf -DELF" @@ -77,7 +76,6 @@ case x$target in NFLAGS="$NFLAGS -D__MACOSX__ -D__OPENGL__ -f macho -DMACHO" PSRFLAGS="$PSRFLAGS -D__OPENGL__" MMLIB_FILES="$MMLIB_FILES \$(MMLIB_D)/osx.o" - STRIP="" LDFLAGS="$LDFLAGS -framework Carbon -framework IOKit -framework Foundation -framework OpenGL -mdynamic-no-pic -read_only_relocs suppress -undefined dynamic_lookup" GL_DRAW="\$(PORT_D)/gl_draw.o" found_opengl=yes @@ -292,10 +290,10 @@ else if test x$force_arch = x; then AC_MSG_WARN([If you intend to distribute this binary, make sure you use force_arch and set to i586 (or whichever CPU Arch you intend for)]) fi - CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr $STRIP -D__RELEASE__" + CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -fprefetch-loop-arrays -fforce-addr -D__RELEASE__" NFLAGS="$NFLAGS -O99999999 -D__RELEASE__" else - CFLAGS="$CFLAGS -O3 -fomit-frame-pointer $STRIP" + CFLAGS="$CFLAGS -O3 -fomit-frame-pointer" NFLAGS="$NFLAGS -O1" fi fi debian/patches/0005-hyphens-as-minus-signs-in-manpage.patch0000644000000000000000000001727711777771662020626 0ustar From: Etienne Millon Date: Tue, 30 Nov 2010 17:23:40 +0100 Subject: hyphens-as-minus-signs-in-manpage Plain '-' characters in the manpage are rendered as hyphens, not minus signs (like command-line switches). This patch converts those hyphens to minus signs, en-dashes (for ranges) and proper hyphens. --- src/linux/zsnes.1 | 106 ++++++++++++++++++++++++++--------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/src/linux/zsnes.1 b/src/linux/zsnes.1 index ad936d4..5ecef60 100644 --- a/src/linux/zsnes.1 +++ b/src/linux/zsnes.1 @@ -1,10 +1,10 @@ .TH "ZSNES v1.51" 1 .SH NAME -ZSNES - Super Nintendo console emulator +ZSNES \- Super Nintendo console emulator .SH SYNOPSIS .B ZSNES -[-?] [-1 #] [-2 #] [-dd] [-dh] [-f #] [-g #] [-h | -l] [-j] [-js #] [-k #] [-m] [-mc] [-md] [-ml #] [-n #] [-o] [-p #] [-r #] [-s] [-sa] [-t | -u] [-v #] [-y] [-z] [-zm #] [-zs #] [romname] +[\-?] [\-1 #] [\-2 #] [\-dd] [\-dh] [\-f #] [\-g #] [\-h | \-l] [\-j] [\-js #] [\-k #] [\-m] [\-mc] [\-md] [\-ml #] [\-n #] [\-o] [\-p #] [\-r #] [\-s] [\-sa] [\-t | \-u] [\-v #] [\-y] [\-z] [\-zm #] [\-zs #] [romname] .SH DESCRIPTION .B ZSNES @@ -15,55 +15,55 @@ Visit http://www.zsnes.com/ for the latest updates. .SH OPTIONS Note: Many of these options can also be set in the GUI. .TP -.B -? -Display command-line help +.B \-? +Display command\[hy]line help .TP -.B -1 # / -2 # +.B \-1 # / \-2 # Set controls for Player 1/2 .nf \fI0\fP = None \fI1\fP = Keyboard/Gamepad .fi .TP -.B -dd +.B \-dd Disable sound DSP emulation .TP -.B -dh +.B \-dh Disable game hacks .TP -.B -f # -Enable frame skipping, where \fB#\fP is a numerical value from \fI0-9\fP +.B \-f # +Enable frame skipping, where \fB#\fP is a numerical value from \fI0\[en]9\fP .TP -.B -g # -Specify gamma correction value, where \fB#\fP is a numerical value from \fI0-15\fP +.B \-g # +Specify gamma correction value, where \fB#\fP is a numerical value from \fI0\[en]15\fP .TP -.B -h -Force HiROM. Cannot be used with \fB-l\fP +.B \-h +Force HiROM. Cannot be used with \fB\-l\fP .TP -.B -j +.B \-j Disable Mouse (Automatically turns off right mouse click) .TP -.B -js # -Adjust joystick sensitivity, where \fB#\fP is a numerical value from \fI0-32767\fP +.B \-js # +Adjust joystick sensitivity, where \fB#\fP is a numerical value from \fI0\[en]32767\fP .TP -.B -k # -Set volume level, where \fB#\fP is a numerical value from \fI1-100\fP +.B \-k # +Set volume level, where \fB#\fP is a numerical value from \fI1\[en]100\fP .TP -.B -l -Force LoROM. Cannot be used with \fB-h\fP +.B \-l +Force LoROM. Cannot be used with \fB\-h\fP .TP -.B -m +.B \-m Disable GUI (Must specify ROM filename) .TP -.B -mc -Exit ZSNES when closing a movie (use with \fB-zm\fP) +.B \-mc +Exit ZSNES when closing a movie (use with \fB\-zm\fP) .TP -.B -md -Dump raw video (use with \fB-zm\fP) +.B \-md +Dump raw video (use with \fB\-zm\fP) .TP -.B -ml -Define movie dump length in amount of frames (use with \fB-md\fP) +.B \-ml +Define movie dump length in amount of frames (use with \fB\-md\fP) .TP -.B -n # +.B \-n # Enable scanlines (when available), where .B # is one of: @@ -72,15 +72,15 @@ is one of: \fI3\fP = 50% .fi .TP -.B -o +.B \-o Disable MMX support .TP -.B -p # +.B \-p # Change the clock speed of the main CPU, where .B # -is a numerical value from \fI50-150\fP. 100 is the normal speed. Changing this value may have adverse side effects. +is a numerical value from \fI50\[en]150\fP. 100 is the normal speed. Changing this value may have adverse side effects. .TP -.B -r # +.B \-r # Set audio sampling rate, where .B # is one of: @@ -90,20 +90,20 @@ is one of: \fI6\fP = 48 KHz .fi .TP -.B -s +.B \-s Enable SPC700/DSP emulation (Sound) .TP -.B -sa +.B \-sa Show files with all extensions (*.*) in GUI. Default is to only show files with one of the extensions listed in .B romname .TP -.B -t -Force NTSC (60 Hz) timing. Cannot be used with \fB-u\fP +.B \-t +Force NTSC (60 Hz) timing. Cannot be used with \fB\-u\fP .TP -.B -u -Force PAL (50 Hz) timing. Cannot be used with \fB-t\fP +.B \-u +Force PAL (50 Hz) timing. Cannot be used with \fB\-t\fP .TP -.B -v # +.B \-v # Select video mode, where .B # is one of: @@ -118,20 +118,20 @@ is one of: \fI21\fP = VARIABLE ODS W \fI22\fP = CUSTOM OD F .fi .TP -.B -y +.B \-y Enable Interpolation .TP -.B -z +.B \-z Disable stereo sound. Stereo sound is enabled by default .TP -.B -zm # -Auto load specified movie on startup, where \fB#\fP is a numerical value from \fI0-9\fP +.B \-zm # +Auto load specified movie on startup, where \fB#\fP is a numerical value from \fI0\[en]9\fP .TP -.B -zs # -Auto load specified save state on startup, where \fB#\fP is a numerical value from \fI0-99\fP +.B \-zs # +Auto load specified save state on startup, where \fB#\fP is a numerical value from \fI0\[en]99\fP .TP .B romname -Name of ROM to auto-load +Name of ROM to auto\[hy]load .B romname is of the format \fBfilename.ext\fP, where .B .ext @@ -148,7 +148,7 @@ The main program. This is the directory where ZSNES configuration files are stored. By default, it is also the directory where save states, screenshots, SPC dumps and ZMV movie files are stored, but you can change this behaviour by editing zsnesl.cfg. This directory is created by ZSNES. .TP ~/.zsnes/zsnesl.cfg -This file is where configuration settings for ZSNES are stored. It is in a human-readable format and can be edited by hand. It is created by ZSNES. +This file is where configuration settings for ZSNES are stored. It is in a human\[hy]readable format and can be edited by hand. It is created by ZSNES. .TP ~/.zsnes/zmovie.cfg This file is where settings specific to AVI dumping are saved. It is created by ZSNES. @@ -162,7 +162,7 @@ This file is where input configuration settings for ZSNES are stored. .B If for some reason you update your version of ZSNES and it keeps crashing before you can do anything, you should try deleting the above .cfg files and let ZSNES create new ones. .SH "SPECIAL CHIP GAMES" -Many games on the Super Nintendo used custom CPUs in addition to the main SNES CPU. Some of these CPUs have not been fully reverse-engineered, and games that use them may either not work or may experience strange bugs. +Many games on the Super Nintendo used custom CPUs in addition to the main SNES CPU. Some of these CPUs have not been fully reverse\[hy]engineered, and games that use them may either not work or may experience strange bugs. You can find more information about these special CPUs at: @@ -176,7 +176,7 @@ Some games based on the SPC7110 chip, such as Far East of Eden Zero, can use spe The proper directory name for a given graphics pack can be found in the readme file included with that pack. -NOTE: As of version 1.40, games which use the S-DD1 chip (Star Ocean and Street Fighter Alpha 2) do not require graphics packs. +NOTE: As of version 1.40, games which use the S\[hy]DD1 chip (Star Ocean and Street Fighter Alpha 2) do not require graphics packs. .SH "REPORTING BUGS" You can report bugs using the bug tracker at the ZSNES BountySource page, located at @@ -201,15 +201,15 @@ ZSNES Repository (SubVersioN): https://svn.bountysource.com/zsnes/trunk/ .TP ZSNES Documentation Online: -http://zsnes-docs.sf.net/ +http://zsnes\-docs.sf.net/ .TP ZSNES IRC: #zsnes on irc.freenode.net .TP ZSNES Docs IRC: -#zsnes-docs on irc.freenode.net +#zsnes\-docs on irc.freenode.net .SH "COPYRIGHT NOTICE" -Copyright \(co 1997-2007 ZSNES Team +Copyright \(co 1997\[en]2007 ZSNES Team -Permission is granted to copy and distribute this manual under the terms of the GNU Free Documentation License. \ No newline at end of file +Permission is granted to copy and distribute this manual under the terms of the GNU Free Documentation License. debian/patches/zsnes-linux-resume-freeze-fix.patch0000644000000000000000000000744512160335735017514 0ustar >From 2c29409f6c7dd7cbacd7027b4afcc08546fa7a66 Mon Sep 17 00:00:00 2001 From: Ian Munsie Date: Mon, 10 Sep 2012 03:51:13 +1000 Subject: [PATCH] Replace floating point arithmetic causing freeze with 64bit integer arithmetic It seems that sem_GetTicks sometimes returns NAN. If this happens when resuming the game (i.e. from Start60HZ), than the start variable can be set to NAN, which causes this test in CheckTimers to never succeed: while ((end - start) >= update_ticks_pc) So it never runs Game60hzcall and therefore appears to freeze. Using gdb to change start to a real number less than end allows zsnes to continue. See this forum post for more details: http://board.zsnes.com/phpBB3/viewtopic.php?f=3&t=2337&p=225071#p225071 This patch changes it to use a 64bit integer instead of floating point arithmetic to avoid hitting these cases. Also, remove the unused start2, end2, and update_ticks_pc2 variables. Signed-off-by: Ian Munsie Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=687107 Origin: http://board.zsnes.com/phpBB3/viewtopic.php?f=3&t=2337&p=225071#p225071 --- src/linux/sdllink.c | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/src/linux/sdllink.c b/src/linux/sdllink.c index 4274c9d..eece048 100644 --- a/src/linux/sdllink.c +++ b/src/linux/sdllink.c @@ -111,23 +111,23 @@ static BYTE IsActivated = 1; /* TIMER VARIABLES/MACROS */ // millisecond per world update -#define UPDATE_TICKS_GAME (1000.0/59.948743718592964824120603015060) -#define UPDATE_TICKS_GAMEPAL (20.0) -#define UPDATE_TICKS_GUI (1000.0/36.0) -#define UPDATE_TICKS_UDP (1000.0/60.0) +#define UPDATE_TICKS_GAME (1000000.0/59.948743718592964824120603015060) +#define UPDATE_TICKS_GAMEPAL (20000) +#define UPDATE_TICKS_GUI (1000000/36) +#define UPDATE_TICKS_UDP (1000000/60) int T60HZEnabled = 0; int T36HZEnabled = 0; -float end, end2; -float start, start2; -float update_ticks_pc, update_ticks_pc2; +unsigned long long end; +unsigned long long start; +unsigned long long update_ticks_pc; // Used for semaphore code static SDL_sem *sem_frames = NULL; static struct timeval sem_start; void sem_sleep_rdy(void); void sem_sleep_die(void); -float sem_GetTicks(void); +unsigned long long sem_GetTicks(void); extern unsigned char romispal; @@ -830,7 +830,6 @@ int startgame() void Start60HZ(void) { - update_ticks_pc2 = UPDATE_TICKS_UDP; if (romispal == 1) { update_ticks_pc = UPDATE_TICKS_GAMEPAL; @@ -842,7 +841,6 @@ void Start60HZ(void) // Restore timer data from semaphore data start = sem_GetTicks(); - start2 = sem_GetTicks(); T36HZEnabled = 0; T60HZEnabled = 1; } @@ -854,12 +852,10 @@ void Stop60HZ(void) void Start36HZ(void) { - update_ticks_pc2 = UPDATE_TICKS_UDP; update_ticks_pc = UPDATE_TICKS_GUI; // Restore timer data from semaphore data start = sem_GetTicks(); - start2 = sem_GetTicks(); T60HZEnabled = 0; T36HZEnabled = 1; } @@ -1097,14 +1093,6 @@ void initwinvideo(void) void CheckTimers(void) { - //QueryPerformanceCounter((LARGE_INTEGER*)&end2); - end2 = sem_GetTicks(); - - while ((end2 - start2) >= update_ticks_pc2) - { - start2 += update_ticks_pc2; - } - if (T60HZEnabled) { //QueryPerformanceCounter((LARGE_INTEGER*)&end); @@ -1306,13 +1294,14 @@ void __attribute__ ((stdcall, constructor)) sem_StartTicks() gettimeofday(&sem_start, NULL); } -float sem_GetTicks() +unsigned long long sem_GetTicks() { struct timeval now; - float ticks; + unsigned long long ticks; gettimeofday(&now, NULL); - ticks=((float)(now.tv_sec-sem_start.tv_sec))*1000.f+((float)(now.tv_usec-sem_start.tv_usec))*.001f; + ticks = (now.tv_sec - sem_start.tv_sec) * 1000000 + + (now.tv_usec - sem_start.tv_usec); return(ticks); } -- 1.7.10.4 debian/patches/fortify-source-load.patch0000644000000000000000000000621712172173525015546 0ustar From: Nelson Elhage Subject: Fix loading save files under FORTIFY_SOURCE. Bug-Ubuntu: https://bugs.launchpad.net/bugs/1173090 --- a/src/cpu/regs.inc +++ b/src/cpu/regs.inc @@ -457,6 +457,7 @@ NEWSYM scrndis, db 0 ; which background is disabled ALIGN32 +NEWSYM oamread NEWSYM oamaddr, dd 0 ; oam address NEWSYM bg1ptrx, dd 0 ; pointer to background1 --- a/src/gblvars.h +++ b/src/gblvars.h @@ -27,13 +27,14 @@ extern unsigned int cycpbl; 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 opcd, HIRQCycNext, oamaddr, curexecstate, nmiprevaddrl; +extern unsigned int soundcycleft, timer2upd, xa, PHnum2writesfxreg; +extern unsigned char spc700read[], xaread[], opcd[], oamread[]; +extern unsigned int HIRQCycNext, oamaddr, curexecstate, nmiprevaddrl; extern unsigned int nmirept, nmiprevline, nmistatus, joycontren; extern unsigned int SfxR0, *setaramdata, ramsize, *sram, nmiprevaddrh; extern unsigned int tempesi, tempedi, tempedx, tempebp; extern unsigned int SPCMultA, PHnum2writespc7110reg, PHdspsave2; -extern unsigned char sndrot[], SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea; +extern unsigned char sndrot[], SPCRAM[65472], DSPMem[256], SA1Status, *SA1RAMArea, *SPCState; extern unsigned char DSP1Enable, DSP1COp, prevoamptr, BRRBuffer[], *romdata; extern unsigned char curcyc, echoon0[], spcnumread, NextLineCache, HIRQNextExe; extern unsigned char vidmemch4[4096], vidmemch8[4096], vidmemch2[4096]; --- a/src/init.asm +++ b/src/init.asm @@ -295,6 +295,7 @@ NEWSYM cpuoverptr, dd 0 ; pointer to cpuover ALIGN32 +NEWSYM xaread NEWSYM xa, dd 0 NEWSYM xdb, dd 0 NEWSYM xpb, dd 0 --- a/src/initc.c +++ b/src/initc.c @@ -1391,7 +1391,8 @@ extern unsigned char pal16bclha[1024]; extern unsigned char pal16bxcl[256]; extern unsigned char SPCRAM[65472]; +unsigned char *SPCState = SPCRAM; extern unsigned char *sram; extern unsigned char *vidbuffer; extern unsigned char *vram; --- a/src/zstate.c +++ b/src/zstate.c @@ -105,7 +105,7 @@ static void copy_spc_data(unsigned char **buffer, void (*copy_func)(unsigned char **, void *, size_t)) { //SPC stuff, DSP stuff - copy_func(buffer, SPCRAM, PHspcsave); + copy_func(buffer, SPCState, PHspcsave); copy_func(buffer, BRRBuffer, PHdspsave); copy_func(buffer, DSPMem, sizeof(DSPMem)); } @@ -121,14 +121,14 @@ copy_func(buffer, &nmistatus, 4); copy_func(buffer, &joycontren, 4); copy_func(buffer, &NextLineCache, 1); - copy_func(buffer, &spc700read, 10*4); + copy_func(buffer, spc700read, 10*4); copy_func(buffer, &timer2upd, 4); - copy_func(buffer, &xa, 14*4); + copy_func(buffer, xaread, 14*4); copy_func(buffer, &spcnumread, 1); - copy_func(buffer, &opcd, 6*4); + copy_func(buffer, opcd, 6*4); copy_func(buffer, &HIRQCycNext, 4); copy_func(buffer, &HIRQNextExe, 1); - copy_func(buffer, &oamaddr, 14*4); + copy_func(buffer, oamread, 14*4); copy_func(buffer, &prevoamptr, 1); } debian/changelog0000644000000000000000000002306112172463116011045 0ustar zsnes (1.510+bz2-6) unstable; urgency=low [ Fabian Greffrath ] * 0001-gcc-fno-rtti.patch: Removed, one less deviation from upstream. * 0002-replace_crc32.patch: Removed, not actually needed at all. * 0013-Fix-sound-with-libao.patch: Replace with the actual patch from upstream SVN. * 0014-Initialize-driver_format.matrix-with-NULL.patch: Only keep the memset() part as discussed with upstream author Nach on the ZSNES board. * Set Architecture: any-i386. * Add CPPFLAGS to CFLAGS and CXXFLAGS to enable full hardening flags. * fortify-source.patch: New patch to fix compilation with FORTIFY_SOURCE. (Closes: #698990) [ Etienne Millon ] * Fix crashes on resume : use int64s instead of floats in sem_GetTicks(). Thanks to Ian Munsie. (Closes: #687107) * Fix loading states with _FORTIFY_SOURCE enabled. Thanks to Nelson Elhage. (Closes: #712790) * Add keywords to desktop file. * Bump Standards-Version to 3.9.4 (no changes). * Canonicalize VCS-* fields. -- Etienne Millon Sat, 20 Jul 2013 12:28:28 +0200 zsnes (1.510+bz2-5) unstable; urgency=low * Build zsnes without libao support for wheezy. libao has often been a source of trouble for zsnes. Without libao support it will fall back to the SDL audio driver. Furthermore it will make it possible to install the zsnes package via multi-arch (see #638741). -- Fabian Greffrath Fri, 02 Nov 2012 15:07:44 +0100 zsnes (1.510+bz2-4) unstable; urgency=low [ Etienne Millon ] * Disable build on amd64 (Closes: #679526) - Add Multi-Arch: Foreign * debian/compat : use level 9 compatibility level * debian/rules : - use find -delete instead of command expansion - use dpkg-buildflags - add -Wl,--as-needed to LDFLAGS (Closes: #607311) [ Eshat Cakar ] * Improve zsnes.desktop file, thanks to Fabian Greffrath (Closes: #680054) [ Fabian Greffrath ] * Add myself to Uploaders. * 0001-gcc-fno-rtti.patch: Patch src/configure.in instead of the auto-generated src/configure. * Add patch to initialize the ao_sample_format structure (thanks also to Goswin von Brederlow - Closes: #679826) * Install high-res PNG icons provided with the sources (Closes: #680078) -- Etienne Millon Fri, 06 Jul 2012 08:27:08 +0200 zsnes (1.510+bz2-3) unstable; urgency=low * New patches : - handle the nostrip build option (Closes: #438384) - fix FTBFS with gcc 4.7 (Closes: #667429) - fix audio output with libao (Closes: #470410) * Build-depend on libpng-dev instead of libpng12-dev (Closes: #662578) * Bump Standards-Version to 3.9.3 (no changes). -- Etienne Millon Tue, 08 May 2012 15:17:42 +0200 zsnes (1.510+bz2-2) unstable; urgency=low * Add a patch to fix build with libpng 1.5 (Closes: #649801, thanks to Nobuhiro Iwamatsu). * Enable the built-in debugger (Closes: #513201). * Use dh-autoreconf instead of autotools-dev. * Add a patch fixing hat positions not resetting properly (thanks to hakonrk & Simeon Maxein). * Add explicit dependency on libgl-dev or its implementation (Closes: #641277, thanks to Matthias Klose). * Bump Standards-Version to 3.9.2 (no changes). -- Etienne Millon Sun, 18 Dec 2011 21:30:11 +0100 zsnes (1.510+bz2-1) unstable; urgency=low * Use upstream tarball (in bzip2 format) instead of a custom gzip one. * debian/rules: add -lpthread to LDFLAGS to fix FTBFS with new binutils (Closes: #620656) * debian/control: - Remove an incorrect statement about multiplayer in the description (Closes: #616445) * Document patches in DEP3 headers . * Prevent installation of upstream-provided license.htm instead of deleting it. -- Etienne Millon Mon, 04 Apr 2011 12:07:05 +0200 zsnes (1.510-3) unstable; urgency=low * New maintainer (Closes: #573418). - This package is now maintained by the Debian Games Team. - Add Eshat Cakar and myself to Uploaders. * Remove useless build-deps on xlibmesa-gl-dev and xutils (Closes: #579040). * Add support for amd64 (Closes: #402104) * debian/control: clarifiy description thanks to Ubuntu patch (Closes: #487118) * Add ${misc:Depends} to dependencies. * Add debian/watch file. * Switched to '3.0 (quilt)' format. * Bump Standards-Version to 3.9.1 (no changes). * zsnes.desktop: removed useless Encoding field. * zsnes.doc-base: removed 'Apps/' prefix from Section. * Build know copies config.{guess,sub} from autotools-dev. * Add patches to upstream sources: - Convert the manpage to use minus signs and en-dashes instead of hyphens. - Correct a spelling error. - Remove an extra license file in documentation. -- Etienne Millon Wed, 01 Dec 2010 16:55:26 +0100 zsnes (1.510-2.2) unstable; urgency=medium * Non-maintainer upload. * Fix the debian/rules clean problem, with a patch courtesy of Gunnar Wolf (closes: #513205) * Urgency medium to fix RC bug in testing -- Vincent Fourmond Tue, 03 Feb 2009 21:52:28 +0100 zsnes (1.510-2.1) unstable; urgency=high * Non-maintainer upload. * Fix gcc-4.3 FTBFS (Closes: #474804). -- Ian Beckwith Thu, 10 Apr 2008 22:20:59 +0100 zsnes (1.510-2) unstable; urgency=low * Acknowledge NMU, closes: #447366 * Fix build failure with g++ 4.2, closes: #459033 * Bump Standards-Version to 3.7.3 * Move menu file from Apps to Applications. I think this closes: #443789. -- Joshua Kwan Thu, 10 Jan 2008 20:49:18 -0800 zsnes (1.510-1.1) unstable; urgency=low * Non-maintainer upload to fix RC bug. * Fix FTBFS, CRC32 is now a keyword in nasm, replace it by RomCRC32. Patch by Javier Serrano Polo . (Closes: #447366) -- Ana Beatriz Guerrero Lopez Mon, 19 Nov 2007 03:26:31 +0100 zsnes (1.510-1) unstable; urgency=low * New upstream release - all patches merged. closes: #380734, #419270 * Add a .desktop file, thanks Nicholas Wheeler. closes: #367942 * Include a ton of documentation that ships with the tarball. closes: #392143 -- Joshua Kwan Mon, 04 Jun 2007 21:46:47 -0700 zsnes (1.420-1) unstable; urgency=low * New maintainer, acknowledge NMU. (closes: #301611, #293061) * Switch to dpatch. * Add patch from upstream CVS to fix 100% CPU problem while in GUI. (closes: #319299) * Since we do provide at least one sample ROM, there is absolutely no reason to leave this in contrib. Move to main (closes: #313137) * Add the Debian changelog back. The upstream changelog is no longer available, however. (closes: #320717) -- Joshua Kwan Mon, 9 Jan 2006 18:19:09 -0800 zsnes (1.420-0.1) unstable; urgency=low * Non-maintainer upload * New upstream release (Closes: #293061) * Compiled with g++-4.0 to comply to the C++ ABI transition * Build-depend on `automake' to fix FTBFS (Closes: #301611) -- Philipp Kern Sun, 24 Jul 2005 15:58:59 +0000 zsnes (1.400-1) unstable; urgency=low * New upstream version (Closes: #287161, #287998) * Fix manpage (Closes: #290463) -- Aaron Lehmann Mon, 17 Jan 2005 18:53:03 -0800 zsnes (1.360-2) unstable; urgency=low * Enable OpenGL (Closes: #240397) * Apply save state patch (Closes: #199461, #164622) * Apply enhanced joystick support patch (Closes: #220270) * Add menu entry (Closes: #185024) -- Aaron Lehmann Mon, 06 Sep 2004 22:29:19 -0700 zsnes (1.360-1) unstable; urgency=low * New upstream version -- Aaron Lehmann Sun, 11 Aug 2002 00:48:10 -0700 zsnes (1.337-4.1) unstable; urgency=low * Non maintainer upload. * stray '\' was breaking build (closes: #146802) * fix spelling error in description (closes: #125584) -- David Kimdon Sun, 9 Jun 2002 21:25:42 -0700 zsnes (1.337-4) unstable; urgency=low * Fix build with new NASM * Update build-depends (Closes: #123725) -- Aaron Lehmann Sun, 16 Dec 2001 14:31:19 -0800 zsnes (1.337-3) unstable; urgency=medium * Recompile against new libsdl1.2debian * Update Build-Depends accordingly * Bump standards-version -- Aaron Lehmann Sat, 20 Oct 2001 20:38:34 -0700 zsnes (1.337-2) unstable; urgency=medium * Don't let configure detect CPU-specific optimizations. Compile with -mcpu=pentiumpro instead. (Closes: #114342) -- Aaron Lehmann Wed, 3 Oct 2001 11:35:26 -0700 zsnes (1.337-1) unstable; urgency=low * New upstream release * Major binary size improvements. * Build system was converted to autoconf :( -- Aaron Lehmann Sun, 30 Sep 2001 20:01:43 -0700 zsnes (1.30b-1) unstable; urgency=low * New upstram version * Install more docs * Include example cartridge in /usr/share/doc/zsnes/examples -- Aaron Lehmann Thu, 21 Jun 2001 16:57:42 -0700 zsnes (1.28-1) unstable; urgency=low * New upstream version. Optimization fix applied upstream. -- Aaron Lehmann Wed, 30 May 2001 14:37:40 -0700 zsnes (1.25-1) unstable; urgency=low * New upstream release. Fixes bugs and adds optimizations. Double-buffering is now supported on Linux. * Wrote a fix for a bug triggered with compiler optimizations. Sent upstream. -- Aaron Lehmann Tue, 15 May 2001 21:05:32 -0700 zsnes (1.20-1) unstable; urgency=low * Initial Release. -- Aaron Lehmann Tue, 1 May 2001 19:40:50 -0700 debian/compat0000644000000000000000000000000211773347576010410 0ustar 9 debian/docs0000644000000000000000000000056111537230565010052 0ustar docs/authors.txt docs/install.txt docs/opengl.txt docs/srcinfo.txt docs/stdards.txt docs/support.txt docs/thanks.txt docs/todo.txt docs/readme.txt/about.txt docs/readme.txt/advanced.txt docs/readme.txt/faq.txt docs/readme.txt/games.txt docs/readme.txt/gui.txt docs/readme.txt/index.txt docs/readme.txt/netplay.txt docs/readme.txt/readme.txt docs/readme.txt/support.txt debian/control0000644000000000000000000000232312172463052010573 0ustar Source: zsnes Section: otherosfs Priority: optional Homepage: http://www.zsnes.com Maintainer: Debian Games Team Uploaders: Etienne Millon , Eshat Cakar , Fabian Greffrath Build-Depends: debhelper (>= 9), dh-autoreconf, dpkg-dev (>= 1.13.2), libgl1-mesa-dev | libgl-dev, libncurses5-dev | libncurses-dev, libpng-dev, libsdl1.2-dev (>= 1.2.2-3.1), nasm, sharutils, zlib1g-dev Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-games/zsnes.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/zsnes.git Package: zsnes Architecture: any-i386 Multi-Arch: foreign Depends: ${misc:Depends}, ${shlibs:Depends} Description: Emulator of the Super Nintendo Entertainment System ZSNES allows you to play classic games written for the Super Nintendo (SNES) game console on a GNU/Linux system. . Please note that many separately-available games playable under this emulator are non-free. See /usr/share/doc/zsnes/README.Debian for more information. debian/examples/0000755000000000000000000000000011477735466011030 5ustar debian/examples/source/0000755000000000000000000000000011477735466012330 5ustar debian/examples/source/deb.map.uu0000644000000000000000000000544011477735466014214 0ustar begin 644 deb.map M```````````````````````````````````!``(``P`$``4`!@`````````` M```````````````````````````````````````````````````````'``@` M"0`)``H`"P`,``D`#0`.``\````````````````````````````````````` M`````````````````!``$0`)`!(`$P`````````4`!4`"0`6`!<````````` M```````````````````````````````````````````8`!:`&0`````````` M`````````!H`"0`;```````````````````````````````````````````` M`````!P`%H`0P````````````````````````!T`'@`?```````````````` M````````````````````````````(``A`"(````````````C`"0`)0`F```` M```G`"@`*0```````````````````````````````````````````"H`*P`L M`````````"T`+@``````````````+P`P```````````````````````````` M```````````````````Q`#(````````````S````````````(````#&`-``` M````````````````````````````````````````````+P`U```````````` M-@```````````#<````X`#D````````````````````````````````````` M`````````"\`)T```````````#H``````#L`/``]````/@`_```````````` M```````````````````````````````````O`$````````````!!`$(````` M````0P!$`$4````````````````````````````````````````````````` M1@!'````````````2`!)`$H`2P!,`$T`3@`````````````````````````` M`````````````````````````$\`"0!0````````````40!2`%,`5``\0``` M```````````````````````````````````````````````````\`%4`5@!7 M```````````````````````````````````````````````````````````` M``````````````````!8``D`60`````````````````````````````````` M````````````````````````````````````````````/`!:`%L`7``````` M```````````````````````````````````````````````````````````` M````````````70!>`%\`8``````````````````````````````````````` M````````````````````````````````````````/`!A`&(`8P`````````` M```````````````````````````````````````````````````````````` M`````````````&0`90!F```````````````````````````````````````` M```````````````````````````````````````````````````````````` M`````````````````````````````````````````````&<`:``````````` M`&D`````````:@!K```````````````````````````````````````````` M``````````!L`&T`````````;@!O`````````'``<0`````````````````` M``````````````````````````````!R`',`=`!U`'8`=P!X`'D`>@![`'P` M?0!^`'\`@`"!`((`@P"$`(4`?$"&````````````````````````````AP"( M`(D`B@"+`(P`C0".`(\`D`"1`)(`;4"3`)0`B`"5`)8`EP"8`)D`F@";```` M``````````````````"<`)T```"30(H`;P">`)\`;0!O`*``H0"B`&U`DP!R M`*,`I`"6`)-`;0```)U`G$``````````````````````G`"E````DT"*`*8` MIP"G`*@`;P```*D`J@!M0),`JP"L`*T`E@"30&T```"=0)Q````````````` M`````````*X`;P"O`+``L0"R`+,```"T`&\```"7@+4`;4"3`+8`9T"W`)8` MDT!M````G4"<0````````````````````````+@`N0"Z`+L`O`"]`+X`OP#` M`,$`P@##`,0`Q0#&`,<`R`#)`,5`R@```,L`S``````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` M```````````````````````````````````````````````````````````` 7```````````````````````````````` ` end debian/examples/source/debian.asm0000644000000000000000000000775611477735466014273 0ustar ; Copyright (C) 2001 Steven Fuller ; ; 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. .org $8000 .nmi _nmi .reset Start .name "Debian Demo " ; v1.0 ; Show a logo Start: sei phk pld clc xce rep #$30 ; X/Y = 16, A = 8 sep #$20 jsr vblwait jsr CommonInit lda #$01 ; Mode 1 sta $2105 lda #$01 sta $4200 lda #$ff sta $4201 lda #$81 ; Initialize control pad sta $4212 stz $2133 ldy #$0000 ldx #$0000 stz $2121 setpal: lda PAL,x sta $2122 ; 1st byte inx ; next lda PAL,x ; 2nd byte sta $2122 inx iny cpy PALc bne setpal ; no? try again lda #$01 ; Activate BG1 sta $212C lda #$80 sta $2115 ; BG1 Tilemap (at $0000) ; lda #$00 ; BG1 tilemap pos ; sta $2107 ; ; ldx #$1000 ; stx $2116 ; ldx #$0000 ;ll2: ; ldy TILEMAP, x ; sty $2118 ; inx ; inx ; cpx #$0800 ; bne ll2 ; BG1 Tilemap (at $0000) lda #$00 sta $2107 ldx #$0000 stx $2116 ldx #$1801 stx $4300 ldx #TILEMAP stx $4302 lda #$00 sta $4304 ldx #$0800 stx $4305 lda #$01 sta $420B ; BG1 Tiledata (at $1000) lda #$01 sta $210B ldx #$1000 stx $2116 ldx #$1801 stx $4300 ldx #TILES stx $4302 lda #$00 sta $4304 ldx TILESc stx $4305 lda #$01 sta $420B ; BG1 Tile data (at $1000) ; lda #$01 ; sta $210B ; ; ldx #$2000 ; stx $2116 ; ; ldx #$0000 ;ll1: ; ldy TILES, x ; sty $2118 ; inx ; inx ; cpx TILESc ; bmi ll1 ;jsr vblwait lda #%00001111 ; turn the screen on sta $2100 cli ; enable interrupts, i guess main: jsr vblwait _joypad: lda $4212 and #$01 bne _joypad lda $4219 and #$10 beq main jmp main vblwait: ; clc ; lda $4210 ; adc #$80 ; bcc _vblwait lda $4210 bpl vblwait lda $4210 rts ; Just set some stuff to default values CommonInit: lda #$80 sta $2100 stz $2101 stz $2102 stz $2103 stz $2104 stz $2105 stz $2106 stz $2107 stz $2108 stz $2109 stz $210a stz $210b stz $210c stz $210d stz $210d stz $210e stz $210e stz $210f stz $210f stz $2110 stz $2110 stz $2111 stz $2111 stz $2112 stz $2112 stz $2113 stz $2113 stz $2114 stz $2114 lda #$80 sta $2115 stz $2116 stz $2117 stz $211a stz $211b lda #$01 sta $211b stz $211c stz $211c stz $211d stz $211d stz $211e lda #$01 sta $211e stz $211f stz $211f stz $2120 stz $2120 stz $2121 stz $2123 stz $2124 stz $2125 stz $2126 stz $2127 stz $2128 stz $2129 stz $212a stz $212b stz $212c stz $212d stz $212e stz $212f stz $4200 lda #$ff sta $4201 stz $4202 stz $4203 stz $4204 stz $4205 stz $4206 stz $4207 stz $4208 stz $4209 stz $420a stz $420b stz $420c stz $420d rts PALc: .dw 16 PAL: .incbin "deb.col" TILESc: .dw 9696 TILES: .incbin "deb.set" TILEMAP: ; 2048 bytes .incbin "deb.map" _nmi: rti ; ZSNES hack (so it shows up as lorom) .bank 1 .org $FFF0 .db $00, $00, $00, $00, $00, $00, $00, $00 .db $00, $00, $00, $00, $00, $00, $00, $00 debian/examples/source/deb.set.uu0000644000000000000000000002155011477735466014232 0ustar begin 644 deb.set M``````````````````````````````````````````````````````````,` M'P!_````````````````````````````!``?`'\`_P#_`/\````````````` M````````````#`#P`/\`_P#_`/\`_P``````````````````````!@````P` MPP#_`/\`_P#_```````````````````````````````8`/X`_P#_`/\````` M``````````````````````````````#P`/P`_P`````````````````````` M``````````````$``P`'```````````````````````!``<`#P`?`#\`?P#_ M`/\``````````````````````/\`_P#_`/\`_P#_`/\`_P`````````````` M````````_P#_`/\`_P#_`/\`_P#@``````````````````````#_`/\`_P#_ M`/\`_P"``````````````````````````/\`_P#_`/\`_P#_`#\``0`````` M````````````````SP#_`/\`_P#_`/\`_P#_```````````````````````` M`(``@`#H`/8`_P#_`/\``````````````````````````````````````,`` MX``````````````````````````````````!``,`!P`/```````````````` M```````/`!\`?P#_`/\`_P#_`/\``````````````````````/\`_P#_`/\` M_@#_`(``````````````````````````_`#X`/@`P`!````````````````` M```````````````_``<``0```````````````````````````````````/\` M_P#_`'\`'P`'``,`````````````````````````^`#\`/X`_P#_`/\`_P#_ M`````````````````````````````````(``P`#@`.`````````````````` M``````\`'P`?`#\`?P!_`/\`_P``````````````````````_@#]`/@`_`"` M``````````````````````````````!_`#\`'P`/``<``P`!``$````````` M`````````````/``^`#X`/P`_`#^`/X`_P``````````````````````0`"! M`($``P`#``\`'P`?``````````````````````#_`'\`?P`_`#\`'P`?`!\` M`````````````````````/\`_P#_`-\`RP#!`.$`X``````````````````` M`````````(``@`````````"```````````````````````````````````@` M"``(`````````````````````````#\`/P!_`'\`?P#_`/\`_P`````````` M````````````^`#P`.``X`#``.``X`#````````````````````````````` M```#``\`'P`_`'X`````````````````````````'P#_`/\`_`#@`(`````` M``````````````````````#^`/\``0`````````````````````````````` M````````@`#@`#``"``$``(```````````````````````\`#P`/``\`#P`/ M``\`#P``````````````````````Z`#X`/@`_`#\`/P`_`#Z```````````` M``````````````````!``$```````"````````````````````````$``0`! M``,``P`#``<`!P``````````````````````_P#_`/\`_P#_`/X`_`#\```` M``````````````````#``(``@``````````````````````````````````` M``````````$``P`'``X`#@``````````````````````>`#P`,``@`"````` M```````````````````````````'``<`!P`'``<`!P`'``<````````````` M`````````/@`^`#\`/X`_`#\`/P`_```````````````````````!P`'``,` M`P`#``<`!P`'``````````````````````#\`/P`_`#\`/P`_`#X`/@````` M``````````````````P`'``<`!@`.``X`#@`.``````````````````````` M_`#_`/\`_@#^`/P`_`#\``````````````````````#X`/@`^`#X`/@`\`#P M`/```````````````````````'@`>`!X`'@`?`!\`'P`?``````````````` M``````````````````````````"@```````````````````````'``<`!P`' M``<`!P`/``\``````````````````````/@`\`#P`/``\0#P`/``X``````` M````````````````?`!\`'P`?@!^`'X`/@`^```````````````````````` M`````````````````!\```````````````````````$````````````````` M``````````````````````````!``(`````````````````````````````` M```````/`!\`/P!_`/\`_P#]`/@``````````````````````.``P@"``(`` M````````````````````````````````\`#X`/@`_`#\`/P`_`#\```````` M```````````````?`!\`CP"'`$,`2``D`!0````````````````````````` M``"``(``P`#@`&``,``````````````````````````````````````````+ M```````````````````````!``,`!P`/`!\`?P#_`/X````````````````` M`````/``\`#X`.@`P`"`````````````````````````````!P`'``<`!P`' M``,``P`#``````````````````````#\`/X`_@#^`/X`_P#_`/\````````` M`````````````!(`"0`!````````````````````````````````````'`!& M`*,`T0!X`#X`'P`'``````````````````````````````#``'``/@#/`.$` M```````````````````````````````````#`/\`_P`````````````````` M````````````#P!_`/\`_P#_```````````````````````/`!\`_P#_`/\` M_@#X`.```````````````````````/P`\`#@`,`````````````````````` M`````````````P`#``,``P`#``$``0`!``````````````````````"(`)@` MG`#<`/X`_@#^`/\```````````````````````,````````````````````` M````````````````````\`#^`#\`!P`````````````````````````````` M```_````P`#_`/X``````````````````````````````/\`\````,`````` M````````````````````````````_P#_`/\`_P!_`'\`/P`_```````````` M``````````#]`/P`_@#_`/\`_P#_`/\````````````````````````````` M``````"``,``@```````````````````````'P`?``\`#P`'``<``P`!```` M``````````````````"``,``P`#``.``\`#P`/@````````````````````` M`/\`_P!_`#\`'P`?``\`!P``````````````````````_`#^`/\`_P#_`/\` M_P#_``````````````````````````````!``,``P`#@`.`````````````` M``````````,``0``````````````````````````````````````_P#_`/\` M?P`_`!\`#P`#``````````````````````#P`/@`_P#_`/\`_P#_`/\````` M````````````````````````````@`#``.``^``````````````````````` M_P!_`#\`#P`#``````````````````````````````#P`/X`_P#_`/\`_P`? M``,``````````````````````````````(``Z`#\`/X`_P`````````````` M````````?P`/``$```````````````````````````````````"``.``_``_ M``,``````````````````````````````````````/``_P`````````````` M``````````````````````````````````,"```````````````````````` M`````````````!@`^`````````````````````````````````````$!!P`_ M```````````````````````````````!`P`'``\`'P`_```````````````` M````````````````@(!`P"#@$/``````````````````````#P`/"`<`!P`' M``<`!P`'``````````````````````#X`/@`^`#X`/@`^`#X`/@````````` M``````````````<$`0`!`0``````````````````````````````````_P#_ M`/\`_P#_`/\`_P#_````````````````````````?P!_`#\`'P`/``<``P`` M``````````````````````CX`/@`\`#@`,``@``````````````````````` M``````````````````\('P`_`````````````````````````````````!<0 M_P#_`/\```````````````````````<`!P`'``<`QP#_`/\`_P`````````` M````````````^`#X`/@`^`CX"/@(^`CX"``````````````````````````` M````````!P0?$#\@````````````````````````````````!P#_`/\`_P`` M``````````````````````````````#X"/\`_P#_```````````````````` M````````````````@`#``.```````````````````````/\`_P#_`/\`_P'_ M`?\!_P$````````````````````````````````!`1\`/P`_```````````` M`````````````````````/``_P#_`/\````````````````````````````` M`````````(``P```````````````````````````````````````?P`_```` M`````````````````````````````"`@X`#@`.`````````````````````` M```````````````'!!\0?T`````````````````````````````````?`/\` M_P#_`````````````````````````````````-`0_P#_`/\````````````` M``````````````````````"``.``X``````````````````````````````` M````````'P`/`````````````````````````````````!@`^(#Y`/L````` M````````````````````````````\!#^`/\`_P`````````````````````` M?P!_`/\`_P#_`/\`_@#^``````````````````````#_`/\`P``````````` M`````````````````````````/\`_P`/``<`!P`'``<`!P`````````````` M````````^`CX"/@(^`CX"/@(^`CX"``````````````````````_`']`?P!_ M`'\`?P#_@/\``````````````````````/\`\!#``(``@`"``(``@``````` M````````````````_P`?``\`!P`'``<`!P`'``````````````````````#P M`/``\`#X"/@`^`#X`/@``````````````````````/\!_P'_`?\!_P'_`/\` M_P``````````````````````?P!_`'\`\`#@(,``P`"````````````````` M``````#_`/\`_P`_``\`#P`'``<``````````````````````.`@X`#P`/`` M^`#X`/@`_`0`````````````````````X`#@`.``X`#@`.``X`#@```````` M```````````````_`#\`/R`>`!@`$````````````````````````````/\` M_P`_(`\`!P`/``<`!P``````````````````````\`#P`/``\`#P`/``\`#P M```````````````````````/``\`!P`'``<`!P`'``<````````````````` M`````/L`_P#_`/X`_`#\`/P`^```````````````````````_P#_`,=$```` M``````````````````````````````#_`/\`_P#_`/\`_P#_`/^````````` M`````````````("`@`"``(``@`"``(``@````````````````````````0`! M``$``0`!``$``0`!``````````````````````#^`/X`_@#^`/X`_@#^`/X` M``````````````````````````````````#_`/\`_P`````````````````` M````!P`'``<`!P`'`/\`_P#_``````````````````````"``(`````````` M``````````````````````````````<`!P`'``<$!P0#``,``P`````````` M````````````_`#\`/P`_`#\`/P`_`#\```````````````````````````` M`````'\`_P#_`/\```````````````````````<`!P`'``<`_P#_`/\`_P`` M````````````````````_@#^`/X`_@#^`/X`_P'_```````````````````` M``#_`/\`_P#_`/\`_P#_`'\``````````````````````/\`_P`````````` M````````````````````````````^`#X```````````````````````````` M```````````#``,``P`#``,``P`'!`,``````````````````````/P`_`#\ M`/P`^`#X`/@`^```````````````````````?P!_`/\`_P#_`/\`_P#^```` M``````````````````#_`(``@(`````````````````````````````````` M`/\`!P`'``<`!P`'``<`#P@``````````````````````0`!``$``0$````` M``````````````````````````````````"`@(``@`#``/@(```````````` M``````````<`!P`'``<`#P@/``\`?T``````````````````````^`CX"/@` M^`#X`/@`^`#X``````````````````````#_@'\`?P!_`'\`?P!_`#\````` M`````````````````("`@`"``(``@`"``,``X``````````````````````` M```````````````````(``````````````````````#X`/``\`#P`.``X`#` M`,```````````````````````/\!_P'^`/\`_P#_`/\`_P`````````````` M````````#P`/``\`'P`?`#\`/P#W``````````````````````#_`/\`?P!_ M`#\`#P`#`@```````````````````````/\`_P#_`/\`_P#_`/@````````` M````````````````_P#_`/<`]P#G`,<```````````````````````````#X M`/@`^`#\!/P`_````````````````````````````#\`/R`?``\``P`!```` M````````````````````````^`#_`/\`_P#_`/\`"P@````````````````` M`````````/\`_P#_`/\`_P#_`````````````````````````'@(\`#P`/$` M\0#P````````````````````````````_P#_`/\`_P#_`/^`!P`````````` M`````````````````("`_P#_`/\`_P#_`````````````````````````!\` M_P#_`/X`_`#X`.`@````````````````````````@``````````````````` M```````````````````````?`!\`'P`?`!\`/P`````````````````````` M`````.``X`#@`.``X`#P````````````````````````````_P!_`'\`/P`? M``<``0$```````````````````````#_`/\`_P#_`/\`_P#X"``````````` M`````````````/<`YP#G`,<`QP"'@```````````````````````````\`#P M`/@(^`#X`/@```````````````````````````#X`/@`^`#X`/@`^``````` M`````````````````````'\`_X!_`/\`_P#_```````````````````````` C````@`"``(``@`"``(`````````````````````````````` ` end debian/examples/source/deb.col.uu0000644000000000000000000000010611477735466014206 0ustar begin 644 deb.col @``#_?SHHNEZZ7KI>_W^Z7KI>_W^Z7KI>NEZZ7KI>NEX` ` end debian/examples/README0000644000000000000000000000053411477735466011712 0ustar Included here is a simple test cartridge that paints a Debian logo in the emulator's window. To try it, simply run `zsnes /usr/share/doc/zsnes/examples/debian.smc.gz'. The source code is available in the source/ subdirectory under the GNU General Public License. Unfortunately, the necessary tools for its assembly are not yet packaged in Debian. debian/examples/debian.smc.gz.uu0000644000000000000000000000623611477735466014034 0ustar begin 644 debian.smc.gz M'XL(""Y(`SL``V1E8FEA;BYS;6,N,0#MG6N4'$45Q_^3GG;]^J6U6W MJFXW'P#(LYG=EV\8/7'XPB>+Q?NGQBI"(O$@>` M*4`*\<`]XQ-GB^/>GZ./WSU^[._J\8UBVIDX0TQC(B/4@Y-+Q51J=!)C4SON MF)PWIFZGQZ:0G1P<4\\.5?1)/9;O/'9TW'_LWD?'VX_E)B"N5'X=&JFL3QU[ MYM"9E?7YQC^ON,LYE*_D3ZC3-E4KA$P).4_(`2'30@X*.5_(C)!9(1<(N5#( M(2&'A5QDCL7FR)DC;X[3S#%BCM/-L40?ICERJ9#+A#Q+R.6Z3Y8+N<(<*\VQ M2M];)63!'$5S""'/$7*UD&N$/%?(M4*N$W*]D.<)N4'(C4*>+^0%0FX2TNM@ M.:\B!RHR79&#%3F_(C,5F:W(!16YL"*'*G*X(A=5MN75.+6JEZR[_RHMK6KG M[$M]S2D,^0`*J%HU::-I&8DRC(:GL^GGFR<>CM6[C**9J-"\*T0I*LKR?J'8M707U)>1/FB1[U0Y7JX#C^U;-_@)K%/Q^W=W*1 M^[G`V":UOQG3OEG,**FA'%-O2=4:;76X_*KR(J,\C#*C:F@F]H^+8UI?C]S7 M[7-'WS[^39PT=3@QY5:5;4&5HKU+65K2,.V?-5XV+>67,:YD0(GK29B6\:QD M:K'KM?P%C^$A_#5F?)VV]W&M`+)&HI2\OHF;WS.JA;I?:][9SH`WQ_9:=`53 M[JRRMGNG>RTI0G2KZKA0>9_&O(@N%Y(PQ]OCH^7?,364O?@M1C0I(P-&,I;U MI168(;J&,+7`Z,3CSL[%2L+L5OV?5$8F)&%FO!GD]X#-OM.ZJ/UL0'1988:Q M0LDH+O8D:N_V33.F_IFV-(Q$V^_*'D^2.6!MGR^V^/#K?(UN4 M)!.=O\F1K2DGQD=P[SIIZ?\Z#B=&6*,K_J/]K]><6[$/8[@,J['$6H;CK:[; MU"Q,9BARQ]]WW%VF:?%/>WC;L?G#"!8DCL$*7(J#^).* ML"UF#[)3PPU*_X1:@>,92-B?_BX8YF2?^[^;`3B1NP6S M>^>\"(KVC[:JF>AV(]'F7]7;G7/6]3'H79Q_9:^.>D1C\RE^02F4LX>?I_#4L[@$X3KE6K.R M_2P?]+=>ORTD'W7[4'EM6C8A?;^6X)/6YY+F9[9;PGJ5 MFI6K_@N48WM];N3=]-VQIFDM;VK&U>\FIS/9N/7!CTLEL?U3U1.\6+-.WO2)A<5^]%[4\$ M7LUF8[;W(UNMKK7U`7'">L=QX"2,;RHD89HAZ>5)F$[+[?I>+Y^>=3J3CDNO MNR6.N/2VVSO;YY>.Z!@.T]W_T<^3O=94VYP),A`0W0=A@J^^MK*"ZX\M"=8? MS52(Q-+J?D&-K"]>W/1XBW2CL(;H^M0I6<^4Z/IO5K6$_*/E^*M;U;K_!.,_ MZ?.C2W1[]U^_W8]+M6C]:F5+2O_=CS[N)[X2GH[:MU\M5P=CPU\6XN:%7/S=QMP]A,'D?LF8_R(IR]H8LG;L+W&.DU1^ MH;U^JI?3HL7:6F;0WA=[[M+9.>+\]Q/8C'46=(V?I?_TR.FQ.X)]5E>#NZN- MI+FAJ9H9$I\;)>T-R:0P3T5-&H/F/Z&<&ADUTQ8H68@A#*N_B[`X(?<*D\=I MRF8$IWN_E^`,]7LIEO5I/XJESIFA>V>I$I;W9;U"6:N4*<)*K+)\7@M3A,#9 M[5_G8#76X%QSO1;KL+ZG_7G8@(W>]?FX(*#9U//CE^8Y>&[[^J*`5TKC/*\/ M^TUX?OOZ!>VK%ZI_%^-%?=FO+?O7EYCSB[$9+U%_MR2\/03MV^9X*2K>U1BV MXF5]6`.7XN7MZ\OP"KP2E^,*O`JO[LL:>(V*D]>V?[T.K\<;\$9L+L=;=+,9 M;\*;\99^'[=PI?+@K7.PWXRWX>UXQQQ*>">NPKNP;4X^7(UK\.XYE*!Y#[;C MO7,LX]2X%CO:U]=Y?]^']_=M_P'L]*ZNQR[OZ@9\L"_;&_$A?!@?P4?Q,>S& MQ_$)?!)[\"GL56N\@W'=R"+^"+F,`D;L67\&5\ M!3O+^_%5I?L:OH[;<#N^@6_BCHBUQ)WJO+]\B_+[6_BV:L693EJ_QW/_AY\5\GW3/NG\7UC_P/\$(<2[>]5S_\(/\9/\%/\ M3/W^N;&_S;G/V/\"UY9_F6@/_`J_QOWX#7Z+!_`@?J=RN8=P&`_C]W@$CZK] M]RC^@$?*?U1//H;'^QJ19P/E_[4#A!!"""&$$$(((8000@@AA!!"""&$$$(( M(8000@@AA!!"""&$$$(((8000@@AA!!"""&$$$(((820GFS=?LUU5U]?W+I] MYZYBX'96_T]45O[CR9'.K1T'NRW5;^>_X"`AA!!"""&$$$(((8000@@AA!!" M""&$$$(((8000@@AA!!"""&$$$(((8000@@AA!!"""&$$$(((8000@@AA!!" ;""&$$$(((8000@@AA!#R?\!_`(J<0S8``@$` ` end debian/README.Debian0000644000000000000000000000156411477735466011261 0ustar zsnes for Debian ---------------- The zsnes package is not portable to non-i386 architectures because of the fact that most of it is writen in i386 assembly. The Debian tar file of zsnes' source is identical to the upstream source except that a few object files in src/obj were removed. These files do not have surviving source code, but are not used in the Linux build and have been removed to avoid debate as to whether they are free software. zsnes itself is available under the GNU GPL. However, almost all of the "ROMs" that it is designed to run are distributed under stricter licenses, which may not permit redistribution. We advise you to pay attention to license information when obtaining such software. Debian claims no responsibility for any unlicensed usage of third-party software under zsnes. -- Aaron Lehmann , Tue, 1 May 2001 19:40:28 -0700 debian/zsnes.doc-base0000644000000000000000000000052511477735466011755 0ustar Document: zsnes Title: ZSNES online documentation Author: Various Abstract: This set of documents provides help for using ZSNES. It contains help for everything from changing the controls to playing games over the Internet. Section: Emulators Format: html Index: /usr/share/doc/zsnes/html/index.htm Files: /usr/share/doc/zsnes/html/*.htm debian/watch0000644000000000000000000000017511553003204010213 0ustar version=3 opts="uversionmangle=s/(\d)(\d\d)/$1.${2}0/,dversionmangle=s/\+bz2//" \ http://sf.net/zsnes/zsnes(.+)src.tar.bz2 debian/dirs0000644000000000000000000000003711477735466010076 0ustar usr/bin usr/share/applications