--- zsnes-1.510.orig/debian/examples/debian.smc.gz.uu +++ zsnes-1.510/debian/examples/debian.smc.gz.uu @@ -0,0 +1,55 @@ +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 --- zsnes-1.510.orig/debian/examples/README +++ zsnes-1.510/debian/examples/README @@ -0,0 +1,7 @@ +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. --- zsnes-1.510.orig/debian/examples/source/deb.map.uu +++ zsnes-1.510/debian/examples/source/deb.map.uu @@ -0,0 +1,49 @@ +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 --- zsnes-1.510.orig/debian/examples/source/deb.set.uu +++ zsnes-1.510/debian/examples/source/deb.set.uu @@ -0,0 +1,149 @@ +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 --- zsnes-1.510.orig/debian/examples/source/debian.asm +++ zsnes-1.510/debian/examples/source/debian.asm @@ -0,0 +1,270 @@ +; 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 --- zsnes-1.510.orig/debian/examples/source/deb.col.uu +++ zsnes-1.510/debian/examples/source/deb.col.uu @@ -0,0 +1,4 @@ +begin 644 deb.col +@``#_?SHHNEZZ7KI>_W^Z7KI>_W^Z7KI>NEZZ7KI>NEX` +` +end --- zsnes-1.510.orig/debian/rules +++ zsnes-1.510/debian/rules @@ -0,0 +1,109 @@ +#!/usr/bin/make -f +# debian/rules for zsnes +# 2001-2005 Aaron Lehmann +# 2006 Joshua Kwan +# 2007 William Pitcock + +# XXX: ugly hack to avoid FTBFS on amd64 with ia32-libs binary. +# XXX: bork bork bork! this at least allows it to build. this one is a bug in ia32-libs tho. +ifeq ($(DEB_HOST_ARCH),amd64) + CFLAGS = -m32 + ifneq ($(shell test -e /usr/lib32/libSDL.so && echo ok),ok) + MAKE_LINKS = mkdir -p lib \ + && ln -sf /usr/lib32/libao.so.2 lib/libao.so \ + && ln -sf /usr/lib32/libSDL-1.2.so.0 lib/libSDL.so \ + && ln -sf /usr/lib32/libGL.so.1 lib/libGL.so \ + && ln -sf /usr/lib32/libpng12.so.0 lib/libpng.so + LDFLAGS = -L../lib -L/usr/lib32 + endif +endif + + +patch-stamp: + dpatch apply-all + touch $@ + +unpatch: + dpatch deapply-all + rm -f patch-stamp + +build: patch-stamp build-stamp +build-stamp: + dh_testdir + + $(MAKE_LINKS) + cd src && CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-opengl --disable-cpucheck --enable-release --disable-debugger --enable-libao force_arch=i486 && $(MAKE) + + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -D src/zsnes debian/zsnes/usr/bin/zsnes + install -D src/linux/zsnes.1 debian/zsnes/usr/share/man/man1/zsnes.1 + +# I want to install docs here because I want to change their names +# NO LONGER AVAILABLE... +# install -D docs/README.LINUX debian/zsnes/usr/share/doc/zsnes/README.linux +# install docs/authors.txt debian/zsnes/usr/share/doc/zsnes/AUTHORS +# install docs/readme.txt debian/zsnes/usr/share/doc/zsnes/README +# install docs/srcinfo.txt debian/zsnes/usr/share/doc/zsnes/SRCINFO +# install docs/todo.txt debian/zsnes/usr/share/doc/zsnes/TODO + + mkdir -p debian/zsnes/usr/share/pixmaps + cp -f debian/zsnes.xpm debian/zsnes/usr/share/pixmaps/zsnes.xpm + + 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 + install -m 644 debian/zsnes.desktop \ + debian/zsnes/usr/share/applications/zsnes.desktop + 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/ + # Install HTML documentation + cp -a docs/readme.htm debian/zsnes/usr/share/doc/zsnes/html + +binary-indep: +# Ye olde no-op. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installmenu + dh_desktop + dh_installman + dh_installchangelogs + dh_link + dh_strip + dh_compress -Xexamples + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-arch +.PHONY: build clean binary-arch binary install --- zsnes-1.510.orig/debian/zsnes.xpm +++ zsnes-1.510/debian/zsnes.xpm @@ -0,0 +1,265 @@ +/* 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" +}; --- zsnes-1.510.orig/debian/menu +++ zsnes-1.510/debian/menu @@ -0,0 +1,6 @@ +?package(zsnes): \ + needs="X11" \ + section="Applications/Emulators" \ + title="ZSNES" \ + command="/usr/bin/zsnes" \ + icon="/usr/share/pixmaps/zsnes.xpm" --- zsnes-1.510.orig/debian/README.Debian +++ zsnes-1.510/debian/README.Debian @@ -0,0 +1,20 @@ +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 --- zsnes-1.510.orig/debian/dirs +++ zsnes-1.510/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/applications --- zsnes-1.510.orig/debian/zsnes.doc-base +++ zsnes-1.510/debian/zsnes.doc-base @@ -0,0 +1,11 @@ +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: Apps/Emulators + +Format: html +Index: /usr/share/doc/zsnes/html/index.htm +Files: /usr/share/doc/zsnes/html/*.htm --- zsnes-1.510.orig/debian/changelog +++ zsnes-1.510/debian/changelog @@ -0,0 +1,149 @@ +zsnes (1.510-2ubuntu1) hardy; urgency=low + + [ Siegfried-Angel Gevatter Pujals (RainCT) ] + * Add dh_desktop call to debian/rules. + + [ Kirill Chunaev ] + * Build amd64 package on Ubuntu (thanks to William Pitcock). + * New .desktop file. + * Fix some inaccuracies in debian/control file. + * Change maintainership to Ubuntu MOTU team due to local changes, + and follow DebianMaintainer spec. + + -- Kirill Chunaev Wed, 13 Feb 2008 17:53:40 +0300 + +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 --- zsnes-1.510.orig/debian/zsnes.desktop +++ zsnes-1.510/debian/zsnes.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=ZSNES Emulator +Name[ru_RU]=Эмулятор ZSNES +Comment=Play Super Nintendo (SNES) games +Comment[ru_RU]=Запуск игр для Super Nintendo (SNES) +Exec=zsnes +Icon=zsnes +Terminal=false +Type=Application +Categories=Game;Emulator; --- zsnes-1.510.orig/debian/copyright +++ zsnes-1.510/debian/copyright @@ -0,0 +1,13 @@ +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: + +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. + --- zsnes-1.510.orig/debian/compat +++ zsnes-1.510/debian/compat @@ -0,0 +1 @@ +4 --- zsnes-1.510.orig/debian/control +++ zsnes-1.510/debian/control @@ -0,0 +1,18 @@ +Source: zsnes +Section: otherosfs +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Joshua Kwan +Build-Depends: debhelper (>= 4), nasm, libsdl1.2-dev (>= 1.2.2-3.1), zlib1g-dev, sharutils, xutils, libpng12-dev | libpng-dev, xlibmesa-gl-dev, dpatch, libao-dev, ia32-libs [amd64], lib32z1-dev [amd64], lib32stdc++6 [amd64], gcc-multilib [amd64], g++-multilib [amd64] +Standards-Version: 3.7.3 + +Package: zsnes +Architecture: i386 amd64 +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. It supports advanced features such as + multiplayer gameplay over a TCP/IP network. + . + Please note that many separately-available games playable under this emulator + are non-free. See /usr/share/doc/zsnes/README.Debian for more information. --- zsnes-1.510.orig/debian/docs +++ zsnes-1.510/debian/docs @@ -0,0 +1,10 @@ +docs/authors.txt +docs/install.txt +docs/license.txt +docs/opengl.txt +docs/srcinfo.txt +docs/stdards.txt +docs/support.txt +docs/thanks.txt +docs/todo.txt +docs/readme.txt/*.txt --- zsnes-1.510.orig/debian/patches/gcc-fno-rtti.dpatch +++ zsnes-1.510/debian/patches/gcc-fno-rtti.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## gcc-fno-rtti.dpatch by Krzysztof Burghardt +## +## DP: Enable rtti to be able to use dynamic_cast. + +diff -urNad zsnes-1.510~/src/configure zsnes-1.510/src/configure +--- zsnes-1.510~/src/configure 2007-01-25 01:51:21.000000000 +0100 ++++ zsnes-1.510/src/configure 2008-01-09 22:47:32.915869995 +0100 +@@ -5237,7 +5237,7 @@ + NFLAGS="$NFLAGS -O1" + fi + fi +-CXXFLAGS="$CFLAGS -fno-rtti" ++CXXFLAGS="$CFLAGS" + + if test x$enable_jma != xno; then + JMA_FILES="\$(JMA_D)/7zlzma.o \$(JMA_D)/crc32.o \$(JMA_D)/iiostrm.o\ + --- zsnes-1.510.orig/debian/patches/00list +++ zsnes-1.510/debian/patches/00list @@ -0,0 +1,2 @@ +gcc-fno-rtti +replace_crc32 --- zsnes-1.510.orig/debian/patches/replace_crc32.dpatch +++ zsnes-1.510/debian/patches/replace_crc32.dpatch @@ -0,0 +1,72 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## originally: replace_crc32.dpatch by Javier Serrano Polo +## +## DP: CRC32 is now a keyword in nasm, replace it by RomCRC32. + +@DPATCH@ +diff -ur zsnes-1.510.orig/src/init.asm zsnes-1.510/src/init.asm +--- zsnes-1.510.orig/src/init.asm 2007-01-23 19:51:00.000000000 +0100 ++++ zsnes-1.510/src/init.asm 2007-10-23 08:23:56.000000000 +0200 +@@ -892,7 +892,7 @@ + SECTION .bss + NEWSYM IPSPatched, resb 1 + NEWSYM Checksumvalue, resw 1 +-NEWSYM CRC32, resd 1 ++NEWSYM RomCRC32, resd 1 + NEWSYM SramExists, resb 1 + NEWSYM NumofBanks, resd 1 + NEWSYM NumofBytes, resd 1 +diff -ur zsnes-1.510.orig/src/initc.c zsnes-1.510/src/initc.c +--- zsnes-1.510.orig/src/initc.c 2007-01-20 01:02:24.000000000 +0100 ++++ zsnes-1.510/src/initc.c 2007-10-23 08:35:47.000000000 +0200 +@@ -1649,7 +1649,7 @@ + } + } + +-extern unsigned int MsgCount, MessageOn, CRC32; ++extern unsigned int MsgCount, MessageOn, RomCRC32; + extern char *Msgptr; + unsigned int SPC7110Entries; + +@@ -1798,9 +1798,9 @@ + // 42 is the answer, and the uCONSRT standard + + // calculate CRC32 for the whole ROM, or Add-on ROM only +- CRC32 = (SplittedROM) ? crc32(0, ROM+addOnStart, addOnSize) : crc32(0, ROM, NumofBytes); ++ RomCRC32 = (SplittedROM) ? crc32(0, ROM+addOnStart, addOnSize) : crc32(0, ROM, NumofBytes); + // place CRC32 on line +- sprintf(CSStatus3+32, "%08X", CRC32); ++ sprintf(CSStatus3+32, "%08X", RomCRC32); + + i = (SplittedROM) ? infoloc + 0x1E + addOnStart: infoloc + 0x1E; + +diff -ur zsnes-1.510.orig/src/zmovie.c zsnes-1.510/src/zmovie.c +--- zsnes-1.510.orig/src/zmovie.c 2007-01-20 21:30:27.000000000 +0100 ++++ zsnes-1.510/src/zmovie.c 2007-10-23 08:37:04.000000000 +0200 +@@ -75,7 +75,7 @@ + typedef unsigned __int64 uint64; + #endif + +-extern unsigned int versionNumber, CRC32, cur_zst_size, MsgCount, MessageOn; ++extern unsigned int versionNumber, RomCRC32, cur_zst_size, MsgCount, MessageOn; + extern unsigned int JoyAOrig, JoyBOrig, JoyCOrig, JoyDOrig, JoyEOrig; + extern unsigned char GUIReset, ReturnFromSPCStall, GUIQuit; + extern unsigned char CMovieExt, mencoderExists, lameExists; +@@ -932,7 +932,7 @@ + size_t filename_len = strlen(filename); + strncpy(zmv_vars.header.magic, "ZMV", 3); + zmv_vars.header.zsnes_version = versionNumber & 0xFFFF; +- zmv_vars.header.rom_crc32 = CRC32; ++ zmv_vars.header.rom_crc32 = RomCRC32; + zmv_vars.header.zst_size = cur_zst_size; + zmv_vars.header.zmv_flag.start_method = (enum zmv_start_methods)MovieStartMethod; + zmv_vars.header.zmv_flag.video_mode = romispal ? zmv_vm_pal : zmv_vm_ntsc; +@@ -1252,7 +1252,7 @@ + Msgptr = "MOVIE STARTED."; + } + +- if (zmv_vars.header.rom_crc32 != CRC32) ++ if (zmv_vars.header.rom_crc32 != RomCRC32) + { + static char buffer[29]; //"ROM MISMATCH. NEED: 01234567" + sprintf(buffer, "ROM MISMATCH. NEED: %08X", zmv_vars.header.rom_crc32);